注意:安装中调用了卸载的bat,安装之前先卸载...PS:可以删除 安装代码: @echo off set filename=LXServer.exe set servicename=Service1 set Frameworkdc=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319 if exist "%Frameworkdc%" goto netOld :DispError echo 您的机器上没有安装 .net Framework 4.…
using Microsoft.Win32; using System; using System.Collections; using System.Collections.Generic; using System.Configuration.Install; using System.Linq; using System.Reflection; using System.ServiceProcess; using System.Text; namespace TextWindowsServ…