Either gate your custom action with a condition of REMOVE="ALL" or use an immeadiate CA to pass the REMOVE property to your deferred custom action and then evaluate it in your code.
Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me --- On Thu, 2/19/09, Neil Sleightholm <n...@x2systems.com> wrote: > From: Neil Sleightholm <n...@x2systems.com> > Subject: Re: [WiX-users] DTF - install, rollback and uninstall > To: "General discussion for Windows Installer XML toolset." > <wix-users@lists.sourceforge.net> > Date: Thursday, February 19, 2009, 1:59 AM > 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 ------------------------------------------------------------------------------ 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