Hello everyboyd,

 

Could anybody please tell me why I am getting this error. I am trying to
compile the SQL sample from http://www.tramontana.co.hu/wix/lesson7.php
.

 

The User and SqlDataBase are documented in chm file. I don't know what I
am doing wrong. Is there anything that I need to add to be able to use
these tags.

 

I am using candle version 3.0.4109.0.

 

 

Here is the error

 

SampleSQL.wxs

C:\dev\WixTest\SQLSample\SampleSQL.wxs(14) : error CNDL0005 : The
Product element contains an unexpected child element 'User'.

C:\dev\WixTest\SQLSample\SampleSQL.wxs(22) : error CNDL0005 : The
Component element contains an unexpected child element 'SqlDatabase'.

 

 

<?xml version='1.0' encoding='windows-1252'?>

<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>

  <Product Name='Foobar 1.0' Id='a22f006c-9416-4d80-81d9-4903b9a69941'

    Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme
Ltd.' UpgradeCode='c52010e8-e5cb-4ab2-870b-6c997c4b8874'> 

 

    <Package Id='*' Keywords='Installer'

      Description="Acme's Foobar 1.0 Installer"

      Comments='Foobar is a registered trademark of Acme Ltd.'
Manufacturer='Acme Ltd.'

      InstallerVersion='100' Languages='1033' Compressed='yes'
SummaryCodepage='1252' />

 

    <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM
#1" />

    <Property Id='DiskPrompt' Value="Acme's Foobar 1.0 Installation [1]"
/>

 

    <User Id='SQLUser' Name='[SQLUSER]' Password='[SQLPASSWORD]' />

 

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

      <Directory Id='ProgramFilesFolder' Name='PFiles'>

        <Directory Id='InstallDir' Name='Acme'>

 

          <Component Id='SqlComponent'
Guid='5a939ef0-c0c9-4ddb-a6eb-ef0d09614436'>

 

            <SqlDatabase Id='SqlDatabase' Database='Foobar'
User='SQLUser' Server='[SQLSERVER]'

              CreateOnInstall='yes' DropOnUninstall='yes'
ContinueOnError='yes'>

              <SqlScript Id='CreateTable' BinaryKey='CreateTable'
ExecuteOnInstall='yes' />

            </SqlDatabase>

          </Component>

 

        </Directory>

      </Directory>

    </Directory>

 

    <Binary Id='CreateTable' SourceFile='CreateTable.sql' />

 

    <Feature Id='SqlFeature' Title='SqlFeature' Level='1'>

      <ComponentRef Id='SqlComponent' />

    </Feature>

 

    <Property Id='SQLUSER'>username</Property>

    <Property Id='SQLPASSWORD'>password</Property>

    <Property Id='SQLSERVER'>server</Property>

 

  </Product>

</Wix>

 

Thanks 

 

-Reza

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