64 bit registry

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

64 bit registry

Post by kpassaur » Sat Mar 17, 2018 11:51 am

I'm sort of confused as this line works and it is a 32 bit application

RegistryReadKey>HKEY_LOCAL_MACHINE,SOFTWARE\eDocFile\Doc Viewer,AppFolder,ProgramFolder

These lines below have worked for years but no longer do- It will read the first line if set Let>REG_64=1

The question is what is needed to properly determine the version of Java on any machine? Also should I set REG_64=1 when reading the line above.

RegistryReadKey>HKEY_LOCAL_MACHINE,SOFTWARE\JavaSoft\Java Runtime Environment,CurrentVersion,version
If>%version%>1.6
Let>javainstalled=yes
Goto>Havever
Else
RegistryReadKey>HKEY_LOCAL_MACHINE,SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment,CurrentVersion,version
If>%version%>1.6
Let>javainstalled=yes
Goto>Havever
Endif
Let>javainstalled=no
Endif

thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: 64 bit registry

Post by Marcus Tettmar » Sat Mar 17, 2018 8:25 pm

Yes, if you want to stop it redirecting to the 32 bit node, set REG_64 to 1.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts