The value of VERSION needs to be resolved at build-time, not run-time,
otherwise you're going to generate a potentially invalid component.
$(var.xxx) is resolved at build-time; [PROPERTY] is resolved at run-time.

Shouldn't the registry key have been written as Key="SOFTWARE\
Company\Product\$(var.VERSION)" ? That would solve it.

-----Original Message-----
From: thomas.debo...@rohde-schwarz.com
[mailto:thomas.debo...@rohde-schwarz.com] 
Sent: 02 December 2011 11:59
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Component GUID * - same for two different builds

Hi,

I have a problem with an automatic generated GUID.

We use "<Component Id="Component.RegistryHKLM" Guid="*">" for our registry 
component.
Now we build two different Versions on two different build systems but get 
the same GUID generated in both setups. :-(

The problem is, that we can install both versions side by side.
The registry key contain the version to seperate the values for both 
versions like
<RegistryValue Action="write" Id="ContestInstallDir" Key="SOFTWARE\
Company\Product\[VERSION]" Name="InstallDir" Root="HKLM" Type="string" 
Value="[INSTALLLOCATION]$(var.VERSION)\bin" />

But when I now uninstall one of these version the registry values will not 
be removed as the component with same name and GUID is referenced from the 
other version as well.

What is the way the GUID will be generated or what can I do to get a 
different GUID generated for the different versions?

Many thanks,
  Thomas
-----------------------------------------------------------------------------
-
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
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.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to