Shawn,

You were right. When I changed to check for registry under Wow6432Node, then 
program could check prerequisites correctly.

Thanks,
Shailendra


-----Original Message-----
From: Shawn Heisey <apa...@elyograg.org> 
Sent: Tuesday, June 19, 2018 11:53 PM
To: users@tomcat.apache.org
Subject: Re: Apache Tomcat 9.0.8 install check

***CAUTION: This email originated from outside of the organization. Do not open 
attachments or click links unless you recognize sender and know content is 
safe.*** Forward suspicious email to suspici...@convergys.com 
___________________________________________________________________

On 6/18/2018 6:15 AM, Shailendra Kumar Verma wrote:
> I am trying to find out through registry checking whether or not Apache 
> Tomcat 9.0.8 is already installed or not. If the below registry is not there, 
> then my program installs Apache Tomcat 9.0.8 installer otherwise it moves on 
> to other installation and completes. It's kind of prerequisite check program.
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software 
> Foundation\Tomcat\9.0\Tomcat9
>
> However, everytime program just proceeds to install Tomcat despite it is 
> already installed? Am I checking wrong registry?

Do you think it could be possible that the tomcat installer and your checking 
program are different architectures?  A 32-bit Windows program will see a 
different registry location for HKEY_LOCAL_MACHINE\SOFTWARE than a 64-bit 
program will.  A 64-bit program can see the 32-bit location as 
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node.

https://en.wikipedia.org/wiki/WoW64
https://en.wikipedia.org/wiki/Windows_on_Windows

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to