开发者

Command line option to tell msi installation to a specific location

Is there anyway to install the ms开发者_C百科i at specific location through the command line.


If this is a Web setup, you can use the workaround described here. Otherwise you may specify the MSI property TARGETDIR on the command line:

msiexec /i setup.msi TARGETDIR="C:\TestLocation\"


Yes, typically, you can specify a TARGETDIR=(path to install to) when you run the msiexec installer:

msiexec /i (yourFile).msi TARGETDIR=C:\YourBin\YourApp

I've been corrected (thanks to 0xA3 for this!) - my initial mention of INSTALLDIR is wrong - you need to use TARGETDIR instead. That one does indeed seem to work for just about any MSI I tried it on. Windows Installer stuff isn't exactly intuitive or easy......

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜