首页 > 其他 > 详细

Wix: Show conditional message box

时间:2015-02-13 14:36:40      阅读:291      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!