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: Can't have my windows service uninstalled!
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
‎Dec 19, 2011
11:58 AM
Can't have my windows service uninstalled!
This is InstallScript MSI project. I've got .NET Window Service to install and start on installation and stop and uninstall on uninstallation. I can easily do first part for installation but on uninstallation my service remains in service list as well as service file on a disk.
I tried to use InstallUtils but it works for admin user, but my requirement is the install/uninstall should be done by regular users.
Is there any solution?:confused:
I tried to use InstallUtils but it works for admin user, but my requirement is the install/uninstall should be done by regular users.
Is there any solution?:confused:
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 20, 2011
11:43 AM
This is how I have mine and it installs/uninstalls just the way it is supposed to. Not sure why it won't work in your case. In my case, the installShield component for the service has only one file, the exe for the service, all other files (such as config / dependent assemblies etc) are in a separate component, not sure if that matters.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 08, 2012
10:03 AM
I'm having the same exact problem. I also have my events set up the same way you do as well. The only thing my installer does in install the Windows Service and it should uninstall when the user wants.
What's happening during the uninstall is that it will remove all asscociated .dlls except the service host .exe. Windows will say that the service has been uninstalled but when I go to Admin tools->Services it shows my service is still there.
Did you ever get to the solution for your problem? if so can you enlighten me? Can anyone else?
Thanks
What's happening during the uninstall is that it will remove all asscociated .dlls except the service host .exe. Windows will say that the service has been uninstalled but when I go to Admin tools->Services it shows my service is still there.
Did you ever get to the solution for your problem? if so can you enlighten me? Can anyone else?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 08, 2012
10:15 AM
If windows is saying service has been uninstalled, and the service pane is still showing the service still running, can you close it and relaunch it to confirm that it is indeed there? I ran into an issue where it would keep showing up in the service pane, I realized later that service pane doesn't get refreshed.
Also, make sure you set 'Yes' to stop the service on uninstall as shown in my earlier screenshot.
Also, make sure you set 'Yes' to stop the service on uninstall as shown in my earlier screenshot.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 08, 2012
11:38 AM
I would also suggest that you make sure that all of the components associated with the service are getting uninstalled during the uninstallation by generating a Window Installer verbose log.
(To log it, try using Setup.exe /v"/l*v c:\test.log" at the command line.)
(To log it, try using Setup.exe /v"/l*v c:\test.log" at the command line.)