.net service installation uninstall command line batcmd

  

based on .net 4.0

installation

@ECHO OFFecho ready to install service pauseREM The following directory is for .NET 4.0set DOTNETFX2=%SystemRoot%\\ Microsoft.NET\\Framework\\v4.0.30319set PATH=%PATH%;%DOTNETFX2%echo Installation Service...echo ------------------------ ---------------------------InstallUtil /i service.exeecho ----------------- ----------------------------------echo Installation service is successful! Pause================================================= Uninstall 
@ECHO OFFecho Prepare to uninstall the service pauseREM The following directory is for .NET 4.0set DOTNETFX2=%SystemRoot%\\Microsoft.NET\\Framework\\v4.0.30319set PATH=%PATH%;%DOTNETFX2%echo Uninstall service...echo ----- ----------------------------------------------InstallUtil /u < ;span style="font-family: Arial, Helvetica, sans-serif;">service</span><span style="font-family: Arial, Helvetica, sans-serif;"> .exe</span>echo ------------------------------------------- --------echo Installation and uninstallation is successful! Pause===================================================
Copyright © Windows knowledge All Rights Reserved