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

Reply via email to