在cmd 命令里面
服务安装
%systemroot%/microsoft.net/framework/v2.0.50727/installUtil.exe E:/Program/MyCode/DoTest2008/Solution1/SendMail/bin/Debug/SendMail.exe
服务卸载
%systemroot%/microsoft.net/framework/v2.0.50727/installUtil.exe E:/Program/MyCode/DoTest2008/Solution1/SendMail/bin/Debug/SendMail.exe