[wix-users] WiX NativeImage variable Priority

Blair Murri osito at live.com
Wed Sep 20 11:27:20 PDT 2017


First quirk is that you can't modify information, you can only add it. That typically means you add entire rows. The second quirk is that adding tables at runtime can't be done (IIRC). So, you need to use EnsureTable so you have a place to write the rows to.



Look at the implementation of the extension to see how to convert the authoring into the rows.



What I recommend is making your own table to hold the partial rows, and at runtime looping on your table, adding each row to the desired table in your CA.



Blair Murri



Sent from my Windows 10 phone



From: Joseph L. Casale via wix-users<mailto:wix-users at lists.wixtoolset.org>
Sent: Wednesday, September 20, 2017 8:15 AM
To: 'WiX Toolset Users Mailing List'<mailto:wix-users at lists.wixtoolset.org>
Cc: Joseph L. Casale<mailto: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 8:33 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Wim Brosens <Wim.Brosens at realdolmen.com>
Subject: Re: [wix-users] WiX NativeImage variable Priority

> Can you help me out with this CustomAction ?   I'm not familiar on how to do
> that ...

I don't know if it would even work, however a test is pretty easy. You need to
create a CA and schedule it in InstallExecuteSequence before InstallValidate.
The CA would access the MSI database write temporary updates to the row.

The first thing to do is move your PI out of the value attribute of the Property
element and into the Priority attribute of the netfx:NativeImage element and
make sure your installation works as expected with the hard coded value.

Take the MSI and inspect it Orca and find the table and row/column you need
to manipulate. In the CA, you will open a view into that table and update the
record with the value you supply at invocation time (NGENPRIORITY). See the
DTF.chm file for guidance on that. Once you get this stubbed out, fire back any
questions. Updating the database has some quirks in its implementation...

jlc

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


More information about the wix-users mailing list