Hello, I'm back since quite a long time...
I'm trying to use the RegRead to read a registry key.
The proposed example is working:
Local $var = RegRead("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion", "ProgramFilesDir") MsgBox(4096, "Program files are in:", $var)
But I'm trying to read other keys and @error returns 1 (unable to open requested key).
I'm running as admin (with #RequireAdmin at the beginning of the script).
#RequireAdmin
Local $path = RegRead ( "HKEY_LOCAL_MACHINESOFTWAREAVAST SoftwareAvast", "ProgramFolder")
MsgBox(4096, "The avast! path is:", $path)
#RequireAdmin
Local $var = RegRead("HKEY_LOCAL_MACHINESOFTWAREGRETECHGomPlayer", "ProgramFolder")
MsgBox(4096, "The GOM path is:", $var)
What am I doing wrong?
How to achieve reading that keys?
I'm on Windows 8.1 x64.
Thanks.