开发者

Custom Action inner text

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜