开发者

Is there any issue in executing Installvalidate Custom Action after InstallInitialize in InstallShield basic MSI?

开发者 https://www.devze.com 2023-04-11 08:04 出处:网络
My MSI installer is showing reboot required dialog box during un-install since my custom action to stop service 开发者_如何学Pythonis scheduled after InstallValidate. The service stop CA is a deferred

My MSI installer is showing reboot required dialog box during un-install since my custom action to stop service 开发者_如何学Pythonis scheduled after InstallValidate. The service stop CA is a deferred action to elevate privileges so it is scheduled after InstallInitialize. I need to schedule the InstallValidate CA after my service stop CA to prevent showing the reboot required dialog box. Is there any problem in placing InstallValidate CA after InstallInitialize?


It won't work.

InstallValidate is an immediate action. So it will always run before InstallInitialize which is deferred.

The correct approach is to make your service stop itself. For this you can use a global event or a trigger handled by your service. This way you don't need Administrator privileges.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号