[wix-users] Set property from custom action?
Alon Dean
alondean at gmail.com
Tue Jan 5 05:03:01 PST 2021
Hi,
So I still didn't figure this out...
I did what I described, created an immediate CA which sets the value of a
property I defined, to the console session's local app data path.
But at the log (running the msi with L*V), it seems this custom action is
executed only at the second sequence, and the installer still 'thinks' the
property's value is the default one I configured at the WXS file, and the
value I set using the CA doesn't affect anything.
I was then advised to create a CA which modifies the DB by inserting
temporary records to the DB, but from what I understand, this is
useful mainly to create features, while what I need is to modify the
value of a property in order to change the install dir path while running.
I can supply a more elaborated explanation with code samples if needed,
Anyone got a suggestion for me?
I'm really stuck here..
Thanks!
On Sun, Dec 27, 2020 at 12:46 PM Nir Bar via wix-users <
wix-users at lists.wixtoolset.org> wrote:
> You got it right, that's the way to do it.
>
> Make sure to schedule the custom action in both UI and Execute sequences
> and run on first sequence only
>
> The property should be in all capital characters
>
>
>
>
> --
>
> Nir Bar
>
> WiX Expert
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-users
mailing list