Hi there,
I have written a C# service that self installs by running the
..exe with a parameter. A log is produced when it does this. At a customer
site where they have had to re-install, they are getting an error. See the
log file below. It fails because the name already exists, but then fails to
uninstall because it does not exist! Eh??? There is no service with that
name in the Services applet.
Running a transacted installation.
Beginning the Install phase of the installation.
Installing service ConnectorService...
Creating EventLog source ConnectorService in log Application...
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: The name is already in use as either a
service name or a service display name
The Rollback phase of the installation is beginning.
Restoring event log to previous state for source ConnectorService.
The Rollback phase completed successfully.
The transacted install has completed.
The uninstall is beginning.
Removing EventLog source ConnectorService.
Service ConnectorService 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 uninstall has completed.