I have the following registry entry on my 64bit system:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CCleaner\DisplayVersion
And I'm trying to read it with a 32bit JS application, but I get automatically redirected to:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\CCleaner\DisplayVersion
(which does not exist)
Here is my code:
var WshShell = new ActiveXObject("WScript.Shell");
var installedVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\CCleaner\\DisplayVersion");
So how can I disable this redirect on a 64bit OS (for RegRead, RegWrite and RegDelete)?