[wix-users] Custom Action Scheduled for Feature Upgrade

Griesshammer, Christoph (GE Healthcare) christoph.griesshammer at ge.com
Wed Feb 1 06:58:50 PST 2017


The custom action needs to change files on disk and needs admin privileges to make sure it works correctly, so it is a deferred custom action after InstallFiles.

Basically what I need is to set a property around the time of MigrateFeatureStates to detect if the feature was in fact there.

Can I do that somehow? Is there an easier way to do this?

Christoph

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Fyodor Koryazhkin
Sent: Wednesday, February 01, 2017 9:35 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: EXT: Re: [wix-users] Custom Action Scheduled for Feature Upgrade

Hi,
You did not specify at what place you put your custom action, but just be aware that you cannot condition your custom action with component or feature state/action if your custom action placed before CostFinalize standard action. This is the place where all components and features action/states are calculated.

For the second part of the question: The Action property from the Upgrade table is populated only during upgrade - this is done during FindRelatedProducts standard action. It is populated with the product code of the Product that is to be removed.

On Wed, Feb 1, 2017 at 4:26 PM, Griesshammer, Christoph (GE Healthcare) < christoph.griesshammer at ge.com> wrote:

> I've been struggling to get a custom action condition correct. I need 
> to run the custom action during an upgrade, but ONLY if a specific 
> feature is being upgraded.
>
> (!Feature = 3 AND &Feature = 3)
>
> I have tried the above, but it doesn't work. What I've seen is that 
> essentially the uninstall of the old package during the install says 
> the feature is local and will be absent after, but the install of the 
> new package says the feature is absent and will be local after.
>
> How do I get the condition to realize I'm talking about the OVERALL 
> upgrade and not just the install portion of the upgrade?
>
> Christoph Griesshammer
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_
> &d=DQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=-l6_npd-dx-e
> kbVSbypvaw-IcErQ11UE3f78jQgrCDw&m=nSke9_I0XiVptwi5uGfIn1mjleQpkt71S1x7
> sWDC1gQ&s=mLaIjcmxOHu4EGpwNxF0i3CphENEaQWe21GSqD8qieI&e=
>



--
Regards,
Fyodor Koryazhkin..

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=DQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=-l6_npd-dx-ekbVSbypvaw-IcErQ11UE3f78jQgrCDw&m=nSke9_I0XiVptwi5uGfIn1mjleQpkt71S1x7sWDC1gQ&s=mLaIjcmxOHu4EGpwNxF0i3CphENEaQWe21GSqD8qieI&e= 



More information about the wix-users mailing list