My .msi installer built using WiX works fine as long as my hardware has been detected. That is, I need to scan for new hardware BEFORE running the installer.
That’s fine, but if version 0.0.0.0 of my driver is installed and I go to install version 0.0.1.0, I have it setup to uninstall previous versions first, then install the new version. The problem is that I need the installer to “scan for new hardware” after uninstalling the previous version and before installation of the new version. Otherwise the device has not been enumerated yet and the driver installation doesn’t pair up with the hardware.
Is my only option to create a standalone program doing something like this (http://support.microsoft.com/kb/259697), and call that program from a custom action in my installer?
How are other people getting around this problem? If this is too WiX specific feel free to tell me to piss off.