I was hoping I could avoid that. Currently the thinking is to unpack the tomcat distribution, re-package inside a custom installer, and call bin\tomcat7.exe as per the windows service document.
And indeed this works - to a point. The installer logs says: C:\Program Files\Our Local Services\tomcat\bin\tomcat7.exe //IS//Tomcat7 --DisplayName="Apache Tomcat 7" --JavaHome="C:\Program Files\Our Local Services\tomcat\..\java-7-32bit\" --Install="C:\Program Files\Our Local Services\tomcat\bin\tomcat7.exe" --Jvm="C:\Program Files\Our Local Services\tomcat\..\java-7-32bit\bin\client\jvm.dll" --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop While this installs a service, as soon as I attempt to start it I get a failure. Nothing is logged by Tomcat, but in the event service I get the following recorded: The Apache Tomcat 7 service terminated with service-specific error Incorrect function.. If I take the full command as executed by the installer, there is no feedback at the command prompt and the service is shown as installed. I am therefore lost as to what I'm looking at as a problem. Any ideas where to go? Thanks, James On 8 April 2013 18:38, Konstantin Kolinko <knst.koli...@gmail.com> wrote: > 2013/4/8 James Green <james.mk.gr...@gmail.com>: > > I have a need to distribute an application that works inside Tomcat to a > > number of customers. > > > > I can build an Inno Setup script to most of the work, but rather than > > re-inventing what looks like quite a complex wheel, has anyone build an > > installer script for Tomcat already that they could share? > > > > In our case we're bundling our own JRE which needs setting when > installing > > the service... > > > > > Tomcat installer is built using NSIS (Nullsoft Scriptable Install System) > . > The script is res/tomcat.nsi > > BTW, > if you are using a custom value for HTTP port, do not forget to also > change the shutdown port number (8005). I have seen a number of > software that forgets to change that. You can set it to "-1" when > external shutdown is not needed, e.g. when you run as a service. > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >