简体   繁体   中英

How to skip the features select screen in WIX-generated installer program?

I want the installer to skip showing setup type screen (where you can choose Typical, Custom, Complete features), How can I do this? I provided only one feature set named product. And I also want the user be able to change the installation directory.

If you only require the user to customize the installation folder, use:

<UIRef Id="WixUI_InstallDir" />

If you don't permit customization of the installation folder, use:

<UIRef Id="WixUI_Minimal" />

Chances are you're using one of the built in libraries that does include the Feature Tree selction, ie

  • WixUI_Mondo
  • WixUI_FeatureTree
  • WixUI_Advanced

My application only has a licence screen then installation directory screen, and I use this configuration block to-do it:

<Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" />
<UIRef Id="WixUI_InstallDir" />
<WixVariable Id="WixUILicenseRtf" Value="License.rtf" />

just before the end of my </Product> tag. All the application installs into INSTALLLOCATION in the <Directory> section.

The WixUI dialog library guide might help explain the options

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM