静默 Windows Installer 安装程序,无需自动重新启动

发布于 2024-12-06 11:19:14 字数 295 浏览 1 评论 0原文

目前,我有一个执行重大升级的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月蹉跎了容颜 2024-12-13 11:19:14

安装程序执行所有操作。 REBOOT 属性的值 ReallySuppress,或 /norestart 选项,如果需要,只需抑制系统重新启动即可。 msiexec.exe 退出代码将为 3010 (ERROR_SUCCESS_REBOOT_REQUIRED< /a>) 向调用应用程序指示系统需要重新启动。

安装期间使用的文件将被移走,并在系统重新启动时永久删除。建议尽快重新启动系统,因为在此之前某些进程将使用旧的(锁定的)文件,而新进程将使用新的更新文件,因此存在歧义的空间,特别是因为可能存在注册表也发生变化。因此,当您有多个软件包需要安装并且您想在最后一个软件包之后重新启动时,/noreboot 选项非常有用,但前提是绝对有必要。仅仅忽略重新启动提示并不是一个好方法。

The installer performs all the operations. The value ReallySuppress of REBOOT 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文