mtomsak
Posts: 11
Joined: Fri Mar 25, 2016 10:32 pm

Disable Modify and Repair

I have Advanced Installer with the Professional license.

After I run my installer package successfully, I try to run the installer package again. The installer enters the Maintenance dialog, from which Modify/Repair/Remove options are available.

Ultimately, I would like installer to simply display a message indicating that the package is already installed. As a second option, I would like to disable the Modify and Repair options.

I have read that I can implement the second option if I upgrade to Enterprise or Architect, but is there a solution that will work for me with the Professional license.

Ultimately, I do not want users to be able to Repair or Modify, either from Control Panel or from MSI.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Disable Modify and Repair

Hello,
Ultimately, I would like installer to simply display a message indicating that the package is already installed. As a second option, I would like to disable the Modify and Repair options.

I have read that I can implement the second option if I upgrade to Enterprise or Architect, but is there a solution that will work for me with the Professional license.
Indeed, to change the MaintenanceDlg you need the DialogEditor feature that is available starting with the Enterprise edition of Advanced Installer.

However, to prevent the installer to enter in Maintenance mode you can add the predefined Display error message custom action after the paths Resolution stage from the Wizard Dialogs Stage. Set the custom action to be only executed on maintenance mode, see below:
ErrorMessage - properties.png
ErrorMessage - properties.png (35.38 KiB) Viewed 4305 times
When the user will run the package second time, he will be prompted with the related message.
Ultimately, I do not want users to be able to Repair or Modify, either from Control Panel or from MSI.
For this, please enable the Disable Modify and Disable Repair options from the Product Details page.

Let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”