How to remove window service installed when uninstall it with setup package?

goodmorningsky

Centurion
Joined
Aug 18, 2003
Messages
172
Hi all,
I created window service and Setup project.
It installs window service.
But, when uninstalling, it doesn't remove window service from Service window.

I added primary output to Custom Actions' install folder and Uninstall folder.
But, still doesn't work..

How to enable to remove window service when uninstalling?
thank you..
__________________
 
Uninstall

This may not be related to your problem, but I had issues with the setup project when doing a service...so I used InstallUtil.exe. Its an application supplied by microsoft and you use it through the command prompt.

When I install, I have the exe in the same directory as my service app and use the syntax to install:

"InstallUtil <app name>"

and this syntax to uninstall:

"InstallUtil /u <app name>"

Hope that helps!

http://msdn2.microsoft.com/en-us/library/50614e95.aspx
 
Back
Top