How is the C#windows service program installed? Let's get Started:
C#windows Service Program installation 1,
In the service program is the design form, right-click "Add Installer" to add the service installer. Otherwise, the installation will appear as follows
Error:
Installing assembly "C:\Program\xx.exe".
The parameters that are affected are:
- LogtoConsole =
- AssemblyPath = C:\Program\xx\xx.exe
- LogFile = C:\Program\xx. InstallLog
There is no public installer for Runinstallerattribute.yes. may be found in the C:\Program\xx.exe assembly
The "Yes" attribute.
Submitting assembly "C:\Program\xx.exe".
The parameters that are affected are:
- LogtoConsole =
- AssemblyPath = C:\Program\xx.exe
- LogFile = C:\Program\xx. InstallLog
There is no public installer for Runinstallerattribute.yes. may be found in the C:\Program\xx.exe assembly
The "Yes" attribute.
C#windows Service Program installation 2,
Set the Serviceprocessinstaller1->accout property to: LocalSystem (default is User).
Otherwise, the following error will occur:
Windows Services Installation Error: System.ComponentModel.Win32Exception: The account name is invalid or does not exist, or the password pair
To the specified account
C#windows Service Program installation 3,
Installation:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe Filepath\xx.exe
Unloading:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe-u Filepath\xx.exe
The specific implementation of C#windows service program installation is introduced to you here, and I hope to help you understand and learn the C#windows service program installation.
Source: http://www.cnblogs.com/aji88/archive/2012/04/17/2453427.html
C#windows Service Program Installation FAQ Solution