For an install only event you want a condition of Installed, and for uninstall 
only you want 
REMOVE="ALL".  You also have the condition in the wrong place.  The condition 
has to be a child of 
the Custom element when you schedule it in the install/ui sequence.  I'm 
surprised WiX let you do that.

Rob

Thomas B. wrote:
> I have some events i need to be called appropriately, how can I make an 
> event be called only after an install and how can I make an event be 
> called only before files are removed (even from GAC) on an uninstall 
> (Need to execute my application after install and need to execute it 
> before files are removed/cleared from GAC). I tried using 
> InstallFinalize but that event seems to be called even on uninstall and 
> I couldn't use conditions either? As in
> 
> <CustomAction Id="CA_PREUNINSTALL" ExeCommand="-rem" FileKey="un.exe" 
> Return="asyncWait">INSTALLED</CustomAction>
> 
> or simular.
> 
> 
> Sincerely
> T
> 
> _________________________________________________________________
> MSN Music http://music.msn.no Finn din favorittmusikk blant nesten 1 
> million låter
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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


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