• 0

[InstallUtil] Problem with uninstalling a service


Question

Okay, I have a major problem and I'd be extremely grateful if somebody could help me please :)

I deleted the executable file of my program and replaced it with an updated file, forgetting to uninstall my service. When I remembered, in the panic, I tried to uninstall the service with the newer executable. This didn't work and so I restored the old file from the Recycle Bin and tried again; this also did not work. With the file - and I'm sure this is the file I first deleted - I keep getting the following error when trying to uninstall using InstallUtil: "An exception occurred while uninstalling. This exception will be ignored and the uninstall will continue. However, the application might not be fully uninstalled after the uninstall is complete."

The service is still there and it appears to be able to start and work fine, but it just won't uninstall.

Does anybody else know what I could possibly try please? I've searched around and I can't seem to find any solutions which work. I imagine there might be things I can do in the registry? Either way, I'd like to get this problem corrected with no more problems caused because it is on a server at work.

Any help will be very much appreciated. Thank you in advance :happy:

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Thank you very much :) That does look very handy, however, I did notice this:

WARNING:

Once you delete a service, it is gone from Vista. I would strongly recommend that you create a restore point before doing this just in case you need to restore the deleted service. The only other way to restore the deleted service is to reinstall Vista, or the program that added the service.

Do you happen to know if I'd be able to reinstall this service again from my updated file? It's vital that I am able to install the same service again (exactly the same name and things).

Link to comment
Share on other sites

  • 0

If its a service created by the app (not a default OS service) you un-installed, it should re-create itself if you re-install the same application. I guess you could just disable the service if you didn't want to chance it. Start -> Run -> services.msc -> right-click on the service you want to disable and pick disable from the drop down box.

Since I don't know anything about the app you're working with, there are no guarantees. Create a Restore point before making changes just in case :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.