Thanks for the reply, however nothing gets run - I checked in the log file
generated by the msi but I don't see any error or entry for the cmd.exe.
I tried the following but still to no avail - I'm sure I'm not the only one
trying to install Tomcat service part as a background task - 
Thanks to share any sample code or idea on what I might still be doing
wrong....

<Fragment>
    <Property Id="QtExecCmdLine" Value='"[System64Folder]cmd.exe"
"C:\tomcat\bin\service.bat install Tomcat7"'/>
    <CustomAction Id="TomcatInstall_Cmd" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="immediate" Return="check" />
    <CustomAction Id="TomcatInstall" ExeCommand='"[System64Folder]cmd.exe"
"C:\tomcat\bin\service.bat install Tomcat7"' Directory="TOMCAT_BIN"
Execute="deferred" Return="asyncNoWait"/>
   
 <InstallExecuteSequence>
      <Custom Action="TomcatInstall_Cmd" Before="TomcatInstall"></Custom>
      <Custom Action="TomcatInstall" After="InstallFiles"></Custom>
    </InstallExecuteSequence>

  </Fragment>

-----Original Message-----
From: Pavan Konduru [mailto:pavan.kond...@accelrys.com] 
Sent: April-24-14 6:21 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Wix 3.7 - ServiceInstall and ServiceControl sample


CAQuietExec action should be immediate which is correct but the action using
it must be deferred.
Like this:

<Property Id="QtExecCmdLine" Value="&quot;C:\tomcat\bin\service.bat install
Tomcat7&quot;"/>
    <CustomAction Id="TomcatInstall_Cmd" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="immediate" Return="check" />
    <CustomAction Id="TomcatInstall"
ExeCommand="&quot;C:\tomcat\bin\service.bat install Tomcat7&quot;"
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:echal...@yahoo.com]
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="&quot;C:\tomcat\bin\service.bat install
Tomcat7&quot;"/>
    <CustomAction Id="TomcatInstall" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="immediate" Return="check" />
    <CustomAction Id="TomcatInstall"
ExeCommand="&quot;C:\tomcat\bin\service.bat install Tomcat7&quot;"
Directory="TOMCAT_BIN_DIR" Execute="immediate" Return="asyncNoWait"/>
    <InstallExecuteSequence>
      <Custom Action="TomcatInstall" After="InstallFiles"></Custom>
</InstallExecuteSequence>

Thank you

-----Original Message-----
From: Phil Wilson [mailto:phildgwil...@gmail.com]
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 <pavan.kond...@accelrys.com>
wrote:
> Put the arguments under &quot, something like this:
>
>
>     Arguments="&quot;//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&quot;"/>
>
> Also paste the log from where the service is being created, it will help!
>
> --Pavan
>
> -----Original Message-----
> From: Eric Chaland [mailto:echal...@yahoo.com]
> Sent: Thursday, April 24, 2014 8:25 AM
> To: wix-users@lists.sourceforge.net
> 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
> WiX-users@lists.sourceforge.net
> 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
> WiX-users@lists.sourceforge.net
> 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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to