[wix-users] Passing a property from bundle to msi to be consumed as a registry multiString value

Jon Armen jarmen at bstglobal.com
Thu Feb 11 10:47:36 PST 2016


Ah yes, bad example.  In my production code, I am using public properties (all caps) for passing this value

Rewrite of the example to explain with public properties for completeness

I've tried both of these msi properties:

<MsiPackage ...>
                <MsiProperty Name="PROP1" Value="Test1[~]Test2" />
	<MsiProperty Name="PROP2" Value="Test1[\[]~[\]]Test2" />
 </MsiPackage>

My msi has a component with:

<RegistryValue Root="HKLM" Key="Software\..." Name="Prop1" Value="[PROP1]" Type="multiString" /> <RegistryValue Root="HKLM" Key="Software\..." Name="Prop1" Value="[PROP2]" Type="multiString" />

After the install runs, Prop1 contains a multiString, however Test1Test2 appears on a single line
Prop2 contains a multiString, however Test1[~]Test2 appears.

ATTENTION:
The information contained in this message may be legally privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited.

If you have received this message in error, please immediately notify the sender and/or BST Global by telephone at +1 813.886.3300 and delete or destroy any copy of this message.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of John Cooper
Sent: Thursday, February 11, 2016 1:44 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Passing a property from bundle to msi to be consumed as a registry multiString value

Only public properties can be passed into an MSI.  That means the property MUST be in all uppercase.

--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Enterprise Notification Service Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 |JoCooper at jackhenry.com




-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Jon Armen
Sent: Thursday, February 11, 2016 12:43 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Passing a property from bundle to msi to be consumed as a registry multiString value

The e-mail below is from an external source.  Please do not open attachments or click links from an unknown or suspicious origin.

I am attempting to pass a property in a bundle to an msi

I've tried both of these msi properties:

<MsiPackage ...>
                <MsiProperty Name="Prop1" Value="Test1[~]Test2" /> <MsiProperty Name="Prop2" Value="Test1[\[]~[\]]Test2" /> </MsiPackage>

My msi has a component with:

<RegistryValue Root="HKLM" Key="Software\..." Name="Prop1" Value="[Prop1]" Type="multiString" /> <RegistryValue Root="HKLM" Key="Software\..." Name="Prop1" Value="[Prop2]" Type="multiString" />

After the install runs, Prop1 contains a multiString, however Test1Test2 appears on a single line
Prop2 contains a multiString, however Test1[~]Test2 appears.

Does anyone have insight as to how I could get the expected behavior of Test1 and Test2 on separate lines?

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

NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies.


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



More information about the wix-users mailing list