无论如何,是否可以通过命令行在特定位置安装msi。
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......
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.