This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Possible NOT to allow "modify" and "repair" on running the setup?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Oct 25, 2010
12:40 PM
Possible NOT to allow "modify" and "repair" on running the setup?
I'm making a very simple InstallScript project which installs a set of files and then runs a command to install the service. And during uninstallation, another command is run before removing files.
I need it to be simple: so only the "Remove" button is allowed to display in "Add or Remove Programs" window.
However, I've just found that if the user runs the setup.exe once again, he has the "Modify, repair, or remove the program" dialog! Is it possible NOT to display this dialog? Or display a dialog which only allows "Remove" or "Cancel"?
TIA
I need it to be simple: so only the "Remove" button is allowed to display in "Add or Remove Programs" window.
However, I've just found that if the user runs the setup.exe once again, he has the "Modify, repair, or remove the program" dialog! Is it possible NOT to display this dialog? Or display a dialog which only allows "Remove" or "Cancel"?
TIA
(7) Replies
‎Oct 26, 2010
12:30 PM
You can edit the Maintenance dialog and delete the Radio button 'Modify' and 'Repair'. This would just display the Remove button.
Hope this helps.
Hope this helps.
‎Oct 27, 2010
10:21 AM
So when a user launches setup.exe on a machine that already has your product installed, you would like it to behave in the same way as if the user was in Add/Remove Programs (remove only option)?
In that case, your best bet may be to modify the OnMaintUIBefore event so it is forced into the REMOVEALL branch of code. Of course, if you are using the program . . . endprogram stream you'll have to call the event explicitly, probably based on the MAINTENANCE property.
Hope this helps.
In that case, your best bet may be to modify the OnMaintUIBefore event so it is forced into the REMOVEALL branch of code. Of course, if you are using the program . . . endprogram stream you'll have to call the event explicitly, probably based on the MAINTENANCE property.
Hope this helps.
‎Oct 28, 2010
04:37 AM
mitutoyo wrote:
So when a user launches setup.exe on a machine that already has your product installed, you would like it to behave in the same way as if the user was in Add/Remove Programs (remove only option)?
Yes, exactly.
mitutoyo wrote:
In that case, your best bet may be to modify the OnMaintUIBefore event so it is forced into the REMOVEALL branch of code. Of course, if you are using the program . . . endprogram stream you'll have to call the event explicitly, probably based on the MAINTENANCE property.
I've just taken a look at OnMaintUIBefore. That's quite a long function. But I suppose I just need to change
nType = MODIFY;
to
nType = REMOVEALL;
at the very beginning of the function.
‎Nov 01, 2010
05:08 PM
Either that or remove all code that doesn't relate to REMOVEALL. Since you are running program . . . endprogram, you have complete control over the function since Installshield will never automatically execute it.