Problem uninstalling win service
-
Hello, i am assigned to work on a windows service developed by another programmer. I am having problems attaching to the windows service. the service was communicating with a remote server and for testing purposes, i want it to work on my local host.Whenever i get disconnected from LAN, it won't run probably because it can't make a connection to server, but i want to insert a breakpoint right at the beginning so whenever i find a connection to remote server, i change it. this didn't work, so i thought of uninstalling the current service and installing a new instance of it with local host only, But i am having the following probs.///i don't know the exact path. solution (folder)has been pasted to another location c:\Program Files\Microsoft Visual Studio 9.0\VC>installutil /u marketordermanage r.exe Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///c:\Pro gram Files\Microsoft Visual Studio 9.0\VC\marketordermanager.exe' or one of its dependencies. The system cannot find the file specified.. i don't have it in controlpanel\add or remove programs... i even tried the sc command, it didnt work. how do i delete this service. thanx inadvance
-
Hello, i am assigned to work on a windows service developed by another programmer. I am having problems attaching to the windows service. the service was communicating with a remote server and for testing purposes, i want it to work on my local host.Whenever i get disconnected from LAN, it won't run probably because it can't make a connection to server, but i want to insert a breakpoint right at the beginning so whenever i find a connection to remote server, i change it. this didn't work, so i thought of uninstalling the current service and installing a new instance of it with local host only, But i am having the following probs.///i don't know the exact path. solution (folder)has been pasted to another location c:\Program Files\Microsoft Visual Studio 9.0\VC>installutil /u marketordermanage r.exe Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///c:\Pro gram Files\Microsoft Visual Studio 9.0\VC\marketordermanager.exe' or one of its dependencies. The system cannot find the file specified.. i don't have it in controlpanel\add or remove programs... i even tried the sc command, it didnt work. how do i delete this service. thanx inadvance
-
Hello, i am assigned to work on a windows service developed by another programmer. I am having problems attaching to the windows service. the service was communicating with a remote server and for testing purposes, i want it to work on my local host.Whenever i get disconnected from LAN, it won't run probably because it can't make a connection to server, but i want to insert a breakpoint right at the beginning so whenever i find a connection to remote server, i change it. this didn't work, so i thought of uninstalling the current service and installing a new instance of it with local host only, But i am having the following probs.///i don't know the exact path. solution (folder)has been pasted to another location c:\Program Files\Microsoft Visual Studio 9.0\VC>installutil /u marketordermanage r.exe Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///c:\Pro gram Files\Microsoft Visual Studio 9.0\VC\marketordermanager.exe' or one of its dependencies. The system cannot find the file specified.. i don't have it in controlpanel\add or remove programs... i even tried the sc command, it didnt work. how do i delete this service. thanx inadvance
Hi the problem is nothing.... your marketordermanager.exe is not in the same path c:\Program Files\Microsoft Visual Studio 9.0\VC> use this batch script
ECHO OFF
set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727
set PATH=%PATH%;%DOTNETFX2%
echo Uninstalling WindowsService...
echo ---------------------------------------------------
InstallUtil /u "%~dp0/marketordermanager.exe"echo ---------------------------------------------------
echo Done
pausejust copy the code in a notepad and save it as a batch file. Then run the batch file from the same path where you have the exe... It will solve your problem....
Have a Happy Coding.....
modified on Tuesday, May 5, 2009 3:25 AM