我试过了
msiexec /i "yarn-1.10.1.msi" TARGETDIR="C:\programs" /qb
它已安装但未安装在TARGETDIR中,我是否遗漏了什么?
msiexec.exe /i "yarn-1.10.1.msi" INSTALLDIR="C:\programs" /qb
%ProgramFiles%
%SystemDrive%\Users\[UserName]\AppData\Local\Yarn\bin
行政装置 : TARGETDIR 通常用于 administrative installations (基本上是从MSI提取文件)为提取的文件指定输出目录:
TARGETDIR
msiexec.exe /a yarn-1.10.1.msi TARGETDIR=D:\YarnExtractedFiles\
TARGETDIR 目标目录
目标目录