[wix-users] WiX NativeImage variable Priority
Wim Brosens
Wim.Brosens at realdolmen.com
Wed Sep 20 07:33:04 PDT 2017
Can you help me out with this CustomAction ? I'm not familiar on how to do that ...
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Joseph L. Casale via wix-users
Sent: woensdag 20 september 2017 16:27
To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
Cc: Joseph L. Casale <jcasale at activenetwerx.com>
Subject: Re: [wix-users] WiX NativeImage variable Priority
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Wim Brosens via wix-users
Sent: Wednesday, September 20, 2017 7:54 AM
To: wix-users at lists.wixtoolset.org
Cc: Wim Brosens <Wim.Brosens at realdolmen.com>
Subject: [wix-users] WiX NativeImage variable Priority
> I'm trying to set the NativeImage Priority attribute to an msi
> (public) variable NGENPRIORITY so I can choose the NGEN handling when I start the msi:
> <File Id="F_ MyAssembly" Name="MyAssembly.dll"
> Source="$(var.dirSource)\MyAssembly.dll">
> <netfx:NativeImage Id="NI_MyAssembly"
> Platform="$(var.nativeImage.platform)" Priority="[NGENPRIORITY]" />
> </File>
> But I'm getting compiler errors:
> The 'Priority' attribute is invalid - The value '[NGENPRIORITY]' is
> invalid according to its datatype 'NmToken' - The '[' character,
> hexadecimal value 0x5B, cannot be included in a name.
The docs do not indicate this is a formatted property and the hint of the extension not understanding the "[" is your clue. If it were a formatted property and you did not define it, it would have been evaluated to an empty string (or null?).
Doesn't look like you can set at that at runtime unless you use a CA to manipulate the value in the table possible, but that is just a WAG.
jlc
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list