rob.a.dunbar
Posts: 19
Joined: Thu Jan 30, 2014 2:56 am

Disable Modify does not work

Hi,

I have disabled modify in my .aip file how ever, when I run the setup.exe it shows me the Modify option.
I am using 10.9 and Classic - Default theme.

Regards,
Rob
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Disable Modify does not work

Hi Rob,

I assume you selected the Disable Modify option from the Product Details Tab page. Please note that the intended purpose for the related options is:
  • Disable Modify - Disables the "Change" option in the "Add or Remove Programs" applet in the Control Panel.
    Disable Repair - Disables the "Repair" button in the "Add or Remove Programs" applet in the Control Panel. This button is showed when you select the Click here for support information link.
    Disable Remove - Disables the "Remove" option in the "Add or Remove Programs" applet in the Control Panel.
If you run the same installation package for the second time, then Windows Installer will run the installer in maintenance mode and the user will then be presented with choices to alter the installed product, repair it or remove it (done through the MaintenanceTypeDlg). This is happening because the installation package has the same PackageCode GUID. A new PackageCode is generated each time you build your project. Think of the PackageCode as some sort of checksum. No two .msi files should ever have the same PackageCode unless they are identical.

Please take a look on the Product Identification article which may be useful to you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rob.a.dunbar
Posts: 19
Joined: Thu Jan 30, 2014 2:56 am

Re: Disable Modify does not work

Thanks for the explanation. I guess I was hoping that when the Modify\Repair were disabled there, that the Maintenance dialog would be updated as well. Should be too hard to update the IsVisible properties on those buttons ;) Perhaps this could be added as an improvement? :D
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Disable Modify does not work

Hello,

The MaintenanceTypeDlg can be easily edited from the Dialogs page. You can remove the labels and hide the Modify button( set Visible to false from Properties left pane ).

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

Return to “Common Problems”