ie_setup.bat 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. :: Disable "Stop running this script?" alert dialog.
  2. reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles" ^
  3. /v "MaxScriptStatements" /t REG_DWORD /d 0xffffffff /f
  4. :: Disable Java update dialogs.
  5. reg add ^
  6. "HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Update\Policy" ^
  7. reg add ^
  8. "HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Update\Policy" ^
  9. /v "EnableJavaUpdate" /t REG_DWORD /d 0 /f
  10. reg add ^
  11. "HKEY_CURRENT_USER\Software\AppDataLow\Software\JavaSoft\DeploymentProperties" ^
  12. /v "deployment.expiration.check.enabled" /t REG_SZ /d false /f
  13. reg add ^
  14. "HKEY_CURRENT_USER\Software\AppDataLow\Software\JavaSoft\DeploymentProperties" ^
  15. /v "deployment.expiration.decision.10.55.2" /t REG_SZ /d block /f
  16. reg add ^
  17. "HKEY_CURRENT_USER\Software\AppDataLow\Software\JavaSoft\DeploymentProperties" ^
  18. /v "deployment.expiration.decision.suppression.10.55.2" /t REG_SZ /d true /f
  19. reg add ^
  20. "HKEY_CURRENT_USER\Software\AppDataLow\Software\JavaSoft\DeploymentProperties" ^
  21. /v "deployment.expiration.decision.timestamp.10.55.2" /t REG_SZ /d 1413180896 /f
  22. reg add ^
  23. "HKEY_CURRENT_USER\Software\Microsoft\Active Setup\Declined Install On Demand IEv5" ^
  24. /v "{08B0e5c0-4FCB-11CF-AAA5-00401C608501}" /t REG_SZ /d 1 /f /v "EnableJavaUpdate" /t REG_DWORD /d 0 /f
  25. :: Disable Windows crash dialogs.
  26. reg add ^
  27. "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting" ^
  28. /v "DontShowUI" /t REG_DWORD /d 1 /f
  29. reg add ^
  30. "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting" ^
  31. /v "ForceQueue" /t REG_DWORD /d 1 /f
  32. :: Disable JavaScript error dialogs.
  33. reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" ^
  34. /v "Error Dlg Displayed On Every Error" /t REG_SZ /d no /f
  35. :: Disable script error dialogs for IE8 & IE9.
  36. reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" ^
  37. /v "Disable Script Debugger" /t REG_SZ /d yes /f
  38. reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" ^
  39. /v "DisableScriptDebuggerIE" /t REG_SZ /d yes /f
  40. :: Disable cross-origin XHRs. Sauce enables this in IE by default.
  41. @ECHO OFF
  42. REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v 1406 /t REG_DWORD /d 3 /f
  43. setlocal
  44. set "URL=https://raw.githubusercontent.com/google/closure-library/master/scripts/ci/CloseAdobeDialog.exe"
  45. set "SaveAs=C:\Users\Administrator\Desktop\CloseAdobeDialog.exe"
  46. powershell "Import-Module BitsTransfer; Start-BitsTransfer '%URL%' '%SaveAs%'"
  47. start C:\Users\Administrator\Desktop\CloseAdobeDialog.exe
  48. exit