[wix-users] Double quotes in registry value

Dzmitry Razhanski Dzmitry_Razhanski at epam.com
Thu Mar 15 07:06:26 PDT 2018


Hi Pavan,

It would be better if you provide your own code which doesn't work.

Using the code below:
	 <Property Id="TEST_REG" Secure="yes">
 		  <RegistrySearch Id="SEARCH_TEST" Root="HKLM" Key="Software\TEST" Name="xxx" Type="raw"/>
	</Property>
	<Property Id="TEST2" Value='"&BLAH"' />

I got the same result in the installation logs:
	Property(S): TEST_REG = "&BLAH"
	Property(S): TEST2 = "&BLAH"

These conditions disable and enable my component installation accordingly:
	<Condition> <![CDATA[ TEST_REG <> TEST2 ]]></Condition>  <!-- FALSE-->
	<Condition>  TEST_REG = TEST2 </Condition> <!-- TRUE-->
              <Condition> TEST_REG = '"&BLAH"' </Condition> <!-- TRUE-->

Best regards,
            Dzmitry Razhanski.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of KONDURU Pavan via wix-users
Sent: Wednesday, March 14, 2018 9:36 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: KONDURU Pavan <Pavan.KONDURU at 3ds.com>
Subject: [wix-users] Double quotes in registry value

Hi All,

I am trying to write a launch condition based on the value in a registry. The value is say "&BLAH" , the double quotes are in the value. How do I make my custom property evaluate to this value?
MY_PROP="&BLAH" isn't working as it evaluates to just &BLAH and putting '"&BLAH'" or ""&BLAH"" isn't working. Also escaping them with " or & isn't working.
Any ideas?

--Pavan
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer

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



More information about the wix-users mailing list