使用 msiexec 将 MSI 安装到特定目录 [英] Install MSI with msiexec into specific directory

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

问题描述

我想使用 msiexec 将 MSI 文件安装到特定目录中.我正在使用:

I want to install an MSI file with msiexec into a specific directory. I am using:

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

使用INSTALLDIR"无法正常工作,因为 MSI 安装到默认路径而不是指定路径.

Using "INSTALLDIR" is not working properly because the MSI is installed into the default path and not into the specified 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天全站免登陆