msiexec 静默安装将失败且没有错误

发布于 2025-01-11 18:54:11 字数 622 浏览 0 评论 0原文

在 Windows 10 上,我尝试静默安装 msi 软件包,但安装失败,没有任何错误。

以下是我获取 zip 格式的 msi、解压然后安装的命令。

wget -q http://kakadusoftware.com/wp-content/uploads/KDU805_Demo_Apps_for_Win64_200602.msi_.zip
cmake -E tar -xf KDU805_Demo_Apps_for_Win64_200602.msi_.zip
msiexec /i KDU805_Demo_Apps_for_Win64_200602.msi /quiet /qn /norestart

编辑:我将输出记录到文件,并发现此错误

MSI (s) (64:AC) [09:15:20:332]: Product: Kakadu Demo-Apps -- Error 1925. You do not have sufficient privileges to complete this installation for all users of the machine.  Log on as administrator and then retry this installation.

On Windows 10, I have tried to do a silent install of an msi package, but the install simply fails without any error.

Here are my commands to get the msi in zip format, unzip, and then install.

wget -q http://kakadusoftware.com/wp-content/uploads/KDU805_Demo_Apps_for_Win64_200602.msi_.zip
cmake -E tar -xf KDU805_Demo_Apps_for_Win64_200602.msi_.zip
msiexec /i KDU805_Demo_Apps_for_Win64_200602.msi /quiet /qn /norestart

Edit: I logged output to file, and found this error

MSI (s) (64:AC) [09:15:20:332]: Product: Kakadu Demo-Apps -- Error 1925. You do not have sufficient privileges to complete this installation for all users of the machine.  Log on as administrator and then retry this installation.

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

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

发布评论

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

评论(1

仙女 2025-01-18 18:54:11

Windows Installer 是一个“Windows 应用程序”(而不是“控制台应用程序”),这意味着从命令行启动它不会导致控制台等待。要等待,您需要显式等待进程退出。一种简单的方法是:

start /wait "" msiexec /i KDU805_Demo_Apps_for_Win64_200602.msi /qn /norestart

注意:如果您需要引用命令行来启动,空字符串 "" 非常重要。否则,start 命令将使用引用的命令行作为创建的窗口的标题(疯狂,我知道,请检查 start /? 了解详细信息)。

The Windows Installer is a "Windows application" (as opposed to a "console application") which means starting it from the command-line will not cause the console to wait. To wait, you need to explicitly wait for the process to exit. One easy way is:

start /wait "" msiexec /i KDU805_Demo_Apps_for_Win64_200602.msi /qn /norestart

Note: The empty string "" is important if you ever need to quote the command-line to start. Otherwise, the start command will use your quoted command-line as the title of the created window (crazy, I know, check start /? for the details).

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