This is my first wix project. I downloaded wix 3.6 rc. My installation project includes 2 wcf projects and 1 silverlight. Everything works fine with the default Wix user interface. But now I need to add sql database to it. It works fine with default values ββas below:
<Component Id='SqlComponent' Guid='8B72C159-1477-4A58-AFAE-E94D756BFFA6'> <CreateFolder/> <sql:SqlDatabase Id='SqlDatabase' Database='master' Server='.' CreateOnInstall='yes' DropOnUninstall='no' ContinueOnError='yes'> <sql:SqlScript Id='CreateTable' BinaryKey='CreateTable' ExecuteOnInstall='yes' /> <sql:SqlScript Id='CreateTable1' BinaryKey='CreateTable1' ExecuteOnInstall='yes' /> </sql:SqlDatabase> </Component>
But I need to provide a user interface for the SQL database path, database name, username and password if no user and password are specified, then use a Windows user.
Just to learn how to add custom ui, I tried the following: but it displays the custom ui right away. But I want it to show specifically for installing the sql database.
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes"> <Text>Ready to Install</Text> </Control> <Control Id="Install" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Text="Install"> <Publish Event="EndDialog" Value="Return" /> </Control>
I think, as soon as I get it to show the user interface exactly where I want, my next requirement will be able to get user input for the database path, name, user and password and pass this information to the script, I also donβt know , how to do it.
gangt
source share