I am trying to prevent our wix installers from asking the user to reboot upon removal. Our services must be deleted and removed upon deletion. Unfortunately, for us, RestartManager asks the user that a reboot will be required during the InstallValidate action. This action occurs long before the StopServices and DeleteServices actions.
Checking the logs, it seems that RestartManager considers our service to be a critical process:
"An application with an identifier of 1234 was found, the friendly name is" abc ", the short name of the service is" xyz "of type RmCritical, and status 1 contains the files [s]."
Services are installed and launched under the local system account. I'm not sure, but I think if RestartManager returned an RmService instead of an RmCritical, then it would not request a reboot.
Any help is greatly appreciated.
EDIT: MSDN states that for RMCritical: A system restart is required to complete the installation because the process cannot be disabled. The process cannot be disabled for the following reasons. A process can be a critical process. The current user may not have permission to terminate the process. This process may belong to the primary installer that launched the reboot manager.
The user has permission to close the services, and the services have nothing to do with msiexec, so I can only assume that our service is considered a critical process ... but why?
source share