Wix custom UI for SQL Database installation -


this first wix project. downloaded wix 3.6 rc. installation project includes 2 wcf , 1 silverlight projects. works fine default wix ui. need add sql database it. works fine default values 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 need present user interface sql database path, database name, user name , password, if user , password not specified use windows user.

just see how add custom ui tried following: displays custom ui right away. want show sql database installation only.

<control id="title" type="text" x="15" y="6" width="200" height="15" transparent="yes" noprefix="yes">   <text>ready 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 guess, once show custom ui want, next requirement going able user input database path, name, user , password , pass information script. i'm not sure how either.

read on wix ui extension in .chm. choose dialog set appropriate installer. can customize accordingly. let's assume want customize wixui_advanced dialog set:

  • download wix source code
  • navigate source code ui extension located in src\ext\uiextension\wixlib.
  • copy , rename file *wixui_advanced.wxs* different such *wixui_advanced_custom.wxs*.
  • open .wxs file , sure rename ui id <ui id="wixui_advanced_custom">.
  • add *wixui_advanced_custom.wxs* setup project.

now can reference custom dialog set reference other dialog sets in ui extension. ui not quite customized, provides same functionality wixui_advanced dialog set. add new dialog, need create new .wxs using wix source example. @ of dialogs in src\ext\uiextension\wixlib help. reference dialog in *wixui_advanced_custom.wxs* adding , modifying <publish> elements determine when dialog shown.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -