How to prevent a custom from executing while uninstalling:

I am a newbie to WIX. Mine is a simple .xws file setup without any UI. I got
two questions.

1) I have a custom action written which validates the system for a specific
file, calculate its chksum and writes the details into a log file. I am
calling this custom action as below. 

    <InstallUISequence>
      <Custom Action='CheckingPID' After ="ValidateProductID"/>
    </InstallUISequence>
    <InstallExecuteSequence>
      <Custom Action='CheckingPID' After="ValidateProductID" />
    </InstallExecuteSequence>

My issue is that the custom action is getting invoked while uninstalling
also and it generates that log file. How do I prevent this. I need to
execute this action only during installation.

2) Also How do I put a messagebox after the installtion which says
"Installation completed".

Thanks in advance.
Milton
-- 
View this message in context: 
http://www.nabble.com/How-to-prevent-a-custom-from-executing-while-uninstalling.-tf3855163.html#a10922475
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to