Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.7 KiB

  1. @Echo off
  2. Rem
  3. Rem Administrator should run this script right after the installation
  4. Rem
  5. CD /D "%SystemRoot%\Application Compatibility Scripts\Install" > NUL: 2>&1
  6. If Not "A%1A" == "AA" Goto cont0
  7. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  8. If "%_CHKROOT%" == "FAIL" Goto Done
  9. :cont0
  10. If "A%1A" == "AA" ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\msie40.key msie40.key
  11. ..\acsr "#SYSTEMROOT#" "%SystemRoot%" Template\msie40s.key msie40s.key
  12. If Exist "%SystemRoot%\Setup.ini" Goto Cont2
  13. Copy NUL: "%SystemRoot%\Setup.ini" > NUL: 2>&1
  14. :Cont2
  15. Cacls "%SystemRoot%\Setup.ini" /E /T /G "Authenticated Users":F >Nul: 2>&1
  16. If Exist "%SystemRoot%\Setup.old" Goto Cont3
  17. Copy NUL: "%SystemRoot%\Setup.old" > NUL: 2>&1
  18. :Cont3
  19. Attrib +r "%SystemRoot%\Setup.old" > NUL: 2>&1
  20. FindStr /I Msie4Usr %SystemRoot%\System32\UsrLogn1.Cmd >Nul: 2>&1
  21. If Not ErrorLevel 1 Goto Cont4
  22. Echo Call Msie4Usr.Cmd >> %SystemRoot%\System32\UsrLogn1.Cmd
  23. :Cont4
  24. Rem If not currently in Install Mode, change to Install Mode.
  25. Set __OrigMode=Install
  26. ChgUsr /query > Nul:
  27. if Not ErrorLevel 101 Goto Begin
  28. Set __OrigMode=Exec
  29. Change User /Install > Nul:
  30. :Begin
  31. If "A%1A" == "AA" regini Msie40.key > Nul:
  32. regini Msie40s.key > NUL:
  33. Rem If original mode was execute, change back to Execute Mode.
  34. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  35. Set __OrigMode=
  36. If Not "A%1A" == "AA" Goto Done
  37. Echo.
  38. Echo To insure proper operation of MS IE 4, users who are
  39. Echo currently logged on must log off and log on again before
  40. Echo running any application.
  41. Echo.
  42. Echo Microsoft Internet Explorer 4.x Multi-user Application Tuning Complete
  43. Rem Do not pause during the IE AutoInstall.
  44. Pause
  45. :Done