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