windows 如何更改 .msi 安装程序的提取文件夹?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4570242/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to change a .msi installer's extraction folder?
提问by Mihai Scurtu
I have a .msi installer that needs 3 gigs in the C drive, to unpack (I assume). My %TEMP%and %TMP%are on a different volume, so the space needed should be there.
我有一个 .msi 安装程序,需要在 C 驱动器中进行 3 个演出才能解压(我假设)。我的%TEMP%和%TMP%在不同的卷上,所以需要的空间应该在那里。
Does anyone know an easy way to change the unpack path?
有谁知道更改解包路径的简单方法?
Note: I'm running Windows 7 x64.
注意:我运行的是 Windows 7 x64。
回答by ismail
You can manually extract the *.msi
file with;
您可以手动提取*.msi
文件;
msiexec /a <name>.msi TARGETDIR=<path> /qb
msiexec /a <name>.msi TARGETDIR=<path> /qb
回答by slugster
You can first extract the contents of the msi to a temp folder, then run it from there:
您可以先将 msi 的内容提取到临时文件夹,然后从那里运行它:
msiexec /a [path to my.msi] TARGETDIR=d:\temp