Don't use "RegistryValue" but "Registry". Best regards, Sebastian Brand
Instyler Software - http://www.instyler.com On Jan 30, 2008, at 18:29 , Ted Yu wrote: > Does WIX v2.0.4701 support RegistryValue ? > I tried this syntax from a sample: > <Directory Id='TARGETDIR' Name='SourceDir'> > <Component Id="MAP_SQL_SERVER_Registry" > Guid="c97abb02-b332-4b2a-97ff-5e8b3ddb1d35"> > <RegistryValue Id="MAP_SQL_SERVER_Registry" > Root="HKLM" Key="SOFTWARE\Microsoft\MAP" Name="SQLSERVER" > Value="[SQLSERVER]" Action="write" Type="string" /> > </Component> > > But WIX still complains: > Compiling - Candle (v2.0.4701.0) .\MapDomainDataDbSetup.wxs > MapDomainDataDbSetup.wixobj > errors in directory c:\map\private\map\installers\sql\mapdomaindata > c:\map\private\map\installers\sql\mapdomaindata > \mapdomaindatadbsetup.wxs(66) : error CNDL0005 : The > Component element contains an unexpected child element > 'RegistryValue'. > > > On Jan 30, 2008 7:16 AM, Sebastian Brand <[EMAIL PROTECTED]> > wrote: > This looks completely wrong :-) > See the tutorial at http://www.tramontana.co.hu/wix/lesson1.php#1.7 on > how to use <Registry__> correctly under a <Component> element > > <Component Id...> > <Registry Id='MAP_SQL_SERVER_Registry' Root='HKLM' Key='SOFTWARE > \Microsoft\MAP' Name='SQLSERVER' > Action='write' Type='string' Value='[SQLSERVER]' /> > </Component> > > > > Best regards, > Sebastian Brand > > Instyler Software - http://www.instyler.com > > > On Jan 30, 2008, at 15:14 , Ted Yu wrote: > > > My intention is to use RegistryValue element in > > InstallExecuteSequence. > > What's the simple way of declaring RegistryValue element ? > > > > I tried the following two approaches: > > <!-- > > <Component> > > <Registry> > > > > --> > > < > > > > Property Id='SYSTEMROO'> > > < > > > > RegistryValue Id="MAP_SQL_SERVER_Registry" Root="HKLM" Key="SOFTWARE > > \Microsoft\MAP" Name="SQLSERVER" Value="[SQLSERVER]" Action="write" > > Type="string" /> > > </ > > > > Property> > > <!-- > > > > </Registry> > > </Component> > > > > --> > > I got: > > BUILD: Linking c:\map\private\map\installers\sql\mapdomaindata > > directory > > Compiling - Candle (v2.0.4701.0) .\MapDomainDataDbSetup.wxs > > MapDomainDataDbSetup.wixobj > > errors in directory c:\map\private\map\installers\sql\mapdomaindata > > c:\map\private\map\installers\sql\mapdomaindata > > \mapdomaindatadbsetup.wxs(166) : error CNDL0005 : The > > Property element contains an unexpected child element > > 'RegistryValue'. > > > > On Jan 29, 2008 10:28 PM, Bob Arnson <[EMAIL PROTECTED]> wrote: > > Ted Yu wrote: > >> > >> What are parents of RegistryValue element ? > >> > >> <RegistryValue Id="IWSWEBSITEIP_Registry" > >> I tried Property and Component->Registry. > >> > >> Neither compiles. > >> > > > > Which version of WiX? What error do you get? The parent elements are > > documented in WiX.chm: > > Parents Component, Registry, RegistryKey > > -- > > sig://boB > > http://joyofsetup.com/ > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users