InstallUtil.exe 开启和删除WINDOWS服务

假设为vs2008
开始-》所有程序-》Miscrosoft Visual Studio 2008-》Visual studio tools-》visual studio2008命令行工具。
然后在弹出的dos窗口中输入:
InstallUtil.exe 服务名
例如:
InstallUtil.exe G:\project\vs2008\WindowsService2\WindowsService2\bin\Debug\yourwindowsservice.exe

如果要卸载服务
InstallUtil.exe \u 服务名

posted @ 2010-01-23 21:27  dodo-yufan  阅读(3710)  评论(0编辑  收藏  举报