启动install4j安装的服务时报错1053

error 1053 when starting a service installed by install4j

我正在尝试将 JBoss AS 7 捆绑到我的 exe 中,并将其作为服务安装,因此在 "Install a Service" 操作中,我使用 [Other Service Executable],并提供它是 standalone.bat 的完整路径,以便它可以执行它。

该服务已正确安装,但是当我尝试启动它时,出现错误 1053

Error 1053: The service did not respond to the start or control request in a timely fashion

我可能错过了什么?

"standalone.bat" 不是服务可执行文件,因此不能由服务管理器启动。您可以为 JBoss 提供第 3 方服务可执行文件,或者您可以在 install4j 中设置一个生成的服务启动器来模拟在 standalone.bat.

中进行的调用