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
- :
- uninstalling a msi during/after uninstalling main application
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
‎Jul 01, 2010
08:45 AM
uninstalling a msi during/after uninstalling main application
I have an application A and also a support pack B. You install package B with as a feature prerequisite during the installation of A. Now I would like B to be uninstalled if you uninstall A.
What I did was in A was to create a custom action as this:
Type = Launch another .msi package
Location = Launch another .msi package
Source = {product code of B}
Target = ALLUSERS=[ALLUSERS] REMOVE=ALL
Install Exec Sequence = After InstallInitialize
Install Exec Condition = Installed AND REMOVE="ALL"
Now I install A (and B is installed by IS automatically). When I later go to Add/Remove programs and uninstall A, A is removed from add/remove program list but B is still visible.
It seems that A is trying to uninstall B but somehow only does part of the job. No the only way to remove B is to go to the registry and hunt down all places in order to not have it visible in the add/remove programs. So i tried LaunchAppAndWait in install script. This is giving error as Another setup is already running.
Please help how can i uninstall pack B.
Thanks in advance
Vivek Agrawal
What I did was in A was to create a custom action as this:
Type = Launch another .msi package
Location = Launch another .msi package
Source = {product code of B}
Target = ALLUSERS=[ALLUSERS] REMOVE=ALL
Install Exec Sequence = After InstallInitialize
Install Exec Condition = Installed AND REMOVE="ALL"
Now I install A (and B is installed by IS automatically). When I later go to Add/Remove programs and uninstall A, A is removed from add/remove program list but B is still visible.
It seems that A is trying to uninstall B but somehow only does part of the job. No the only way to remove B is to go to the registry and hunt down all places in order to not have it visible in the add/remove programs. So i tried LaunchAppAndWait in install script. This is giving error as Another setup is already running.
Please help how can i uninstall pack B.
Thanks in advance
Vivek Agrawal
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 02, 2010
12:30 AM
You cannot run two instances of msiexec exe at a time.
Hence, when you are running your main application, you cannot use msiexec again and try uninstalling application B.
Try if moving your CA, outside InstallInitialize and InstallFinalize does help.
Hence, when you are running your main application, you cannot use msiexec again and try uninstalling application B.
Try if moving your CA, outside InstallInitialize and InstallFinalize does help.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 02, 2010
05:46 AM
Perhaps read on chained msi packages. Not sure but there might be a solution there.