| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" |
| 3 | xmlns:sql="http://wixtoolset.org/schemas/v4/wxs/sql"> |
| 4 | <Fragment> |
| 5 | <Binary Id="ScriptBinary" SourceFile="example.txt" /> |
| 6 | |
| 7 | <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> |
| 8 | <Component Id="DatabaseComponent" Guid="{322802E7-D65E-4C91-924F-FC6D30FEEB34}"> |
| 9 | <File Id="TestFileSpec" Source="example.txt" /> |
| 10 | <File Id="TestLogFileSpec" Source="example.txt" /> |
| 11 | |
| 12 | <sql:SqlDatabase Id="TestDB" Database="MyDB" Server="MySQLHostName" Instance="MyInstanceName" CreateOnInstall="yes" DropOnUninstall="yes" ConfirmOverwrite="yes"> |
| 13 | <sql:SqlString Id="TestString" SQL="CREATE TABLE TestTable1(name varchar(20), value varchar(20))" ExecuteOnInstall="yes" /> |
| 14 | <sql:SqlFileSpec Id="TestFileSpecId" Filename="TestFileSpec" Name="TestFileSpecLogicalName" Size="10MB" GrowthSize="10%" MaxSize="100MB" /> |
| 15 | <sql:SqlLogFileSpec Id="TestLogFileSpecId" Filename="TestLogFileSpec" Name="TestLogFileSpecLogicalName" Size="1MB" GrowthSize="1%" MaxSize="10MB" /> |
| 16 | </sql:SqlDatabase> |
| 17 | |
| 18 | <sql:SqlScript Id="TestScript" BinaryRef="ScriptBinary" SqlDb="TestDB" ExecuteOnInstall="yes" /> |
| 19 | </Component> |
| 20 | </ComponentGroup> |
| 21 | </Fragment> |
| 22 | </Wix> |