Can you just use the native MSI functionality to remove the application data?

-----Original Message-----
From: chaiguy1337 [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2008 08:52
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Run CA on uninstall, but not when updating 
(RemovePreviousVersions)


Back when I wrote my installer using Visual Studio's setup project, there was
a flag RemovePreviousVersions that would allow future versions of my program
to update previous versions simply by removing the previous version and
installing the new one overtop of them.

My first question is how to do this with WiX.

But more importantly, there was a custom action in my old setup (via
System.Configuration.Install) that added a custom action to the
BeforeUninstall event:

this.BeforeUninstall += new InstallEventHandler(
InstallHelper_BeforeUninstall );

Which removed the data files generated by the application at runtime.

Anyhow, the point is that this custom action would only occur when the
product was actually manually uninstalled, and I want to make sure my WiX
installer has the same behavior. In other words, I want to call my custom
action only when the user explicitly selects to uninstall the program, not
when it is removed when a new version is installed overtop it (assuming this
is possible with WiX).

Can someone help me with this?

-----
A. Logan Murray
http://pihole.org/
--
View this message in context: 
http://n2.nabble.com/Run-CA-on-uninstall%2C-but-not-when-updating-%28RemovePreviousVersions%29-tp1372539p1372539.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to