There are following ways to remove window service :
1. From visual Studio command Prompt:
Just go to Visual studio command prompt from Start Menu.
Then in visual studio command prompt type as below:
>installutil.exe /u "Here your service directory with it its exe" press enter.
Example: >installutil.exe /u "c:/programfiles/myservice/service.exe"
2. If you have installed a window service from a installer then you can remove it from add/remove programs in control panel.
3. This is a case which i face so want to share it with you.
1. From visual Studio command Prompt:
Just go to Visual studio command prompt from Start Menu.
Then in visual studio command prompt type as below:
>installutil.exe /u "Here your service directory with it its exe" press enter.
Example: >installutil.exe /u "c:/programfiles/myservice/service.exe"
2. If you have installed a window service from a installer then you can remove it from add/remove programs in control panel.
3. This is a case which i face so want to share it with you.
- Installed a Windows service from installer but i uninstalled it from command prompt. But its files still exist there in the directory where it was installed.
- Then the real problem caused.that service got removed from Services but still available in add/remove programs
- Then i want not able to install new version of service coz it say this service already exist and neither i can remove it from add/remove programs.
- To resolve this just install the service from the directory files using command prompt with install util command then it will be installed and then you can remove it from add/remove section.
No comments:
Post a Comment