msiexec安装参数中 /q和 /qoot之间有什么区别

发布于 2025-01-31 09:34:20 字数 87 浏览 4 评论 0原文

在安装参数的情况下, /q和 /qoot之间有什么区别?

示例以下语句是什么意思。 installParams =“ /q /norestart”

what is the difference between /q and /quiet in the case of install params?

example what does the following statement mean.
InstallParams = "/q /norestart"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

晨曦慕雪 2025-02-07 09:34:20

在theroy中,/quet指定静态模式,这意味着没有用户互动,因为您可以看到 。然后,/Q与另一个字母一起使用,例如/qn/qb,您也可以在文档中看到。

但是最后,/quet/q在技术上是相同的。使用/QN,如果您确实想要确保在安装期间用户看不到任何内容

/Norestart确保MSI在安装结束时不会自动重新启动计算机,即使是为此设计的。在这种情况下,您或用户应在使用安装的任何组件 /应用程序之前重新启动计算机。

In theroy, /quiet specifies quiet mode, which means there's no user interaction as you can see in microsoft documentation. Then, /q is used with another letter like /qn or /qb, as you can also see in the documentation.

But at the end /quiet and /q are technically the same. Use /qn if you really want ensure that the user doesn't see anything during installation

/norestart ensures that the MSI doesn't restart the computer automatically at the end of installation, even if it is designed to do so. In that case, you or the user should restart the computer before using whatever component / application was installed.

昇り龍 2025-02-07 09:34:20

等价 msiexec.exe 有2种不同类型的命令行开关。您应该能够混合和匹配这两种格式 - 只要它们与命令不矛盾。


旧开关 :Windows Installer 3.0和更早版本包含 msiexec.exe单字母开关例如 /x /i /qn 等...这些开关仍然可用,并在Windows Installer Engine的以后版本中使用。 我仍然使用这些开关

标准开关 标准安装程序命令行选项在Windows Installer版本3.0及以后可用。在此之前,只有旧式命令行开关可用。这些是更多的详细开关: /qoot /vassive /norestart < /code> 等...


您的具体问题:

这是什么意思:“/q/norestart” -

/norestart 这是一种更方便的方法来抑制安装后重新启动的方法。使用旧的msiexec.exe命令行,这将等效于将 重新启动 属性设置为 “真正的uppress” - 这使得很长而复杂的命令行,但至关重要的是,比更详细的开关要多一些:

msiexec.exe /I "MySetup.msi" /L* "D:\msilog.log" REBOOT=ReallySuppress

Rationale :这两个不同集的合理解释开关的是原始 msiexec.exe 命令行开关非常复杂且“完整” - 您可以对它们做很多不同的事情,并且有很好的 - 粒度控制。标准交换机(后来出现)是Simper,并以更简单,更容易记住的格式来处理更基本和平凡的任务。有些人会发现它们更方便和表现力(更容易查看命令行的功能)。您仍然需要完整的旧式开关曲目来进行更复杂的配置。

旧的msiexec.exe工具 :过去有一些工具可帮助构造复杂的 msiexec.exe 命令行。其中大多数不再可用。 这是其中一个的屏幕截图(不再可用)。

Equivalence: There are 2 different kinds of command line switches for msiexec.exe. You should be able to mix and match both formats - as long as they don't contradict with their commands.


Legacy Switches: Windows Installer 3.0 and earlier versions contained the msiexec.exe single letter switches such as /x, /i, /qn etc... These switches are still available and working in later versions of the Windows Installer Engine. I still use these switches.

Standard Switches: The Standard Installer Command-Line Options became available in Windows Installer version 3.0 and onwards. Before that time only the old-style command line switches were available. These are the more verbose switches: /quiet, /passive, /norestart, etc...


Your concrete question:

What does this mean: "/q /norestart" -

/norestart here is a more convenient way to suppress reboot after installation. Using the old msiexec.exe command line this would be equivalent to setting the REBOOT property to "ReallySuppress" - which makes for a pretty long and complicated command line, but crucially also a bit more "cryptic" than the more verbose switches:

msiexec.exe /I "MySetup.msi" /L* "D:\msilog.log" REBOOT=ReallySuppress

Rationale: The rational explanation for these 2 different sets of switches is that the original msiexec.exe command line switches are very complex and "complete" - you can do a lot of different things with them and there is very fine-grained control. The Standard Switches - that came later - are simper and takes care of more basic and mundane tasks in a simpler and easier to remember format. Some will find them more convenient and expressive (easier to see what a command line will do). You still need the full, old-style switch repertoire to do more complex configuration.

Old msiexec.exe Tools: There used to be some tools available to help construct complicated msiexec.exe command lines. Most of them are no longer available. Here is a screenshot of one of them (it is no longer available).

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