zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Removing "Modify" from installer

My installer has very few options for the end user. Actually it has none. The install location is found based on the presence of another application so essentially the user is just clicking next and then next again to install.

However once installed, if the user then runs the msi again, they are given the options of repairing, modifying or removing the application. I am ok with repairing and removing but I would like to remove the modify option. I do have an application directory (which is determined by values in the registry) so the user should not be able to change it.

I can see that there is an option to remove the modify in the control panel which I have done but I was wondering if it can be removed from the installer?

Thanks

David
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Removing "Modify" from installer

Hi zeiddev,

you can disable modify from the Product Details panel (this is the option, you found already).

Actually this removes only the context menu option in "Programs and Features". If you want to remove the Modify option from setup, you can either override the default dialogs and just delete the Modify button from the MantenanceTypeDlg dialog. Alternatively you can also change the default dialog sequence and remove the MantenanceTypeDlg completely.

Regards,

Roland
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Removing "Modify" from installer

Hi,

Thanks for your answer but I don't actually have the MaintenanceTypeDlg included. In the Dialogs section I have the following under the first time install branch: WelcomeDlg, VerifyReadDlg, ProgressDlg and ExitDialog. That is correct for the first time that the user installs but it is subsequent times that are the problem. There is no branch for those occasions. If there had been I assume that I would have removed the MaintenanceTypeDlg from there.

Thanks

David
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Removing "Modify" from installer

Hi zeiddev,

ah, I see. Which edition do you use?

Regards,

Roland
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Removing "Modify" from installer

Yes, I realised that now. I am using Professional (well currently trialing). Anyway I can see the other options exist when working with Enterprise. It does seem strange though that the option exists to remove the modify from the control panel but not for the installer (under Professional)

David
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: Removing "Modify" from installer

Hi

I see that you've found the solution, that is to edit the MantenanceTypeDlg dialog and remove/hide the Modify option.
R.Mueller, thanks for your advice on this discussion.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”