Wix Installer Problem: Why does RestartManager mark Service as RMCritical and not RMService

后端 未结 3 884
囚心锁ツ
囚心锁ツ 2020-12-11 20:35

I\'m trying to prevent our wix installers from prompting the user for a reboot when uninstalling. Our services are set to be uninstalled and deleted on an uninstall. Unfor

3条回答
  •  渐次进展
    2020-12-11 21:18

    Ran into this also.

    The problem is that the restart manager does NOT think the user has permission to stop the service even though it does because at the time that it checks (InstallValidate), the install has not elevated yet.

    My solution is to give the Users group permission to start and stop the service. I used the sc sdset command to change the service permissions.

    Or you can use a bootstrapper to start the MSI after elevating.

提交回复
热议问题