Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installutil won't uninstall: "The specified service does not exist as an installed service"

I have been trying to install a Windows service using installutil: installutil /u GSIS.FileMoverService.exe.

The output I get is :

Uninstalling assembly 'C:\FMS\GSIS.FileMoverService.exe'. Affected parameters are:

logtoconsole = logfile = C:\FMS\GSIS.FileMoverService.InstallLog

assemblypath = C:\FMS\GSIS.FileMoverService.exe Removing EventLog source File Mover Service.

Warning: The source File Mover Service is not registered on the local machine. Service File Mover Service is being removed from the system...

An exception occurred during the uninstallation of the System.ServiceProcess.ServiceInstaller installer. System.ComponentModel.Win32Exception: The specified service does not exist as an installed service 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 has been stopped when I try to uninstall. It's definitely registered as a services. I've rebooted and it's still visible in the Services applet (services.msc). It also starts and stops successfully from the Services applet, so it doesn't look like it's been unsuccessfully (or only partially) installed.

I am calling installutil from the VS2010 Command Prompt (having clicked Run As Administrator).

Any ideas?

like image 358
Badgerspot Avatar asked Nov 28 '12 15:11

Badgerspot


People also ask

How do I fix error 1001 The specified service already exists?

msi"), and you may get error "Error 1001: The specified service already exists" during the re-installation. This is indicates the Plugin Updater Service must be manually removed. To remove the service, do the following: In an elevated command prompt, type: SC DELETE PluginUpdaterService.

What is the use of Installutil EXE?

Installutil.exe performs installation in a transactional manner; that is, if one of the assemblies fails to install, it rolls back the installations of all other assemblies.


1 Answers

In the end I used sc delete GSIS.FileMoverService to remove the service. This worked.

like image 160
Badgerspot Avatar answered Oct 20 '22 07:10

Badgerspot