0
我有一個WiX 3.10安裝程序,它爲現有應用程序安裝附加模塊。出於這個原因,我使用RegistrySearch來獲取應該放置附件的安裝文件夾。之後,必須使用一些參數執行已存在的(意味着這是基本應用程序的一部分而不是附加組件)實用程序。WiX - 使用財產
我嘗試這樣做:
<Property Id="INSTALLFOLDER">
<RegistrySearch Id='InstallPathRegistry' Type='raw' Root='HKLM' Key='SOFTWARE\Vendor\Application' Name='InstallPath' Win64='no'/>
</Property>
<Condition Message="Application installation folder not found.">
<![CDATA[Installed OR INSTALLFOLDER]]>
</Condition>
<Property Id="WixQuietExecCmdLine" Value="RegAddOn.exe /f [INSTALLFOLDER]\Addon.RegFile" />
<CustomAction Id="QtExec" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="immediate" Return="check" />
<InstallExecuteSequence>
<Custom Action="QtExec" OnExit="success"/>
</InstallExecuteSequence>
不幸的是,[INSTALLFOLDER]
沒有得到解決。顯然,因爲我也得到了編譯器警告。
我該如何解決該財產?