码迷,mamicode.com
首页 > 其他好文 > 详细

Wix: Show conditional message box

时间:2015-02-13 14:38:52      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:

For example:

Scenario:

Show message box only during installation and MYPROPERTY has to be equal to "TestValue".

 

1> Define custom action

 <CustomAction Id="POPMSG " Script="vbscript">

      <![CDATA[MsgBox("For Custom Action POPMSG.")]]>

 </CustomAction>

 

2> Put this custom action inside <InstallExecuteSequence></InstallExecuteSequence> or <InstallUISequence></InstallUISequence>

<Custom Action="POPMSG" Before="CostInitialize" >

   <![CDATA[MYPROPERTY="TestValue" AND NOT Installed]]>

</Custom>

 

Reference:

http://stackoverflow.com/questions/8239188/wix-show-conditional-message-box-without-cancel

 

Wix: Show conditional message box

标签:

原文地址:http://www.cnblogs.com/cindy-hu-23/p/4290089.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!