Hello all,

I have the following code fragment in my merge module (Notice: Guid="*"):

<Component Id="SomeId" Guid="*">
    <RegistryKey Root="HKLM" Key="ConstantKeyA" Action="create">
        <RegistryValue Name="ConstantNameA"
Value="[MergeRedirectFolder]" Type="string" KeyPath="yes"/>
    </RegistryKey>
    <RegistryKey Root="HKLM" Key="ConstantKeyA"
Action="createAndRemoveOnUninstall">
<!--    <RegistryValue Name="[MergeRedirectFolder]ConstantNameB"
Value="ConstantValueA" Type="string"/> -->
        <RegistryValue Name="ConstantNameB" Value="ConstantValueA"
Type="string"/>
    </RegistryKey>
</Component>

The fragment above works. However, if I include the line that is
commented out above, I get the following error:

error LGHT0230 : The Component/@Guid attribute's value '*' is not
valid for this component because it does not meet the some of the
criteria for having an automatically generated guid.  Only components
with no ODBCDataSource child elements and either exactly one file
which is the key path or no files and a registry with no Property
substitutions as the key path may use an automatically generated guid.

The line causing the error is "<RegistryValue
Name="[MergeRedirectFolder]ConstantNameB"..." so the problem seems to
be the property substitution in there.
*** But this RegistryValue is NOT the KeyPath of the component! ***

Why does this error happen and how can I solve it?

I'm using WiX 3.0.5419.0 (WiX 3 Final release).

Thank you in advance for your help,
Dirk

------------------------------------------------------------------------------
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