基於.net 4.0
安裝
@ECHO OFF echo 准備安裝服務 pause REM The following directory is for .NET 4.0 set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319 set PATH=%PATH%;%DOTNETFX2% echo 安裝服務... echo --------------------------------------------------- InstallUtil /i service.exe echo --------------------------------------------------- echo 安裝服務成功! pause ==========================================卸載
@ECHO OFF echo 准備卸載服務 pause REM The following directory is for .NET 4.0 set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319 set PATH=%PATH%;%DOTNETFX2% echo 卸載服務... 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 安裝卸載成功! pause ==========================================