문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top