It is unusual to have custom actions associated with Features.Typically,
custom actions should be associated with Components because Components are
the unit of change in the Windows Installer. If you look at the WiX custom
actions, you'll see all of their state changes are based off of Component
states.

On Wed, Feb 3, 2010 at 7:49 AM, Daniel Skiles <dski...@docfinity.com> wrote:

> Hello folks,
>
> This is my first post here, so please let me know if I'm violating any
> sort of protocol.
>
>
>
> I have a WiX installer that has per-feature custom actions that need to
> be executed on uninstall. Right now I'm running into a problem where the
> actions execute whether or not the feature was actually installed by the
> user. The custom actions fail because they expect certain resources that
> are installed as part of the feature to exist.  If they haven't been
> installed, the entire install is stuck in a broken state.
>
>
>
> Unfortunately, I can't *not* run these custom actions due to legacy
> constraints of the application that I'm wrapping.
>
>
>
> What is the correct way to run a custom action if and only if its
> related feature is being uninstalled? I have included the snippet that
> I'm currently using below, if it helps.
>
>
>
> <Custom Action="LaunchUninstallCustomAction"
> Before="RemoveFiles"><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND
> (REMOVE="ALL") AND (&FeatureName<=2)]]></Custom>
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to