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
- :
- Windows Service Uninstall Leaves Files Behind
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 16, 2013
08:38 AM
Windows Service Uninstall Leaves Files Behind
I have a Windows Service that is making me extremely mad. It installs just fine, but when I uninstall it, the main executable (.exe) and assemblies don't get uninstalled and the log file states "Removal completed successfully". I've created MSIs for Windows Services before and this is the first time I haven't been able to get the uninstall to work properly.
Any tips on what I can try to get this service to uninstall cleanly?
Attached is the unistall log, should one of you be so generous as to help figure-out if there's something obvious that I'm missing 😮
- The Windows Service is a .NET 4.0 WCF service, if that matters.
- Whether I use InstallShield's "Services" section or a ProjectInstaller.cs class in the service itself, it doesn't matter... neither affect the uninstall.
- I changed the "Shared" property of all the assemblies to "No"... made no difference.
- The only InstallShield scripts in the MSI run when the MSI installs via the install condition "(Not Installed) OR REINSTALL", so I don't think they are the issue.
Any tips on what I can try to get this service to uninstall cleanly?
Attached is the unistall log, should one of you be so generous as to help figure-out if there's something obvious that I'm missing 😮
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 17, 2013
03:06 PM
Figured it out (after only about 2 million hours of trying.)
The files that weren't uninstalling were all listed in the server's registry as "SharedDLLs". I had found many references to shared DLLs on this forum, but none of the posts lead me to the right spot in the registry. This is the correct registry path to look... at least for my app:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SharedDLLs]
I deleted all the registry keys related to my MSI and made sure that none of the components were marked as "Shared" in InstallShield, and now the MSI uninstalls all files.
Yeah me. 🙂
The files that weren't uninstalling were all listed in the server's registry as "SharedDLLs". I had found many references to shared DLLs on this forum, but none of the posts lead me to the right spot in the registry. This is the correct registry path to look... at least for my app:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SharedDLLs]
I deleted all the registry keys related to my MSI and made sure that none of the components were marked as "Shared" in InstallShield, and now the MSI uninstalls all files.
Yeah me. 🙂
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2013
08:38 AM
Was this issue coming in only one machine ?
when you install the shared component it will have the shared count created in the registry location that you were mentioning. when you uninstall the msi will take care of removing the count and the registry if the component is not used by other products
when you install the shared component it will have the shared count created in the registry location that you were mentioning. when you uninstall the msi will take care of removing the count and the registry if the component is not used by other products
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 05, 2014
02:33 PM
OneDayBehind wrote:
Figured it out (after only about 2 million hours of trying.)
The files that weren't uninstalling were all listed in the server's registry as "SharedDLLs". I had found many references to shared DLLs on this forum, but none of the posts lead me to the right spot in the registry. This is the correct registry path to look... at least for my app:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SharedDLLs]
I deleted all the registry keys related to my MSI and made sure that none of the components were marked as "Shared" in InstallShield, and now the MSI uninstalls all files.
Yeah me. 🙂
I've been trying to figure this out for a couple of days. Who would have thought a service would go to SharedDLLs as default. I'm surprised there's not more places within a search to mention this as a solution. Thanks again!