Jump to content

Having an issue with RegRead


jerseyzuks
 Share

Recommended Posts

I took that into consideration, but I can manually locate it in HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall

The script cannot

If you are on a X64 OS and your script is running as X86 then perhaps your code is looking at

HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall

instead of what you consider as

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall

Try the SecureZip test like this

Func SecureZipReg ()
   Global $SecureZip = RegRead("HKLM64\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4957C351-2399-47D6-B857-81FBB67E28DB}", "DisplayName")
   MsgBox (0, "", $SecureZip)
EndFunc

So if running as X86 and you want to access HKLM X64 entries then HKLM64 can be used. :)

Link to comment
Share on other sites

If you are on a X64 OS and your script is running as X86 then perhaps your code is looking at

HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall

instead of what you consider as

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall

Try the SecureZip test like this

Func SecureZipReg ()
   Global $SecureZip = RegRead("HKLM64\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4957C351-2399-47D6-B857-81FBB67E28DB}", "DisplayName")
   MsgBox (0, "", $SecureZip)
EndFunc

So if running as X86 and you want to access HKLM X64 entries then HKLM64 can be used. :)

 

Thank you!  That worked. 

Thanks everybody for your patience.  Like I said, this stuff is all still pretty new to me, so I really appreciate all the help and understanding. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...