Hi everyone,
one of our setup projects is installing and starting a service, which works fine. On Windows XP the uninstallation also works as expected, but on Windows 7 a reboot is requested if the service is found running. As this is an issue with the Windows Installer 5.0 I tried working around it but simply stopping the service before InstallValidate as suggested somewhere else in the forum (using an immediate CA calling a native DLL function). This works as desired.
However should the user decide to hit the cancel button during the uninstallation (mainly during InstallValidate because other programs from the same installer are in use), the service will remain in the stopped state until it is restarted manually or the system is rebooted.
Is there any way to trigger a restart of the service when the user cancels the uninstallation?
I haven't tested yet, but I would expect this issue to also arise during installation of an upgrade and even during maintenance (repair). So it is of vital importance to properly restart the service.
Any help on this issue would be highly appreciated!
Thanks,
Oliver