How can I add an optional UI to WiX toolset

只愿长相守 提交于 2019-12-02 23:47:00

问题


I have already made a quiet installer (without the need to click any buttons but some progress bar is shown while installation is in progress) for a project deployment. This time I wish to add an optional graphical user interface.

By default, the installer should just run without clicking anything, when a parameter is given, let's say, the msiexec parameter: /qf, the installer would pop up an interface that can be interacted with.

I've already added the required UI dll to the project reference, but given msiexec /i C:\Setup.msi /qf, it doesn't work. How can I get it to work?


回答1:


Did you try the procedure described in this well known Wix tutorial?

At its simplest level, this means that you essentially just add this to the Wix source file and you get a default GUI:

<UIRef Id="WixUI_Minimal" />

You can also try the other "defaults":

  • WixUI_Mondo (normal)
  • WixUI_FeatureTree
  • WixUI_InstallDir
  • WixUI_Advanced

A search turned up a similar answer, and one talking about extending the default gui.




回答2:


Just modify the WixUI_Minimal.wxs file:

  • How to build a minimal WiX installer UI without a license page?
  • WiX toolset WixUI_Minimal Dialog Set
  • Customised UI's for WiX

Then use properties to condition the dialogs to show or hide as you launch the MSI via msiexec.exe.



来源:https://stackoverflow.com/questions/25139162/how-can-i-add-an-optional-ui-to-wix-toolset

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