开发者

Custom Action inner text

开发者 https://www.devze.com 2022-12-13 15:23 出处:网络
I have the following Wix code,that checks if some registry entry exist it doesn\'t launch Custom Action.A Question is what is wrong in Custom Action condition defined as inner element?

I have the following Wix code,that checks if some registry entry exist it doesn't launch Custom Action.A Question is what is wrong in Custom Action condition defined as inner element?

<Property Id="MYSERVER">  
  <RegistrySearch Id="MyServer" Root="HKLM" Key="SOFTWARE\My Technologies\MyServer" Type="raw" Name="InstallLocation" />  
</Property> 

<CustomAction开发者_如何学Python Id='LaunchMyServer'   BinaryKey="MyServer.exe" ExeCommand="" /> 

<InstallUISequence>


<Custom Action="LaunchMyServer" Before="CostInitialize">MYSERVER>0 </Custom>
</InstallUISequence>


You have used >, so you have to use a CDATA-block:

<Custom Action="LaunchMyServer" Before="CostInitialize"><![CDATA[MYSERVER>0]]> </Custom>


You are using the > character in the content. It should be html escaped to &gt;

So try MYSERVER&gt;0 instead.

Hope it helps.

/Klaus

0

精彩评论

暂无评论...
验证码 换一张
取 消