in x64 Windows is there a way to run a Runtime.exec() process avoiding 'Registry redirection'
Posted
by raticulin
on Stack Overflow
See other posts from Stack Overflow
or by raticulin
Published on 2010-03-10T12:28:13Z
Indexed on
2010/03/14
17:25 UTC
Read the original article
Hit count: 710
Our app runs in jvm 32 bit, even when in windows x64. Now, at some point, I need to access some registry values, for example HKEY_LOCAL_MACHINE/SOFTWARE/mycomp.
I do this by executing
cmd /C reg query HKEY_LOCAL_MACHINE\SOFTWARE\mycop
from Runtime.exec() and parsing the output. This works fine when running on windows 32b, the problem is when on x64, I cannot find the key, as the shell I run is a 32 bit process, and due to Registry Redirection I would get the key if it was on HKEY_LOCAL_MACHINE/SOFTWARE/wow6432Node/mycop
Any idea?
© Stack Overflow or respective owner