installation using msi.exec open help options every time

百般思念 提交于 2019-11-26 21:53:09

问题


I have been trying to install a msi file using cmd. The command looks like C:\Windows\system32>msiexec.exe -q -i "Installer.msi"

But every time I run this the window for help options is opened for msi instead of running the installer. What could be the problem?


回答1:


First, you need to specify the full path to the MSI file. Also, the command line is really picky if you are specifying anything else, and sometimes it doesn't like spaces between value=proprtyname. Those errors will give you the help screen because you got the syntax wrong in some way.

Note that the MSI file will not install successfully in silent mode if it requires elevation. It won't ask for the elevation prompt if you are in silent mode. That means you should try the command line install from an elevated prompt.




回答2:


I think msiexec.exe /i installer.msi /qn should work.

See here for a similar thread on serverfault: https://serverfault.com/questions/30068/silent-install-of-msi/67001#67001

To deal with the complicated msiexec.exe command line interface, try this free tool from Installation tool developer Altiris: http://www2.wise.com/filelib/WICLB.exe - broken link resurrected from Wayback machine. Seeing as the tool was freeware I assume that is legal.

Please run the download by virustotal.com for safety.

Here is a screenshot:



来源:https://stackoverflow.com/questions/22164005/installation-using-msi-exec-open-help-options-every-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!