allSystemsGo Posted September 27, 2013 Share Posted September 27, 2013 Eh, it was worth a shot. For whatever reason it is not reading that key, which is why your msgbox is blank. Are you sure there is not some soft of error, such as an incorrectly typed variable? Link to comment Share on other sites More sharing options...
AdamUL Posted September 27, 2013 Share Posted September 27, 2013 What is the @error value for RegRead? Link to comment Share on other sites More sharing options...
MHz Posted September 28, 2013 Share Posted September 28, 2013 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 More sharing options...
jerseyzuks Posted September 30, 2013 Author Share Posted September 30, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now