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
64 bit registry
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: 64 bit registry
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?