开发者

wix common ui dialog - how to use the same dialog more than once in single MSI

I am using Wix::Extensions::CommonUi from AppSecInc.

I need to deploy two databases in my MSI and need to collect the db connection information from the user for both databases.

I would like to utilize DbCreateCredDlg dialog.

<UI>

....

<DialogRef Id="DbCreateCredDlg" />

<!- use DbCreateCredDlg for database 1 ->

<!- use DbCreateCredDlg for database 2 ->

...

</开发者_C百科UI>

Is there any way I can use the this dialog more than once in the same MSI?


I suppose you should pull the sources of that dialog to include in your sources and modify it accordingly. For instance, add a condition when the Next button of this dialog returns it to self for database 2 data. You'll need to preserve the data in the properties tied to dialog controls before prompting the user to enter the data for database 2.

So, the Next button will do the following (just behavior algorithm):

  • if DB=1, preserve entered data for database1
  • set DB=2
  • show this dialog again
  • if DB=2, preserve entered data for database2
  • show next dialog in sequence

The similar thing should be done for Back button of that dialog.

Hope you get the idea.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜