[英]How to include arguments for MSI installation using WMI
I'm using wmi along with the 'call install true...' format to install an msi remotely: 我正在使用wmi和'call install true ...'格式来远程安装msi:
wmic /node:"[host]" /user:"[user]" /password:"[password]" ENVIRONMENT="RELEASE" product call install true, "", "\\[host]\D$\WebsitesDirectory\[name].msi"
This works fine except that I can't get the format right to include the command line arguments I would normally use with msiexec. 除我不能正确地包含通常用于msiexec的命令行参数的格式外,此方法工作正常。 I have declared a variable called "ENVIRONMENT" in Wix.
我在Wix中声明了一个名为“环境”的变量。 In this case, it should be ENVIRONMENT="RELEASE".
在这种情况下,应为ENVIRONMENT =“ RELEASE”。 Can anyone show me the correct format or point me towards the documentation that shows it?
谁能给我显示正确的格式或指向显示它的文档?
I think I've found the answer. 我想我找到了答案。 It appears the arguments go into the first pair of quotes after 'true':
看来参数在“ true”之后的第一对引号中:
... product call install true, "ENVIRONMENT=RELEASE", ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.