Oh. To detect if the product is being uninstalled you need to check the REMOVE property: http://msdn.microsoft.com/en-us/library/aa371194.aspx. But of course you won't be able to access that from a CA running in deferred/rollback/commit mode.
Typically, uninstall custom actions are conditionally scheduled in the sequence table using the REMOVE=ALL condition, so the CA would not need to check for uninstall mode via an API. -----Original Message----- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: Wednesday, February 18, 2009 11:59 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] DTF - install, rollback and uninstall I took at look at that and couldn't figure out how you could tell it was being called during and uninstall. I am sure I am missing something obvious! Neil Neil Sleightholm X2 Systems Limited n...@x2systems.com <mailto:n...@x2systems.com> ________________________________ From: Jason Ginchereau [mailto:jason...@microsoft.com] Sent: Thu 19/02/2009 03:10 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] DTF - install, rollback and uninstall Use Session.GetMode(InstallRunMode) -- it's just a very thin wrapper around the MsiGetMode Win32 API (http://msdn.microsoft.com/en-us/library/aa370125.aspx) -----Original Message----- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: Wednesday, February 18, 2009 2:51 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] DTF - install, rollback and uninstall I a DTF authored custom action how can you tell the mode it is running in, e.g. install, rollback or uninstall? Neil Neil Sleightholm X2 Systems Limited n...@x2systems.com <mailto:n...@x2systems.com> ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users