How can I insert custom dialog before WelcomeDlg?

北慕城南 提交于 2019-12-24 14:35:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!