I need to install a USB driver for a device so that it is recognised by ActiveSync (under XP) or Mobile Device Center (under Vista).
However the .INF file which needs to be installed for ActiveSync (XP) is different from the .INF file for MDC (Vista). So I need an installer which can determine if the target is XP or Vista and install the correct file.
I am just using Visual Studio 2005 to create the installer, rather than anything more complicated, but I can't see any way to make installation of a file dependent on the target OS. Do I need to create a Custom Action to do this? If so what should it do, e.g. set an environment variable?