问题
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.
回答1:
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>
回答2:
Try to use Sequence attribute:
<InstallUISequence>
<Show Dialog="SplashDlg" Sequence="1" >NOT Installed OR PATCH</Show>
</InstallUISequence>
来源:https://stackoverflow.com/questions/14394374/how-can-i-insert-custom-dialog-before-welcomedlg