在特定目录中使用msiexec安装msi [英] Install msi with msiexec in a Specific Directory

查看:453
本文介绍了在特定目录中使用msiexec安装msi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在特定目录中安装带有msiexec的msi.我正在使用:

I want to install a msi with msiexec in a specific directory. I'm using:

msiexec /i "msi path" INSTALLDIR="C:\myfolder" /qb

它不能与"INSTALLDIR"一起使用,因为msi是安装在默认路径中,而不是在我的特定路径中.

It is not working with the "INSTALLDIR", because the msi is installing in the default path and not in my specific path.

推荐答案

使用TARGETDIR而不是INSTALLDIR.请注意,在使用空格的情况下,TARGETDIR属性的引号仅在路径周围.

Use TARGETDIR instead of INSTALLDIR. Note that the quote marks for TARGETDIR property are only around the path in the case of spaces.

msiexec/i"msi路径" TARGETDIR ="C:\ myfolder"/qb

msiexec /i "msi path" TARGETDIR="C:\myfolder" /qb

这篇关于在特定目录中使用msiexec安装msi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆