Kaseya Community

Cannot get variable from registry key on 64bit OS

This question is not answered

Hey Guys,

im having some issues with pulling registry keys as a variable for 64 bit machines, my agent procedure works great on 32 bit OS's, but i do not get any data populated on 64bit OS's, even though the registry key is in the exact same location and ive tried changing it to get variable from a 64-bit value with no change from the standard Registry value that will pull just fine from 32bit OS's.

the key i want to pull info from is located in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%programname%\key

it's the exact same location for 32bit and 64bit OS's from what i've seen.

All Replies
  • It sounds like you might be interrogating the wrong location for a 32-bit program on a 64-bit machine?

    On 32-bit machines the location is:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

    On 64-bit machines the location depends:

    64-bit installers...

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

    32-bit installers

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\

  • Yes, that is Registry Redirection. You should save this reference: msdn.microsoft.com/.../aa384253(v=vs.85).aspx

    Interesting side note: the SOFTWARE key in the HKCU hive is not redirected.