set INSTALL_UTIL_HOME=C:\Windows\Microsoft.NET\Framework\v2.0.50727
set PATH=%PATH%;%INSTALL_UTIL_HOME%
installutil /SAASystenKey=eeeeeeee /ServiceInstallPath=D:\SearchEngine\eeeeeeee\IndexService /IndexPath=D:\SearchEngineIndex\eeeeeeee D:\SearchEngine\eeeeeeee\IndexService\IndexService.exe
net start SearchEngine.IndexService.eeeeeeee
pause
通过。NET FRAMWORK的installutil安装组件安装一个WINDOWS 服务。
set PATH=%PATH%;%INSTALL_UTIL_HOME% 将命令行的运行目录指向变量INSTALL_UTIL_HOME设置的目录
/SAASystenKey 向WINDOWS服务的安装程序输入一个参数
pause 命令行暂停