You need to add support for the Util and SQL extension namespaces.
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:sql="http://schemas.microsoft.com/wix/SqlExtension">
<!-- Database User -->
<util:User Id="UserId" Name="user-name" Password="user-password"/>
<!-- databases -->
<sql:SqlDatabase Id="dbid" Database="database-name" Server="host-name"
User=" UserId "/>
See the Util and Sql schemas for more information.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Reza Farzin
Sent: Thursday, May 15, 2008 12:18 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] New bee question. 'SQLDatabase' and 'User' tags are not
being resolved.
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
The information contained in this transmission contains potentially
privileged, export controlled and/or confidential information of Imageware
Systems, Inc. or its customers or partners. It is intended only to be read
by the person(s) named above and for no other purpose. You are hereby
notified that any dissemination, distribution, duplication of this
communication or use of its contents for any purpose not authorized
expressly by Imageware Systems, Inc. is strictly prohibited and could lead
to both civil and/or criminal penalties. If you are not the intended
recipient, you are prohibited to review the contents herein and please
contact the sender by reply e-mail and destroy all copies of the original
message. To reply to our e-mail administrator directly, please send an
e-mail to [EMAIL PROTECTED]
-------------------------------------------------------------------------
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