如何在 InstallShield 2009 Premier 中卸载基本 MSI 项目后强制重启 [英] How to force restart after uninstall for a Basic MSI Project in InstallShield 2009 Premier

查看:96
本文介绍了如何在 InstallShield 2009 Premier 中卸载基本 MSI 项目后强制重启的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

InstallShield 2009 Premier,基本 MSI 项目:
卸载完成后,我想强制重启计算机.怎么样?

谷歌搜索发现,我必须将REBOOTPROMPT"设置为S"或R"以及重启"属性.

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. 您必须让 InstallShield 知道您想要重新启动.
    如何?:从安装设计器"选项卡 ->行为和逻辑"' -> 'Custom Actions and Sequences' -> 'Sequences' -> 'Installation' -> 'Execute' -> 'ScheduleReboot' 将 'Conditions' 的值设置为NOT REMOVE"(使用去掉引号)如果您希望在安装后重新启动并在卸载后删除".

  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.

所以到目前为止,在安装/卸载之后,安装程序会显示一条警告消息,例如...单击确定立即重新启动您的机器或取消以稍后重新启动...".现在,如果您不想显示此警告消息,请执行第 3 步.

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.

转到安装设计器"选项卡 ->行为和逻辑"->属性管理器",将打开一个表格.现在使用 (REBOOTPROMPT, Suppress) 添加/编辑 (Name, Value) 对.这将抑制消息.

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.

这篇关于如何在 InstallShield 2009 Premier 中卸载基本 MSI 项目后强制重启的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆