Candle doesn't like Keypath on that element: error CNDL0004: The RegistryKey
element contains an unexpected attribute 'KeyPath'.


-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: Saturday, October 24, 2009 1:22 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] How do I add both a HKLM and a HKCU key to the
registry?

Try adding KeyPath="yes" to each of your two RegistryKey elements.

-----Original Message-----
From: Dave Kolb [mailto:d...@dotnetcodeslingers.com] 
Sent: Friday, October 23, 2009 6:34 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] How do I add both a HKLM and a HKCU key to the
registry?

During install, I am trying to add both an HKLM key and an HKCU key for my
product. My wxs looks like the below. When this compiles I get the error

 

                "ICE57: Component 'C_HKCU_RegistryEntries' has both per-user
and per-machine data with a per-machine KeyPath ".

 

I have both components in the features element and since I have these
defined are separate components I do not understand why this does not work.
Any suggestions much appreciated.

 

Thanks, Dave

 

    <!-- Define the directory structure. -->

    <Directory Id="TARGETDIR" Name="SourceDir">

 

      <!-- add our root registry entries -->

      <Component Id="C_HKLM_RegistryEntries" Guid="xxx">

        <RegistryKey Root="HKLM"

                     Key="Software\[MYCOMPANYNAME]\[MYPRODUCTROOT]\Manager"

              Action="createAndRemoveOnUninstall">

        </RegistryKey>

      </Component>

      <Component Id="C_HKCU_RegistryEntries" Guid="xxx">

        <RegistryKey Root="HKCU"

                     Key="Software\[MYCOMPANYNAME]\[MYPRODUCTROOT]\Manager"

              Action="createAndRemoveOnUninstall">

        </RegistryKey>

      </Component>

 



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4537 (20091023) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to