0

I have created a setup through install shield and the installation goes correctly.

The problem is when I uninstall from program files then I want to display maintenance mode. Presently it directly shows removing and it removes the program.

I do have setup the maintenance dialog so when user tries to re-install then it will take the user to maintenance mode.

I think I can do it in Install script but I am using normal installation (Basic MSI)

Anyone knows how we can achieve this ?

Moiz
  • 2,409
  • 5
  • 27
  • 50

1 Answers1

0

In a Basic MSI project, setting the ARPNOREMOVE property to 1 disables the Uninstall button (and its nearly-silent experience). It yields only an Uninstall/Change button that invokes maintenance. Note that the labels of the buttons may differ on different versions of Windows.

Michael Urman
  • 15,737
  • 2
  • 28
  • 44
  • thanks for the reply. so is there anyway where I can use advanced UI and I can achieve the behavior ? My basic requirement is when user click on uninstall from program and features then I should show a dialog where the user is asked if he needs to remove all the data or not. I think I can show the message box but the dialog is more appropriate. – Moiz Mar 09 '16 at 11:18
  • I'm not certain I understand this follow up, but let me suggest that you not go that route. Showing UI from the normal Uninstall button would almost definitely break the silent promise of `msiexec /x {...} /qb`. Instead send them down a route that shows UI as I described in my answer. – Michael Urman Mar 09 '16 at 13:21
  • I completely understand your approach, but as per our business guidelines we need to show only uninstall in the program and features for removing our application. – Moiz Mar 10 '16 at 04:34