2015-12-30 53 views
0

我是Wix Toolkit的新手。我爲控制檯應用程序創建.msi。下面是我的我的線,是使用熱命令生成的一個:WIX熱參數設置屬性

<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文件。

+0

對於第二部分,您是否嘗試在安裝後使用WiX編輯文件? – Isaiah4110

回答

0

您正在使用正確的命令行選項,但只需在「-out」命令行選項之前移動「-gg」,如下所示。

-gg:現在生成指導。熱量運行時,所有組件都會得到引導。 -ag:在編​​譯時自動生成組件指令,例如設置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"