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.6 KiB

  1. @Echo off
  2. Rem
  3. Rem �b�w�˫��A�t�κ޲z�����Ӱ����o�ӫ��O��
  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 �p�G�ثe���O�w�˼Ҧ��A�N�ܧ󦨦w�˼Ҧ��C
  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 ���F���� MS IE 4 ���T�ާ@�A�ثe�w�n�J��
  39. Echo �ϥΪ̥������n�X�A�A���s�n�J�A�~������
  40. Echo ���ε{���C
  41. Echo.
  42. Echo Microsoft Internet Explorer 4.x �h�ϥΪ����ε{���վ��B�z����
  43. Rem �b IE AutoInstall �L�{�����n�Ȱ�
  44. Pause
  45. :Done