CAQuietExec action should be immediate which is correct but the action using it
must be deferred.
Like this:
<Property Id="QtExecCmdLine" Value=""C:\tomcat\bin\service.bat install
Tomcat7""/>
<CustomAction Id="TomcatInstall_Cmd" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="immediate" Return="check" />
<CustomAction Id="TomcatInstall"
ExeCommand=""C:\tomcat\bin\service.bat install Tomcat7""
Directory="TOMCAT_BIN_DIR" Execute="deferred" Return="asyncNoWait"/>
<InstallExecuteSequence>
<Custom Action=" TomcatInstall_Cmd " Before=" TomcatInstall"></Custom>
<Custom Action="TomcatInstall" After="InstallFiles"></Custom>
</InstallExecuteSequence>
-----Original Message-----
From: Eric Chaland [mailto:[email protected]]
Sent: Thursday, April 24, 2014 2:58 PM
To: 'General discussion about the WiX toolset.'
Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
I'm not really sure how to install it - Maybe I can't use ServiceInstall as the
"Arguments" based on the doc is supposed to be used to start a service and not
install a service as I'm trying to do.
Next, I tried using "service.bat install Tomcat7" to install Tomcat. It works
fine in a command line but when I use the following CustomAction nothing
happens. Am I using it correctly?
<Property Id="QtExecCmdLine" Value=""C:\tomcat\bin\service.bat install
Tomcat7""/>
<CustomAction Id="TomcatInstall" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="immediate" Return="check" />
<CustomAction Id="TomcatInstall"
ExeCommand=""C:\tomcat\bin\service.bat install Tomcat7""
Directory="TOMCAT_BIN_DIR" Execute="immediate" Return="asyncNoWait"/>
<InstallExecuteSequence>
<Custom Action="TomcatInstall" After="InstallFiles"></Custom>
</InstallExecuteSequence>
Thank you
-----Original Message-----
From: Phil Wilson [mailto:[email protected]]
Sent: April-24-14 12:45 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample
Do you know how you are supposed to install Tomcat as a service? If that
-install option is what actually installs Tomcat as an NT service, then you
shouldn't be using ServiceInstall because that installs it as a service too.
---------------
Phil Wilson
On Thu, Apr 24, 2014 at 9:06 AM, Pavan Konduru <[email protected]>
wrote:
> Put the arguments under ", something like this:
>
>
> Arguments=""//IS//Tomcat7 -DisplayName 'Apache Tomcat7'
> -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm
> --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap
> --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap
> --StopParams=stop""/>
>
> Also paste the log from where the service is being created, it will help!
>
> --Pavan
>
> -----Original Message-----
> From: Eric Chaland [mailto:[email protected]]
> Sent: Thursday, April 24, 2014 8:25 AM
> To: [email protected]
> Subject: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl
> sample
>
> Hello,
>
> I'm starting to use Wix to create an installer for our application. I need to
> install Tomcat 7 and deploy some wars in the background. I'm having
> difficulties starting the Tomcat service. I couldn't find any sample online.
>
> I hope someone can help me out as I am currently stuck.
>
> This is that I use to create and start the Tomcat 7 service. When I run the
> service gets installed but it get stuck on "Starting Services". Is there
> anything wrong in the code below. I used the start command from the Apache
> site.
>
> Thank you for your help.
>
>
>
> <Fragment>
>
> <Component Id="CPMTomcatService" Guid="MyGUI"
> Directory="TOMCAT_BIN_DIR">
>
> <File Id="TomcatEXE" KeyPath="yes"
> Source="$(var.tomcatDirectory)\bin\tomcat7.exe" />
>
> <ServiceInstall Id="TomcatServiceService" Name="Tomcat7"
> DisplayName="Apache Tomcat7" Start="auto" ErrorControl="normal"
> Type="ownProcess" Vital="yes"
>
> Arguments="//IS//Tomcat7 -DisplayName 'Apache Tomcat7'
> -Install 'c:\tomcat\bin\tomcat7.exe' --Jvm=auto --StartMode=jvm
> --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap
> --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap
> --StopParams=stop"/>
>
> <ServiceControl Id="TomcatServiceCTRL" Name="Tomcat7" Start="install"
> Stop="both" Remove="uninstall" Wait="yes" />
>
> </Component>
>
> </Fragment>
>
>
>
> Zac
>
> ----------------------------------------------------------------------
> -------- Start Your Social Network Today - Download eXo Platform Build
> your Enterprise Intranet with eXo Platform Software Java Based Open
> Source Intranet - Social, Extensible, Cloud Ready Get Started Now And
> Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ----------------------------------------------------------------------
> -------- Start Your Social Network Today - Download eXo Platform Build
> your Enterprise Intranet with eXo Platform Software Java Based Open
> Source Intranet - Social, Extensible, Cloud Ready Get Started Now And
> Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform Build your Enterprise
Intranet with eXo Platform Software Java Based Open Source Intranet - Social,
Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A
Collaboration Platform http://p.sf.net/sfu/ExoPlatform
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users