kiboost Posted November 4, 2015 Share Posted November 4, 2015 Hi,I just updated from v3.3.12 to v3.3.14 and now RegRead can't read some registry value it could before.Example for vdredist 2005_sp1 x64 MFC:$var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ad8a2fa1-06e7-4b0d-927d-6e54b3d31028}", "DisplayVersion")ConsoleWrite(@error&@CR)=> error 1 = unable to open requested keyNo problem at all with v3.3.12 and previous.Is there any deprecated/new stuff regarding RegRead ? Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 Link to comment Share on other sites More sharing options...
kiboost Posted November 4, 2015 Author Share Posted November 4, 2015 Same in 3.3.14.1 / 3.3.14.2 Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 Link to comment Share on other sites More sharing options...
water Posted November 4, 2015 Share Posted November 4, 2015 According to the help file: "When running on 64-bit Windows if you want to read a value specific to the 64-bit environment you have to suffix the HK... with 64 i.e. HKLM64." My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
iamtheky Posted November 4, 2015 Share Posted November 4, 2015 (edited) works fine here, though I probably shouldn't have set that value to 1. It may be the same return on error.... I'll continue verifying....$var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ad8a2a1-06e7-4b0d-927d-6e54b3d31028}", "DisplayVersion") If @Error Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ad8a2a1-06e7-4b0d-927d-6e54b3d31028}", "DisplayVersion" , "Reg_SZ" , "TestDisplayEntry") $var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ad8a2a1-06e7-4b0d-927d-6e54b3d31028}", "DisplayVersion") ConsoleWrite($var & @LF & @error & @LF) Edited November 4, 2015 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
kiboost Posted November 4, 2015 Author Share Posted November 4, 2015 very strange thing, I copy entire autoit3 folder from another machine in v3.3.12.0 and now it works !will try with 3.3.14 ... Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 Link to comment Share on other sites More sharing options...
water Posted November 4, 2015 Share Posted November 4, 2015 Maybe AutoIt pre 3.3.14.x didn't work as documented and this was then fixed with 3.3.14.x My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
iamtheky Posted November 4, 2015 Share Posted November 4, 2015 So what else is different about these machines (OS / Architecture / UAC)? The troubleshooting step of "copy directories around and see what happens" does not yield any actionable data. ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
kiboost Posted November 4, 2015 Author Share Posted November 4, 2015 I may have some configuration somewhere in autoit3 folder ...On a working machine with 3.3.12.0:- If I install 3.3.14.2 with installer, no problem (without reinstalling scite).- If I download the zip package, delete my C:\autoit3\ folders and files and get them back from the zip, it doesn't work. RegRead works on some keys, but not all.Really strange... But seems not an autoit problem, more something with my configs, maybe scite one. Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 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