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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to