msiexec 静默安装将失败且没有错误
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Windows Installer 是一个“Windows 应用程序”(而不是“控制台应用程序”),这意味着从命令行启动它不会导致控制台等待。要等待,您需要显式等待进程退出。一种简单的方法是:
注意:如果您需要引用命令行来启动,空字符串
""
非常重要。否则,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:
Note: The empty string
""
is important if you ever need to quote the command-line to start. Otherwise, thestart
command will use your quoted command-line as the title of the created window (crazy, I know, checkstart /?
for the details).