开发者

Silent Administrative Install - Specifying an installation directory

I'm currently trying to add some testing functionality into our builds, and in order to do this I need to be abl开发者_开发问答e to perform an administrative install, silently. However, I need to be able to specify the location that it installs too, as the default is on the company-wide network which is no use.

I was wondering if there was a way to specify the installation directory through parameters for this type of operation, and if so how?

Many thanks, Chris


msiexec /a foo.msi TARGETDIR=C:\EXTRACT\ /qn /l*v admin_install.log

/a = admin install of foo.msi /qn fully silent ( /qb! is mostly silent ) /l*v create a verbose log - in case it fails


It seem to me you should just set TARGETDIR or INSTALLDIR property in the command line during starting of msiexec.exe: like TARGETDIR=C:\MyDir or INSTALLDIR=C:\MyDir as additional msiexec.exe parameter.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜