Wix Burn expackage属性

时间:2014-08-01 11:43:29

标签: properties wix exe burn

我正在尝试设置要在" InstallCommand"中使用的属性。 " Exepackage"的字段,该属性是一个注册表项值,然后将在install命令中用于确定安装位置。

我发现以下链接关注msipackage的相似之处但是我无法得到类似的东西用于exepackage?

如果有可能,有人可以提出建议吗?

msipropery参考链接: -

WiX: how to access / change installation directory in managed bootstrapper?

Specify the INSTALLLOCATION of packages in WiX inside the Burn managed bootstrapper

1 个答案:

答案 0 :(得分:3)

你走在正确的道路上。需要使用InstallCommand传递安装位置。您的ExePackage需要有一个命令行选项来设置位置。

如果您的软件包将从命令行安装,就像这样

setup.exe /install /quiet /InstallLocation=c:\somepath

你的WiX看起来应该是

<ExePackage SourceFile="setup.exe"
            InstallCommand="/install /quiet /InstallLocation=[INSTALLLOCATION]"/>

确保在捆绑日志中设置了刻录变量。