Re: [WiX-users] Apache Tomcat and WiX?

2006-10-19 Thread Bob Arnson
Eric Fesh wrote:
> Tomcat uses the Jakarta Commons procrun daemon to interface with the Windows 
> services mechanism. Unfortunately, it looks like 
> procrun does all of the registry work on its own when you use the supported 
> installation instructions. This means (and my 
> earlier installer does this) that to install Tomcat as a custom action I have 
> to use a Custom Action that runs the procrun 
> daemon in install mode to get it all configured and happy, and another to 
> remove it on uninstall.
>   

Ideally, the Jakarta folks would document how to "translate" what 
procrun does into matching registry values. From the doc, it looks like 
it just asks you to specify via a command line the same data (plus a bit 
more) in the MSI ServiceInstall and ServiceControl tables. Two options 
come to mind:

- Read the code to see what it writes (e.g., for the JVM parameters).
- Export the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 
registry key, run procrun by hand, re-export, and diff.


> then, but I was fairly sure the answer would be "Why are you using a Custom 
> Action to install and start a service, you twit?" So 
>   

We'd never say that. Out loud, anyway. Seriously, I, for one, 
appreciate anyone making extra effort to do setup in a declarative manner.

-- 
sig://boB
http://bobs.org



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Apache Tomcat and WiX?

2006-10-19 Thread Eric Fesh
Anyone had any luck using WiX to install Apache Tomcat as a service? Just 
wondering because I'm having a fun time banging my 
head against this.

Here's some background:

Tomcat uses the Jakarta Commons procrun daemon to interface with the Windows 
services mechanism. Unfortunately, it looks like 
procrun does all of the registry work on its own when you use the supported 
installation instructions. This means (and my 
earlier installer does this) that to install Tomcat as a custom action I have 
to use a Custom Action that runs the procrun 
daemon in install mode to get it all configured and happy, and another to 
remove it on uninstall.

That was ok until I came back for a second pass through my code to tighten 
things up. For some reason, my Custom Action to stop 
Tomcat before using a Custom Action to uninstall it wasn't getting sequenced 
properly. I was tempted to ask you all about it 
then, but I was fairly sure the answer would be "Why are you using a Custom 
Action to install and start a service, you twit?" So 
I've been trying to use the ServiceInstall element to install procrun as a 
service. It gets installed ok, but there's some 
custom configuration that it does over and above what the Windows Service 
facilities provide. "Well and good", I thought, "I can 
get away with firing off a custom action for that." Except that procrun is 
doing some magic in its install step that I haven't 
got a handle on yet that allows the configuration CA to succeed.

Has anyone on the list tried to do this before, and if so, do you have any tips 
I could use? I'll probably have to brute-force 
it at some point unless some miracle happens and I figure it out on my own...

-- 
--

Eric Fesh
Customer Support Engineer/Software Test Engineer
Verari Systems Software, Inc.
110 12th Street North, Suite D103
Birmingham, AL 35203
Phone +1-205-397-3141 ext. 3149
Fax +1-205-397-3142
[EMAIL PROTECTED]
http://www.verarisoft.com/

The information contained in this communication may be confidential and is
intended only for the use of the recipient(s) named above.  If the reader of
this communication is not the intended recipient(s), you are hereby notified
that any dissemination, distribution, or copying of this communication, or
any of its contents, is strictly prohibited.  If you are not a named
recipient or received this communication by mistake, please notify the sender
and delete the communication and all copies of it.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users