[wix-users] WiX NativeImage variable Priority

harald goci harald.goci at panagenda.com
Wed Sep 20 07:00:28 PDT 2017


Hi Wim,
have you defined the property in the MSI?
Something like <Property Id="NGENPRIORITY" Value="0" />?

BR,
Harald Goci
Senior Software Engineer

Email: harald.goci at panagenda.com - Web: www.panagenda.com
Phone: +43 1 890 12 89-44 - Fax: +43 1 890 12 89-15

(Embedded image moved to file: pic00041.jpg)

panagenda GmbH - Schreyvogelgasse 3/10 - 1010 Vienna - Austria
Registered Office: Vienna - HG Wien - FN 293516t - VAT-ID: ATU63362738
Executive Directors: Florian Vogler (CEO & CTO), Felix Vogler (CFO & COO)

(Embedded image moved to file: pic18467.jpg)

The information in this E-Mail is confidential and privileged. It is
intended solely for the addressee. Access to this E-Mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken in reliance on it is prohibited
and will be unlawful. If you receive this message in error, please notify
the sender immediately and delete all copies of this message.




From:	Wim Brosens via wix-users <wix-users at lists.wixtoolset.org>
To:	"wix-users at lists.wixtoolset.org"
            <wix-users at lists.wixtoolset.org>
Cc:	Wim Brosens <Wim.Brosens at realdolmen.com>
Date:	20.09.2017 15:54
Subject:	[wix-users] WiX NativeImage variable Priority
Sent by:	"wix-users" <wix-users-bounces at lists.wixtoolset.org>



Hello,

At install time I need to ngen some of my deployed assemblies. I want to
integrate this into my WiX project, so that when I uninstall the soft, the
native images are deleted from my machine.

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>

e.g.:

msiexec -i MySoft.msi NGENPRIORITY="0"
                for running ngen syncroniously

msiexec -i MySoft.msi NGENPRIORITY="1"
                for queueing ngen to occur immediate

msiexec -i MySoft.msi NGENPRIORITY="2"
                for queueing ngen to occur after all prio 1's are fininshed

msiexec -i MySoft.msi NGENPRIORITY="3"
                for queueing ngen to occur when cpu is idle

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.

Can someone help me out with this one ?

Kind regards,
Wim.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/



More information about the wix-users mailing list