tonysing Posted September 3, 2014 Share Posted September 3, 2014 Hello guy, I have just made a update patch for IE 11, including to disable some function of IE (i.e. auto upgrade) However, thing goes wrong when I try to modify the reg key #RequireAdmin RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN","EnableAutoUpgrade","REG_DWORD",0) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\BrowserEmulation","AllSitesCompatibilityMode","REG_DWORD",0) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\BrowserEmulation","IntranetCompatibilityMode","REG_DWORD",0) Can anyone tell one what's going wrong in my program? Thanks a lot Link to comment Share on other sites More sharing options...
lolipop Posted September 3, 2014 Share Posted September 3, 2014 I don't see anything wrong with the sample you post. What is wrong? What error message did you receive? Perhaps you can post the whole script so we can see what's wrong. Link to comment Share on other sites More sharing options...
tonysing Posted September 3, 2014 Author Share Posted September 3, 2014 (edited) After running the script, nothing happen. So that's the problem. Those reg key remain unchanged As I have to do the patch for both 32 bit and 64 bit system, I wonder if different reg key is used in 64 bit system Edited September 3, 2014 by tonysing Link to comment Share on other sites More sharing options...
Solution devilman16 Posted September 3, 2014 Solution Share Posted September 3, 2014 (edited) Are your trying to change this keys on a x64 System with a x86 compiled script? Then you have to use: RegWrite("HKLM64\SOFTWARE\Microsoft\Internet Explorer\MAIN","EnableAutoUpgrade","REG_DWORD",0) RegWrite("HKLM64\SOFTWARE\Microsoft\Internet Explorer\BrowserEmulation","AllSitesCompatibilityMode","REG_DWORD",0) RegWrite("HKLM64\SOFTWARE\Microsoft\Internet Explorer\BrowserEmulation","IntranetCompatibilityMode","REG_DWORD",0) Cause else they will be written to: HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeMicrosoftInternet Explorer .... Also on x64 Systems you need to know that there exists a x64 iexplore.exe and a x86 iexplore.exe -> so you have to set the keys for the version you use Edited September 3, 2014 by devilman16 Link to comment Share on other sites More sharing options...
tonysing Posted September 3, 2014 Author Share Posted September 3, 2014 (edited) Are your trying to change this keys on a x64 System with a x86 compiled script? Then you have to use: RegWrite("HKLM64\SOFTWARE\Microsoft\Internet Explorer\MAIN","EnableAutoUpgrade","REG_DWORD",0) RegWrite("HKLM64\SOFTWARE\Microsoft\Internet Explorer\BrowserEmulation","AllSitesCompatibilityMode","REG_DWORD",0) RegWrite("HKLM64\SOFTWARE\Microsoft\Internet Explorer\BrowserEmulation","IntranetCompatibilityMode","REG_DWORD",0) Cause else they will be written to: HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeMicrosoftInternet Explorer .... Also on x64 Systems you need to know that there exists a x64 iexplore.exe and a x86 iexplore.exe -> so you have to set the keys for the version you use Wow, Thanks a lot. At least it can solve my doubt. I will try it now and see if the problem is solve. Besides, I want to know that when the modification apply on the computer? Is that after the script the keys will change immediately? The problem is solved, thanks for your effort Edited September 3, 2014 by tonysing 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