ahmeddzcom Posted October 6, 2016 Share Posted October 6, 2016 Hello i Have This : #RequireAdmin #include <Process.au3> _RunDos('reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 1 /f') Must To Compile to x86 He run good in 32-Bit But not work in 64-bit Thanks. Link to comment Share on other sites More sharing options...
Muhammad_Awais_Sharif Posted October 6, 2016 Share Posted October 6, 2016 Hi Please take a look at RegWrite here is a link https://www.autoitscript.com/autoit3/docs/functions/RegWrite.htm Quote When running on 64-bit Windows if you want to write a key or value specific to the 64-bit environment you have to suffix the HK... with 64 i.e. HKLM64. ahmeddzcom 1 Link to comment Share on other sites More sharing options...
ahmeddzcom Posted October 6, 2016 Author Share Posted October 6, 2016 8 hours ago, Muhammad_Awais_Sharif said: Hi Please take a look at RegWrite here is a link https://www.autoitscript.com/autoit3/docs/functions/RegWrite.htm Ofcource ... But same thing Link to comment Share on other sites More sharing options...
genius257 Posted October 6, 2016 Share Posted October 6, 2016 I'm not sure but maybe it has something to do with this? How to view the system registry by using 64-bit versions of Windows ahmeddzcom 1 My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
Muhammad_Awais_Sharif Posted October 6, 2016 Share Posted October 6, 2016 I don't know what you are doing but I have windows 10 and one of theme work and one not ;this one work as system is 64 bit we have to mention HKEY_LOCAL_MACHINE64 MsgBox(0,"",RegRead("HKEY_LOCAL_MACHINE64\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update","AcceleratedInstallRequired")) ;this one not worked because script is executing on 64 bit so we have not mentioned 64 after HKEY_LOCAL_MACHINE MsgBox(0,"",RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update","AcceleratedInstallRequired")) Link to comment Share on other sites More sharing options...
ahmeddzcom Posted October 6, 2016 Author Share Posted October 6, 2016 10 hours ago, genius257 said: I'm not sure but maybe it has something to do with this? How to view the system registry by using 64-bit versions of Windows i Try But it didn't work . Thanks. Link to comment Share on other sites More sharing options...
ahmeddzcom Posted October 6, 2016 Author Share Posted October 6, 2016 9 hours ago, Muhammad_Awais_Sharif said: I don't know what you are doing but I have windows 10 and one of theme work and one not ;this one work as system is 64 bit we have to mention HKEY_LOCAL_MACHINE64 MsgBox(0,"",RegRead("HKEY_LOCAL_MACHINE64\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update","AcceleratedInstallRequired")) ;this one not worked because script is executing on 64 bit so we have not mentioned 64 after HKEY_LOCAL_MACHINE MsgBox(0,"",RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update","AcceleratedInstallRequired")) Yes Brother it is this : (HKEY_LOCAL_MACHINE64) Thank you. Muhammad_Awais_Sharif 1 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