Bug 38858 - "failed to install tomcat5 service" on Tomcat installation
Summary: "failed to install tomcat5 service" on Tomcat installation
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Native:Packaging (show other bugs)
Version: 5.5.15
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Keywords: ErrorMessage
Depends on:
Reported: 2006-03-05 11:16 UTC by Raoul
Modified: 2007-01-09 14:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Raoul 2006-03-05 11:16:37 UTC
* What?

On certain machines, The Tomcat installation fails on Windows XP,
producing the following error message : "failed to install tomcat5
service, Check your settings and permissions Ignore and continue
anyway (not recommended)]", even if you are actually logged under
an admin account.

* When?

Every time you try to install in the targeted env.

* Causes

The %TEMP% and %TMP% env. variables are not properly
read from the environment by the installation program.
By default, on Windows XP, it will be set to a 'temp'
sub-dir under your home directory.

* Workaround

To install the product successfully, you will need
to change in "My computer"->"Environment variables"
the %TEMP% env. variable to make it point to some
other directory, like "c:\temp".
Comment 1 Yoav Shapira 2006-04-13 19:31:15 UTC
If you have a suggested change to either the installation program documentation
or the installation program code itself, we'd love to see it -- any help would
be appreciated.
Comment 2 Mark Thomas 2006-10-01 19:06:35 UTC
This works for me with the standard settings for TEMP and TMP without having to
modify either of them to point to C:\temp.

It may be an issue with the NSIS installer.
http://sourceforge.net/project/showfiles.php?group_id=22049&package_id=15374 has
a list of the release notes and there are several issues related to the TEMP
directory. It could also be related to the environments on the machines that has
the problem.

I have checked the Tomcat NSIS script and it does not directly use either the
TEMP or TMP environment variables.

All evidence points to this being something other than a Tomcat issue.
Comment 3 fallinnet 2007-01-09 14:05:44 UTC
I had "failed to install tomcat5 service..." error also.  

My issue was that I had a previous version of 5.5 installed.  Uninstalling the
previous version allowed this install to work.