1

I want to let the user select the language before start the welcome dialog in WiX, so that the installer can install the different features for each language.

So far, I have created my own custom dialog that contains ComboBox, I am aware of how to insert custom dialog between any other dialog, but I have no idea how to insert it before the WelcomeDlg.

phant0m
  • 16,595
  • 5
  • 50
  • 82
Quizer
  • 471
  • 5
  • 17

2 Answers2

2

I have not done it but I am sure it can be easily done:

At the bottom of the WelcomeDlg you should see this:

  <InstallUISequence>
    <Show Dialog="WelcomeDlg" After="CostFinalize" Overridable="yes">NOT Installed OR PATCH</Show>
  </InstallUISequence>  

This allows you to override the dialog sequence. Schedule your custom dialog to run after CostFinalize and before WelcomeDlg. I haven't tested this but it should easily be done.

  <InstallUISequence>
    <Show Dialog="CustomDlg" After="CostFinalize">NOT Installed OR PATCH</Show>
    <Show Dialog="CustomDlg" Before="WelcomeDlg">NOT Installed OR PATCH</Show>
  </InstallUISequence>  
Natalie Carr
  • 3,707
  • 3
  • 34
  • 68
  • When I try following your advice by putting the code in my custom UI page, I got following errors. `E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\WixUI_Advanced.wxs(35) : error LGHT0094 : Unresolved reference to symbol 'Property:ApplicationFolderName ' in section 'Fragment:'. E:\delivery\Dev\wix37_public\src\ext\UIExtension\wixlib\InstallScopeDlg.wxs(20) : error LGHT0094 : Unresolved reference to symbol 'Property:WixAppFolder' in sec tion 'Fragment:'.` It seems there is a problem when I try to use `Before` or `After` with only a dialog – Quizer Jan 21 '13 at 04:18
  • Actually, I found that only the first command, `NOT Installed OR PATCH` is enough. Thank you ! – Quizer Jan 21 '13 at 06:11
  • My bad, only the first line mess the sequence up, If I use only first line, the sequence would be like `CustomDlg > WelcomeDlg > VerifyDlg > WelcomDlg > VerifyDlg > InstallDlg > ExitDlg` let's say if I press the Install button it will popup the `WelcomeDlg` again. Could you help me out ? – Quizer Jan 25 '13 at 09:59
  • Create your own welcome dialog - just take the code from the WIX dialog and take out the ` NOT Installed OR PATCH ` at the end and then hook up your back and Next buttons to the correct dialogs should sort you out. – Natalie Carr Jan 25 '13 at 10:09
  • It seems that I have a problem when trying to run `NOT Installed OR PATCH` it said that `error LGHT0094 : Unresolved reference to symbol WixAction:InstallUISequence/WelcomeDlg' in section 'Fragment:'.` – Quizer Jan 25 '13 at 10:52
0

Try to use Sequence attribute:

<InstallUISequence>
    <Show Dialog="SplashDlg" Sequence="1" >NOT Installed OR PATCH</Show>
</InstallUISequence>
NeVeS
  • 48
  • 1
  • 5