Hi Dhaval,

I'm new here and I have not much experience with WiX, but if my understanding 
is correct, here it goes:

...
<CustomAction Id="ActionA" .../>
<CustomAction Id="UndoActionA" .../>

<InstallExecuteSequence>

    <Custom Action="ActionA" After="InstallFiles"/>
    <Custom Action="UndoActionA" After="ActionA">REMOVE="ALL"</Custom>

    ....

</InstallExecuteSequence>

This will makes sure your 'UndoActionA' custom action is executed only during 
removal.

Hope this helps,
Dacian



----- Original Message ----
From: Dhaval Patel <[EMAIL PROTECTED]>
To: "wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>
Sent: Friday, February 2, 2007 7:30:06 PM
Subject: [WiX-users] CustomAction

I have been trying to find a post that would sum up how to run a CustomAction 
(to run a batch file) at the end of an installation, and in the same MSI, 
another CustomAction that would run the corresponding "undo" action from 
another batch file. So the flow would be like:


Step 1) Install files
Step 2) Run batch file for action A
Step 3) Run batch file to undo action A
Step 4) Uninstall files

I have tried hard to find examples and it seems that running a batch file after 
install is straightforward, but what about the uninstallation phase? 
Specifically, what's the Event that I should tie the batch file to so that it 
runs only during uninstallation?


Thanks in advance, folks.

-------------------------------------------------------------------------
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







 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
-------------------------------------------------------------------------
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