The WiX custom actions perform their install/uninstall actions on a
per-component basis by calling MsiGetComponentState. If the resource is
currently installed locally or to run from source, and the action is to make
it absent or removed, the uninstall tasks are performed. It's probably a
good idea to stick to this model.

 

You can also query whether a feature is being uninstalled using
MsiGetFeatureState.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rory Clark
Sent: 28 June 2007 21:47
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Question about writing custom actions...

 

...how do I tell if I am uninstalling a product or installing it? We have a
library we've written to do some configuration changes, but now we want to
different things when a user installs and when a user uninstalls. I poked
through the MSI SDK, but nothing really jumped out while skimming the CHM
file.

 

Thanks!

Rory

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