静默 Windows Installer 安装程序,无需自动重新启动
目前,我有一个执行重大升级的 MSI,它的启动方式为:
msiexec.exe /i installer.msi /qn REBOOT=ReallySuppress
我的问题是关于该特定属性REBOOT=ReallySuppress:这是否意味着它不会重新启动系统,但会在用户手动重新启动系统时进行适当的更改(如果应用)?或者它会简单地忽略那些需要重新启动系统的事情?
Currently I have an MSI which performs a major upgrade, and it is launched as:
msiexec.exe /i installer.msi /qn REBOOT=ReallySuppress
My question is regarding that particular property REBOOT=ReallySuppress: does this mean it will not restart the system but will do proper changes (if applied) when user reboot her system manually? Or will it simply ignore those things that require to restart the system?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安装程序执行所有操作。
REBOOT
属性的值ReallySuppress
,或/norestart
选项,如果需要,只需抑制系统重新启动即可。 msiexec.exe 退出代码将为 3010 (ERROR_SUCCESS_REBOOT_REQUIRED
< /a>) 向调用应用程序指示系统需要重新启动。安装期间使用的文件将被移走,并在系统重新启动时永久删除。建议尽快重新启动系统,因为在此之前某些进程将使用旧的(锁定的)文件,而新进程将使用新的更新文件,因此存在歧义的空间,特别是因为可能存在注册表也发生变化。因此,当您有多个软件包需要安装并且您想在最后一个软件包之后重新启动时,/noreboot 选项非常有用,但前提是绝对有必要。仅仅忽略重新启动提示并不是一个好方法。
The installer performs all the operations. The value
ReallySuppress
ofREBOOT
property, or/norestart
option, simply suppress system restart, if it's needed. And msiexec.exe exit code would be 3010 (ERROR_SUCCESS_REBOOT_REQUIRED
) to indicate to the calling application that system restart is required.The files that were in use during installation will have been moved out of the way and will be permanently deleted when system restarts. It is recommended to restart the system as soon as possible because until then some processes will be using the old (locked) files whereas new processes will be using the new, updated files, so there is room for ambiguity, especially since there may be registry changes as well. As such the /noreboot option is useful when you have several packages to install and you want to reboot after the last one, but only if it's absolutely necessary. Just ignoring the reboot prompt is not a good way to go.