Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exe wont run as a wix installed service #77

Open
JohnH86 opened this issue Aug 9, 2016 · 1 comment
Open

Exe wont run as a wix installed service #77

JohnH86 opened this issue Aug 9, 2016 · 1 comment

Comments

@JohnH86
Copy link

JohnH86 commented Aug 9, 2016

I've setup winrun4j to run as an exe and leave managing the service to a wix installer. Not sure if this is an issue or something that's not supported. Looks like the exe isnt communicating with the service control manager and times out when i start the service.

My ini (hardcoded paths will be removed soon):

main.class=com.anca.util.secureloader.SecureClassLoader

classpath.1=C:\JavaService\ServerInstallers\CommonLib\SourceFiles\toolroomsecure.jar
classpath.2=C:\JavaService\ServerInstallers\CommonLib\SourceFiles\postgresql-9.3-1100.jdbc41.jar
classpath.3=C:\JavaService\ServerInstallers\CommonLib\SourceFiles\jbcl3.1.jar
classpath.4=C:\JavaService\ServerInstallers\CommonLib\SourceFiles\tcldxf.jar
classpath.5=C:\JavaService\ServerInstallers\CommonLib\SourceFiles\itext.jar
classpath.6=C:\JavaService\ServerInstallers\CommonLib\SourceFiles\org.eclipse.jgit-3.3.1.201403241930-r.jar

vm.location=C:\JavaService\ServerInstallers\CommonLib\java\bin\client\jvm.dll
vmarg.1=-Xmx1000m
vmarg.2=-DToolroomHome=c:\tempForToolServer

arg.1="C:\JavaService\ServerInstallers\ToolServerInstaller\SourceFiles\tms.jar;C:\JavaService\ServerInstallers\CommonLib\SourceFiles\toolroom.jar"
arg.2=com.anca.appl.products.tms.Tms

My wix service:

<Component Id="ToolServiceComponent" Guid="..."  Directory="INSTALLFOLDER">
      <File Id="ToolServiceFile" Name="ToolServer.exe" KeyPath="yes" Source="SourceFiles\ToolServer.exe" />

      <ServiceInstall Id='ToolServiceInstall' DisplayName='...' Name='ToolService'
        ErrorControl='normal' Start='auto' Type='ownProcess' Vital='yes' Description='...' />

      <ServiceControl Id='ToolServiceControl' Name='ToolService'
         Stop='uninstall' Remove='uninstall' />

    </Component>
@bdw429s
Copy link

bdw429s commented Jan 23, 2019

@JohnH86 Did you get this resolved? I'm not suing Wix but I am looking into winrunj as a replacement for launch4j specifically so I can create Windows services out of the binary without using a wrapper tool such as NSSM. Are you saying that the binaries produced by winrunj are not suitable to call directly via a windows service?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants