[wix-users] WiX NativeImage variable Priority

Joseph L. Casale jcasale at activenetwerx.com
Wed Sep 20 07:26:33 PDT 2017


-----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



More information about the wix-users mailing list