静默的Windows Installer安装程序,无需自动重新启动 [英] Silent Windows Installer installer without rebooting automatically

查看:453
本文介绍了静默的Windows Installer安装程序,无需自动重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我有一个 MSI ,它进行了重大升级,并以以下方式启动:

Currently I have an MSI which performs a major upgrade, and it is launched as:

msiexec.exe /i installer.msi /qn REBOOT=ReallySuppress

我的问题是关于特定属性 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?

推荐答案

安装程序执行所有操作. REBOOT属性的值ReallySuppress,或 /norestart选项,仅在需要时禁止系统重新启动.并且msiexec.exe退出代码应为3010( ERROR_SUCCESS_REBOOT_REQUIRED )向调用应用程序指示需要重新启动系统.

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.

在安装过程中使用的文件将被移开,并且在系统重新启动时将被永久删除.建议尽快重新启动系统,因为在此之前,某些进程将使用旧的(锁定的)文件,而新进程将使用新的更新的文件,因此存在歧义的空间,尤其是因为可能存在注册表以及变化.因此,/noreboot选项在要安装多个软件包并且要在最后一个软件包之后重新启动时很有用,但前提是绝对必要.仅忽略重新启动提示不是一个好方法.

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.

这篇关于静默的Windows Installer安装程序,无需自动重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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