Bypass MaintenanceTypeDlg - Advanced Installer Community
ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

Bypass MaintenanceTypeDlg

Hi,

I have ticked the options to disable modify/repair and that works fine in the control panel.

I also understand how to modify the MaintenanceTypeDlg to only show the "Remove" button if the installer is run a second time. However this creates an unnecessary click through for the user since they can only click the "Remove" button and are then taken to the VerifyRemoveDlg where they have to click "Remove" a second time. Is there a way to bypass the MaintenanceTypeDlg and go straight to the VerifyRemoveDlg in this case? Alternatively is there a way to have the "Remove" button on the MaintenanceTypeDlg actually start the removal rather than showing the VerifyRemoveDlg?

Thanks,
Ewan
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Bypass MaintenanceTypeDlg

Dear Ewan,

MaintenanceTypeDlg is a mandatory dialog so you can't remove it. You can however remove VerifyRemoveDlg and here's what you need to do:
- remove MaintenanceWelcomeDlg, CustomizeDlg and VerifyReadyDlg from the Maintenance chain
- expand MaintenanceTypeDlg and select VerifyRemoveDlg from its Remove sub-chain
- select "Uninstall" button and copy all published events to the "Remove" button from MaintenanceTypeDlg
- make sure to copy the published events after the "Remove" button's existing published events and to keep their order in the list
- remove VerifyRemoveDlg

Hope this helps,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

Re: Bypass MaintenanceTypeDlg

Hi Mihai,

That's great thanks.

Regards,
Ewan

Return to “Common Problems”