Nick
Posts: 13
Joined: Tue Oct 17, 2017 1:46 am

Surface theme: skipping the MaintenanceTypeDlg

Hello guys,

I'm working with a fairly heavily modified version of the "Surface" theme and one customisation I'd like to introduce is enforcing "remove" as the only maintenance type. I'm aware it's possible to hide or disable the buttons for "modify" and "repair" but instead of doing this, I'd prefer to skip directly from the "PrepareDlg" to the "VerifyRemoveDlg", without displaying the "MaintenanceTypeDlg" at all.

Please can you advise if this is possible, and if so how I could go about it?

Thanks,
Nick
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Surface theme: skipping the MaintenanceTypeDlg

Hello Nick,

I'm afraid we do not have built-in support for this option.

As a workaround solution you can completely delete the "MaintenanceTypeDlg" dialog and "VerifyRemoveDlg" too from your maintenance dialog chain. Then after the "PrepareDlg" dialog of the maintenance chain you can add a new dialog in sequence which you can customize to act as "VerifyRemoveDlg".

On the custom dialog in sequence all you need to do is to add a image button (remove) with the following published events:
  • Control Event: Uninstall one or more features
    Argument: ALL
    Condition:

    Control Event: Close the current dialog
    Argument: Return
    Condition:
Let us know if this worked.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Nick
Posts: 13
Joined: Tue Oct 17, 2017 1:46 am

Re: Surface theme: skipping the MaintenanceTypeDlg

Thank you Daniel - that seems to be working fine.

Best regards,
Nick
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Surface theme: skipping the MaintenanceTypeDlg

You are welcome Nick.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”