For an article about installing and uninstalling Windows Services using InstallUtil in Visual Studio 2012, the http://msdn.microsoft.com/en-us/library/sd8zc8ha.aspx in MSDN is described in:
- Click on the Start button in the lower left corner and start with the following order -Visual Studio Tools-developer Command Prompt for VS2012", Hit Open a Command Window
- Runas/user:Administrator cmd
- Prompt to enter the password of the user name, as required (input password without any display)
- After the password is entered correctly, a new CMD window is opened, and the title is cmd (run as MyName)
- Input command: Installutil.exe Myservice.exe If the installation is successful, the command prompt is displayed directly, there is no information, and if the installation is unsuccessful, a message appears
- Admin-Service, can find service "MyService" click Start
2, InstallUtil.exe can be run alone,
To uninstall the Windows service, use the/u parameter. The command is:
Installutil/u Myservice.exe
Installing and uninstalling Windows services using InstallUtil