【问题标题】:WIX Heat Parameters to Set PropertiesWIX 加热参数设置属性
【发布时间】:2015-12-30 05:49:24
【问题描述】:

我是 Wix Toolkit 的新手。我正在为控制台应用程序创建一个 .msi。下面是我的一条线,它是使用 heat 命令生成的:

 <Component Id="cmp2B116558C64AF876AD223372FA4B8DFF" Directory="dir99DE416F55C8960850D5A4FCA3758AD4" Guid="PUT-GUID-HERE">
        <File Id="fil19E0EEE3E5D0208523116CAFE9E9B06E" KeyPath="yes" Source="$(var.SourceDir)\App.config" />
      </Component>

我只需要自动设置 PUT-GUID-HERE。我的加热命令有什么需要改变的吗?下面是我正在使用的加热命令。

heat dir "C:\Users\rp5026921\Documents\Project\Automation Testing\SourceCode\MeridianAutomation\bin\Release" -cg ComponentsGroup -out "C:\Users\rp5026921\Documents\Project\Automation Testing\SourceCode\MeridianAutomationSetUp\MeridianAutomationComponents.wxs" –gg 

另一个问题是,我的控制台应用程序中有 app.config。因为我需要在安装 .msi 后更改某些值。但是安装后,当我进入文件夹时,它不允许我编辑 app.config 文件。

【问题讨论】:

  • 对于第二部分,您是否尝试在安装后使用 WiX 编辑文件?

标签: wix windows-installer console-application wix3.8


【解决方案1】:

您正在使用正确的命令行选项,但只需将“-gg”移动到“-out”命令行选项之前,如下所示。

-gg : 现在生成 guid。运行加热时,所有组件都有一个指南。 -ag :在编译时自动生成组件 guid,例如设置 Guid="*"。

heat dir "C:\Users\rp5026921\Documents\Project\Automation Testing\SourceCode\MeridianAutomation\bin\Release" -cg ComponentsGroup -gg -out "C:\Users\rp5026921\Documents\Project\Automation Testing\SourceCode\MeridianAutomationSetUp\MeridianAutomationComponents.wxs"

【讨论】:

    猜你喜欢
    • 2023-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-15
    • 2018-01-10
    • 1970-01-01
    相关资源
    最近更新 更多