1、首先在自己的VS安装目录下找到对应的.NETFrameWork的版本的文件夹:这里为C:\Windows\Microsoft.NET\Framework\v2.0.50727
2、在目录下找到InstallUtil.exe文件;
3、在开始菜单Microsoft Visual Studio 2005下找到“Visual Studio Tools”,接着找到“Visual Studio 2005 命令提示”工具,单击打开,出现类dos窗口
4、用cd命令定位到 InstallUtil 所在目录:C:\Windows\Microsoft.NET\Framework\v2.0.50727
5. 执行 FetchShortMessage.exe 服务的安装:C:\Windows\Microsoft.NET\Framework\v2.0.50727 InstallUtil D:\Service\FetchShortMessage.exe
若卸载服务则执行如下:
6. 执行 FetchShortMessage.exe 服务的卸载:C:\Windows\Microsoft.NET\Framework\v2.0.50727 InstallUtil /u D:\Service\FetchShortMessage.exe