There are usually two tools for installing Windows service.
The installutil.exe tool in the 1.frameworkcatalog.
2. Visual Studio command line tool
Here I want to talk about how to useSystem is a 64-bit system. The framework contains 1.0, 2.0, 3.0, 3.5, 4.0, and their 64-bit versions..
One worker uses installutil.exe
X86 2010 Applications created using Visual Studio 4.0ProgramWhen using the volume toolC: \ windows \ Microsoft. NET \ framework \ v4.0.30319Under this directory.
Use this tool to install and uninstall programs
1. install. Under the command line, go to the C: \ WINDOWS \ Microsoft. NET \ framework \ v4.0.30319 directory, installutil.exe application path, which has a servicetest.exe program than my fdrive. The command is:Installutil.exe "F: \ servicetest.exe"
2.Uninstall. You only need to add/u before the application name for download. For example:Installutil.exe/u "F: \ servicetest.exe"
2. Use Visual Studio command line tool
The Visual Studio 2010 command line tool is relatively simple. In a 64-bit system, Visual Studio 2010 provides two toolsVisual Studio command prompt (2010)AndVisual Studio x64 win64 command prompt (2010)
The first is used to install and uninstall the x86 program, and the second is used to install and uninstall the x64 program.
However, the commands are slightly different. For example, open Visual Studio command prompt (2010) on F: \ servicetest.exe ).
1. install. installutil "F: \ servicetest.exe"
2. Uninstall. installutil "F: \ servicetest.exe"/u