【问题标题】:Wix Burn exepackage propertyWix Burn exepackage 属性
【发布时间】:2014-08-01 11:43:28
【问题描述】:

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

我发现以下链接与 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

【问题讨论】:

    标签: properties wix exe burn


    【解决方案1】:

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

    如果你的包会像这样从命令行安装

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

    你的 WiX 应该是这样的

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

    确保您的刻录变量已在捆绑日志中设置。

    【讨论】:

      猜你喜欢
      • 2013-07-21
      • 2019-03-02
      • 1970-01-01
      • 2012-06-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多