Skip to content

Windows service uninstall

Haseeb Saeed

Asked May 4, 2009, 11:56 AM EDT2 answers
Share
LinkedInX

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

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    c:\Program Files\Microsoft Visual Studio 9.0\VC>installutil /u marketordermanage
    r.exe
     are you sure that
    marketordermanage
    r.exe is the correct filename have you used the search option within your hard disk?
    0
  • 0
    Hi thanx for ur reply, i really appreciate it. actually i tried sc command (dos command) and it returned some message that marketordermanager.exe is not an installed service. I don't know wat it means but i gave up on it and installed a second instance named program.exe, i tried instal/uninstall and it worked. Now i want to debug this service but as i know while code is running under debug u cann't make modifications to it, u have to stop ,edit and then run. Is this the same with windows services because if i insert debugger.break, it means i have to uninstall and then reinstall. Again if there is a call to a function that i don't need and i disable it, again i would have to uninstall and reinstall... Isn't there an easy way out.
    Thanx for ur reply,
    Please help with this second question
    0