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: Components not uninstalling with multiple instances
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
‎Mar 31, 2010
09:53 AM
Components not uninstalling with multiple instances
I have a basic MSI project that (so far) has a component for installing a Windows service and a component for setting a registry key. Installation works fine for any number of instances, but upon uninstallation the registry key and Windows service don't get removed if there are any other instances left installed on the system. So if I install instance 0 and 1 and then uninstall instance 0, the directory the service's executable was placed in will be removed, but the registry key and service will remain, and then everything for instance 1 will be removed correctly when it gets uninstalled. It doesn't matter which order (or how many) the instances are uninstalled; it's only the last one that ever works properly.
Is there something hidden somewhere that keeps things from being uninstalled with multiple instances, or this just a very inconvenient bug? It's not that I don't have a control setting for deleting the Windows service, or have an install-only flag on the registry key -- everything works like it's supposed to when there's only one instance present. Any help would be very appreciated.
Is there something hidden somewhere that keeps things from being uninstalled with multiple instances, or this just a very inconvenient bug? It's not that I don't have a control setting for deleting the Windows service, or have an install-only flag on the registry key -- everything works like it's supposed to when there's only one instance present. Any help would be very appreciated.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 08, 2010
12:42 PM
Hi ajk7c1,
Im starting with IS10 and finally get to this point, install multiple instances of a single Service, but i´m facing the same problem as u,
?Have u find a solution for this, i mean, the problem of uninstalling the multiple instances¿
Tnks in advance
Im starting with IS10 and finally get to this point, install multiple instances of a single Service, but i´m facing the same problem as u,
?Have u find a solution for this, i mean, the problem of uninstalling the multiple instances¿
Tnks in advance
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2010
03:24 PM
Did you check out this thread?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2010
08:57 PM
I've accepted that this is a limitation of Windows Installer, and made separate components per instance for the things that don't uninstall correctly, as per hidenori's comment in the thread he linked to.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2010
10:34 PM
When you install the registry key and service, do you transform their identity?
For example....
HKLM\SOFTWARE\MyCompany\MyProduct-0
HKLM\SOFTWARE\MyCompany\MyProduct-1
HKLM\SOFTWARE\MyCompany\MyProduct-2
MyService-0
MyService-1
MyService-2
If you do, then all should work well. If you don't, then they will become shared components and won't be removed until the last instance comes off.
I know I've done this in previous installs and had no problems.
For example....
HKLM\SOFTWARE\MyCompany\MyProduct-0
HKLM\SOFTWARE\MyCompany\MyProduct-1
HKLM\SOFTWARE\MyCompany\MyProduct-2
MyService-0
MyService-1
MyService-2
If you do, then all should work well. If you don't, then they will become shared components and won't be removed until the last instance comes off.
I know I've done this in previous installs and had no problems.