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
- :
- calling uninstall from command-line
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 06, 2010
10:32 AM
calling uninstall from command-line
Hi,
I'm evaluating the InstallShield 2011.
In my case, there is an executable that, among other things, calls the setup.exe that I created with InstallShield.
Symmetrically, I need to call the uninstall of InstallShield from an executable I created (and not by the add/remove programs utility)
So basically I need 2 things:
1. the ability to uninstall from the command-line, so I can execute it from my Uninstall.exe (is the setup.exe stored somewhere in the target computer, so I can call it with uninstall flags??)
2. I put an entry in the add/remove programs utility that calls my Uninstall.exe first (and in its turn should call the InstallShield uninstall...), is there a possibility that installShield won't put the add/remove entry?
How do I implement this in InstallShield?
Thanks,
Boaz.
I'm evaluating the InstallShield 2011.
In my case, there is an executable that, among other things, calls the setup.exe that I created with InstallShield.
Symmetrically, I need to call the uninstall of InstallShield from an executable I created (and not by the add/remove programs utility)
So basically I need 2 things:
1. the ability to uninstall from the command-line, so I can execute it from my Uninstall.exe (is the setup.exe stored somewhere in the target computer, so I can call it with uninstall flags??)
2. I put an entry in the add/remove programs utility that calls my Uninstall.exe first (and in its turn should call the InstallShield uninstall...), is there a possibility that installShield won't put the add/remove entry?
How do I implement this in InstallShield?
Thanks,
Boaz.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 07, 2010
07:17 PM
See the "Creating Uninstallation Shortcuts for InstallScript and InstallScript MSI Projects" help topic for the command line to run; you can suppress the default Add or Remove Programs entry with the ADDREMOVE_SYSTEMCOMPONENT variable.
(If you're using an MSI project, there are similar help topics and properties to get the same effect.)
(If you're using an MSI project, there are similar help topics and properties to get the same effect.)
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)