启动服务时出现问题

发布于 2024-10-10 02:58:13 字数 628 浏览 0 评论 0原文

全部 我在 InstallShield 2011 中使用 InstallScript 我在开始服务时遇到问题。

我使用ServiceAddService将新服务添加到服务列表中。服务已成功添加到列表中。但启动此服务时出现错误“服务未响应控制功能”。 ServiceStartservice 已用于启动服务。

我还尝试使用 LaunchApplication 创建自己的函数来避免出现以下问题: “Windows 自动检查运行的服务是否具有控制功能(如果是,则它是一个服务)。如果没有,它将运行它 10/15 秒,并发现它没有响应,特殊控制服务将终止它...”(我在其中一个论坛中找到了此信息)。但也会收到错误“服务未响应控制功能”。

我还尝试通过输入 net start ServiceName 在 cmd 中启动服务 当我尝试从服务列表启动它时,我得到这个: 错误 1053:服务没有及时响应启动或控制请求

搜索我创建的问题: 在导入到项目 XML 文件中,安装完成后,在 2 个标签中出现了我未修改的属性中已存在行的重复。

哪里可能出错? 你能帮我解决这个问题吗? XML 错误 modyfing 是否会成为此类错误的原因?

谢谢,西格尔

all
I work with InstallScript in InstallShield 2011
I am facing problem while starting service .

I used ServiceAddService to add the new service to the service list.Service was successfully added to the list. but while starting this service gives the error "Service is not responding to the control function". ServiceStartservice has been used to start the service.

I have tried also create my own functon using LaunchApplication to avoid the problem with:
"Windows auto checks whether a SERVICE which is run got a control function (if so it is a service).. if not it will run it for 10/15 seconds and sees that it doesn't responds with the special control services terminate it..."(I found this information in one of forums). But also get the error "Service is not responding to the control function".

I also tried start the service in cmd by typing net start ServiceName
And when I try to start it from services list I get this one: Error 1053: The service did not respond to the start or control request in a timely fashion

Searching for problem I created that: In imported to project XML file , after installation compleated, in 2 tags appears repetitions of already existing line in attributes that I'm not modifing.

where it could go wrong?
can you please help me with this issue?
could the XML wrong modyfing to be a reason for such error?

Thanks, Sigal

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

望喜 2024-10-17 02:58:13

听起来更像是安装程序可能造成的应用程序问题。您是否已调试/分析该服务?是否缺少任何依赖项? DLL、COM 注册、数据/日志目录、权限等。一旦确定了失败的“原因”,您就可以确定修复是在服务代码中还是在安装程序代码中。

Sounds more like an application problem that could be contributed by the installer. Have you debugged / profiled the service? Is it missing any dependencies? DLL's, COM registration, data/log directories, permissions and so on. Once you identify "why" it's failing you can identify if the fix is in the service code or the installer code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文