Find the Control element for your exit button, and add this as a child element:
<Publish Event="DoAction" Value="MyCustomAction" />

If you use the same exit dialog for all actions (i.e. install, remove, repair, 
changes) and only
want the action to be run on installation, you'll want to condition it like 
this:
<Publish Event="DoAction" 
Value="MyCustomAction"><![CDATA[(InstallMode<>"Remove") AND
(InstallMode<>"Repair") AND (InstallMode<>"Change")]]></Publish>

Rob

周和文 wrote:
> Learned from the tutorial , I wrote the script as follow.
> 
>  
> 
> <CustomAction Id="LaunchApp" FileKey="a.exe" ExeCommand=""  
> Return="asyncNoWait" />
> 
> <InstallExecuteSequence>
> 
> <Custom Action="LaunchApp" After="InstallFinalize">NOT Installed</Custom>
> 
> </InstallExecuteSequence>
> 
> But the program ,which is a.exe , always launchs before the installation 
> completion .
> 
> That is , a.exe launched before the user click the finish button . 
> However , I want it to execute after the user
> 
> click finish button ( the installation complete ) .
> 
>  How can I do this ? Thanks in advance !
> 
> IMPORTANT NOTICE:
> Email from Actions is confidential and may be legally privileged.  If it 
> is not intended for you, please delete it immediately unread.  The 
> internet cannot guarantee that this communication is free of viruses, 
> interception or interference and anyone who communicates with us by 
> email is taken to accept the risks in so doing.
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to