如何使用PowerShell或命令提示符安装带有自定义选项的.msi文件 [英] How to install a .msi file with custom option with powershell or command prompt
本文介绍了如何使用PowerShell或命令提示符安装带有自定义选项的.msi文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用完整选项安装Web Deploy 3.6(WebDeploy_amd64_en-US.msi)但是使用命令提示符或powershell脚本默默地。
你能帮我解决这个问题吗?
谢谢。
我尝试过:
如果我使用:
Hi,
I need to install "Web Deploy 3.6" (WebDeploy_amd64_en-US.msi) with "Complete" option but using command prompt or a powershell script silently.
Can you help me with this issue?
Thanks.
What I have tried:
If I use:
Start-Process msiexec.exe -Wait -ArgumentList '/i "C:\Temp\Web Deploy v3.6\WebDeploy_amd64_en-US.msi" /quiet'
我可以安装.msi文件,但我没有安装完整选项(包含所有设置)。
I can install the .msi file but I don't install it with "Complete" option (with all settings).
推荐答案
试试这个命令行:
Try this command line:
msiexec.exe /i filepath.msi /quiet InstallMode=Complete
它可能有效也可能无效。这取决于供应商如何编写.MSI,并且有很多供应商都很糟糕。
It may or may not work. It depends on how the vendor wrote the .MSI and there are plenty of vendors who are terrible at it.
这篇关于如何使用PowerShell或命令提示符安装带有自定义选项的.msi文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文