I have a driver installing using DriverPackageInstall, and uninstall DriverPackageUnInstall custom action in WiX installer.
It installs and uninstalls successfully.
This driver is being installed by two different installers, keeping same GUID, path etc, and similar custom action in both INSTALLER1 (driver version 1.0.0.0), INSTALLER2 (driver version 2.0.0.0).
If installation / uninstallation sequence is followed in correct order:
- Install INSTALLER1
- Install INSTALLER2
- Uninstall INSTALLER2
- Uninstall INSTALLER1
then the uninstall is perfectly clean, but when I change the sequence:
- Install INSTALLER1
- Install INSTALLER2
- Uninstall INSTALLER1
- Uninstall INSTALLER2
and check "sc query mydriver" it is still present.
Whereas the component is removed from the registry components list:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\[SID]\Components
SCM registry registry HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\MyDriver is present.
I am not sure why it is not uninstalling the driver.
Is the sequence is important while uninstalling? (uninstall INSTALLER2 and uninstall INSTALLER1).