How to force restart after uninstall for a Basic MSI Project in InstallShield 2009 Premier

孤街醉人 提交于 2019-11-30 08:39:12

问题


InstallShield 2009 Premier, Basic MSI Project:
After uninstall completes, I want to force restart the computer. How?

Googling found, i have to set 'REBOOTPROMPT' TO 'S' or 'R' and the "Reboot" property.

How to set these properties and with what values?


回答1:


Here is the Solution

  1. You have to let InstallShield know that you want a reboot.
    How?: From 'Installation Designer' tab -> 'Behavior and Logic' -> 'Custom Actions and Sequences' -> 'Sequences' -> 'Installation' -> 'Execute' -> 'ScheduleReboot' set the value of 'Conditions' to "NOT REMOVE" (with out the inverted commas) if you want the reboot to happen after install and to "REMOVE" if after uninstall.

  2. So up to now after install/uninstall the installer would show a warning message something like "... click ok to restart your machine now or cancel to restart later...". Now if you don't want to show this warning message even do step 3.

  3. Go to 'Installation Designer' tab -> 'Behavior and Logic' -> 'Property Manager', a table would be open. Now add/edit the (Name, Value) pair with (REBOOTPROMPT, Suppress). This would suppress the message.



来源:https://stackoverflow.com/questions/2681775/how-to-force-restart-after-uninstall-for-a-basic-msi-project-in-installshield-20

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!