Have you marked the VARIANT's <Property> element with Secure="yes" ?
-----Original Message----- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: 18 September 2012 11:19 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Adding a registry value, displaying empty data Hi I have a registry entry that only gets put in if the Variant does not equal Zero. <!--Write the variant to the registry only if it exists--> <DirectoryRef Id="TARGETDIR"> <Component Id="VariantReg" Guid="A1DC0D4F-D52B-40F2-A5CF-FA3274897883" Win64="$(var.Win64)"> <Condition><![CDATA[VARIANT <> "0"]]> </Condition> <RegistryValue Type="string" Name="Variant" Value="[VARIANT]" Root="HKLM" Key="Software\$(var.Manufacturer)\[PRODUCTNAME]"/> </Component> </DirectoryRef> I then set my property to be set using the following: <Publish Dialog="KeyDlg" Control="Demo" Property="VARIANT" Value="Demo" Order="1">1</Publish> When I run my MSI in the verbose log I can see that this is working correctly: Action 11:08:46: KeyDlg. Dialog created MSI (c) (64:5C) [11:08:46:717]: PROPERTY CHANGE: Modifying VARIANT property. Its current value is '0'. Its new value: 'Demo'. But in my registry, under the name element it has Variant displayed as it should but the Data is empty. I'm at my wits end thinking of what this could be. I tried setting the initial Variant to equal Demo instead of 0 but it still gave me the same answer. So i guessed it was something to do with the registry entry but I have the type as string as i'm near sure the rest is as it should. Anyone any ideas? Thanks ----------------------------------------------------------------------------- - Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users