There's no UI during uninstall, correct. 

When the older product is being uninstalled as part of a major upgrade
the UPGRADINGPRODUCTCODE property is set to indicate that you're being
uninstalled because of an incoming major upgrade. 

A minor upgrade by reinstalling the MSI or a patch doesn't set the
REMOVE property to ALL. 

Phil Wilson 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anthony
Wieser
Sent: Monday, May 14, 2007 9:46 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom Action to run on uninstall

Hi again.

I'm just about ready to go, and while testing today, I notice that one
of my custom actions isn't running during the uninstall.

I've put it in the UIInstallSequence thus:

   <InstallUISequence>
       <Custom Action="MyUninstallAction" 
Sequence="101">REMOVE="ALL"</Custom>
    </InstallUISequence>

But it doens't seem to run.

What I've seen implies that the UI sequence isn't run on an add/remove
programs uninstall.  Is that really the case?

What I really want to do is this:

If the user is upgrading the current version with any upgrade (major or
minor), I don't want to run the action.
If the user is uninstalling this version from Add/remove programs, or
via msiexec /uninstall, I'd like to run the action.
In any cases I've missed above, I want to run the action (I don't think
there are any, but for completeness, I'll specify it to run)

Is there any way to achieve this?

Anthony Wieser
Wieser Software Ltd


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