Question

After installation of the setup, when the user again clicks on the setup to open it in the maintenance mode, I want that only the 'Repair' and 'Remove' options are shown and the 'Change' option is not shown.

I can disable the 'Change' button using but I want to remove it and don't want to display it to the user.

Please suggest if this is possible.

Was it helpful?

Solution

You can include the Wix dialog set (.wxs) in your installer project (they can be downloaded from git). Edit MaintenanceTypeDlg.wxs file and remove the repair button and label.

OTHER TIPS

Take a look at the Windows Installer properties which start with ARPNO prefix: ARPNOMODIFY (this is what you need), ARPNOREPAIR and ARPNOREMOVE. These properties define the availability of option in Add/Remove Programs console.

Hope this helps.

If you are using WixUI_Mode and not using customized MaintenanceTypeDlg.wxs then you should define <Property Id="ARPNOMODIFY" Value="1" /> in YOUR_MAIN_UI.wxs file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top