On Jan 30, 2008 8:46 PM, Ted Yu <[EMAIL PROTECTED]> wrote:
>
>
> When I use WIX 3.0.2512.0 to compile, I get error on this line:
>
>                   <Component Id='DbCreateComp'
> Guid='65721384-ACFB-11DC-8E65-758256D89593' DiskId='1' Location='either'
> Permanent="yes">
>
>                         <Condition><![CDATA[DB_EXIST_FLAG=0 AND
> REMOVE<>"ALL"]]></Condition>
>
>                         <SqlDatabase Id='AttachDb' Database='master'
> Server='[SQLSERVER]' CreateOnInstall='yes'>
>
>
>
> The error is:
>
> c:\map\private\map\installers\sql\handsetmgrdata\handsetmgrdbsetup.wxs(92) :
> error CNDL0005 : The Component element contains an unexpected child element
> 'SqlDatabase'.
>
>
>
> But according to public\ext\wix\3.0.2512.0\doc\WiX.chm, Component can be
> parent of SqlDatabase.
>
>
>
> Why do I encounter this error ?

I think it is because you haven't specified the correct namespace for
the SqlDatabase element. The namespace is
http://schemas.microsoft.com/wix/SqlExtension according to the wix
docs.

/Johan

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

Reply via email to