静默安装 MSI - 卡住

Silently Install MSI - getting stuck

希望有人能帮助我?我正在尝试使用 msiexec.exe /i "SomePDFPrinter.msi" /qn 静默安装 MSI,但它不起作用。当我尝试手动安装 MSI 时,它停在下面屏幕截图中的步骤,如果您点击测试,则可以点击下一步完成安装。我尝试使用 ACCEPT=1 和 ACCEPTEULA=1 安装它,但没有成功。

Short: That is a custom dialog. Disable it and set the properties associated with those dialog fields directly in the property table (using a transform) so that data is written by whatever mechanism they normally are written.

Setting the properties is usually enough. Sometimes you need to use a custom action. To find the property names inspect the dialog fields with (list of tools there). Then set the properties in the Property table.


Custom Dialog:这是一个自定义对话框(不是来自标准的因此经过测试的对话框集)并且可能被错误地编写 -如果它是生成的 Win32 dialog(看起来不像),它甚至可能乱序。在这样的情况下,我看到了很多奇怪的事情,因为人们往往不清楚正确的做事方式。

修改安装程序:修改MSI安装文件主要有两种方式:. The way I would solve things in this case would be to apply a transform to remove the whole dialog from displaying and then check that the data gathered makes it into where it is supposed to go. That can be in the registry, on disk or even a file or a database. This varies. 。以下是如何在运行时应用转换的内联示例:

msiexec.exe /I "My.msi" /QN /L*V "C:\My.log" TRANSFORMS="C:\My.mst"

IT Ninja,软件库:这里有包部署信息的库/数据库:https://www.itninja.com/software-library/software - 如果您在那里找到您的设置,您可能会抢先一步或找到正确部署的解决方案。

更多信息:一些有用的链接:

  • Silent deployment
  • Extensive explanation properties vs transforms