运行InstallUtil.exe(setup.bat文件) [英] Running InstallUtil.exe (setup.bat file)
问题描述
hi
我正在尝试运行WindowsService示例(托管示例之一),但是它不起作用.尽管我在运行服务之前运行setup.bat文件,但它显示一条消息,提示您应使用installutil.exe实用程序安装服务".我在同一台计算机上同时运行客户端和服务,并且我已经关闭了UAC(我正在使用Vista和Visual Studio 2008).知道如何运行它吗?
这是示例说明的链接:
http://msdn.microsoft.com/zh-cn/library/ms751414(VS.85).aspx
您还可以下载如有必要,请从链接中取样.感谢您的帮助...
hi
i'm trying to run the WindowsService sample (one of the hosting samples) but it doesn't work. although i run the setup.bat file before running the service, it shows a message saying "you should install the service using installutil.exe utility". i'm running both client and the service on the same machine and i've turned off the UAC (i'm using vista and visual studio 2008). any idea how should i get it to run?
here's the link to the sample description:
http://msdn.microsoft.com/en-us/library/ms751414(VS.85).aspx
you can also download the sample from the link if necessary. thanks for helping...
推荐答案
您必须按照说的做
installutil<服务可执行文件>
此将.exe作为Windows服务安装(.exe中将包含installutil将在其中寻找的组件)
you have to do what it says
installutil <the service executable>
this installs the .exe as a windows service (the .exe will have components inside it that installutil will be looking for)
这篇关于运行InstallUtil.exe(setup.bat文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!