Something doesn't appear to match between your error report and your offered
code.

If the component containing the registry key/values that have the property
in the key's name has a @Guid='*' then this is something that has been
addressed recently in this list (the fix is in 3.5 and the workaround is to
generate a guid yourself if you can't move to 3.5).

If the component contain the registry has a @Guid that is a GUID then you
have a bug I haven't seen.

-----Original Message-----
From: bba [mailto:bartb...@gmail.com] 
Sent: Thursday, September 24, 2009 2:58 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] RegistryKey and Property Value


Hi,

For an Autocad plugin I need to create registry values with 'Key' based on a
property.

Basically this is what I'm doing:

Read and define a property based on a value in the registry:
<Property Id="ACAD_PATH">
      <RegistrySearch Id="RegSearchAcadPath" Name="AcadPath" 
                   Root="HKLM" 
                   Key="Software\$(var.MyDir)\$(var.ProductName)\Install" 
                   Type="raw" />
</Property>
Then create RegistryValues based on this property:
<Component Id="RegisterDll" Guid="B2B95869-F601-43FE-A92B-9DBCEA407303">
      <RegistryKey Root="HKLM"
                   Key="[ACAD_PATH]\Applications\$(var.ProductName)"
                   Action="createAndRemoveOnUninstall"/>
          <RegistryValue Root="HKLM"
                     Key="[ACAD_PATH]\Applications\$(var.ProductName)" 
                     Name="DESCRIPTION" Type="string" Value="2" />
          <RegistryValue Root="HKLM"
                     Key="[ACAD_PATH]\Applications\$(var.ProductName)" 
                     Name="LOADCTRLS" Type="integer" Value="2" />
</Component>
Wix tells me:
The Component/@Guid attribute's value '*' is not valid for this component
because it does not meet (...)
Whenever I replace [ACAD_PATH] to some path
("Software\Autodesk\AutoCAD\R18.0\ACAD-8001:409") I get a nice build.

Obviously I'm missing something. Any ideas?

Thanks in advance,

Regards,
Bart
-- 
View this message in context:
http://n2.nabble.com/RegistryKey-and-Property-Value-tp3705191p3705191.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to