Source code of Windows XP (NT5)
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.5 KiB

  1. @Echo off
  2. Rem
  3. Rem ��װ�󣬹���ԱӦ���������������ű�
  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 ����Ŀǰ���ڰ�װģʽ�У����ijɰ�װģʽ��
  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 ����ԭʼģʽ��ִ�У����Ļ�ִ��ģʽ��
  34. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  35. Set __OrigMode=
  36. If Not "A%1A" == "AA" Goto Done
  37. Echo.
  38. Echo Ҫ��֤ MS IE 4 ���������У��������κ�Ӧ�ó���
  39. Echo ֮ǰ��Ŀǰ��¼���û�������ע����������
  40. Echo ��¼��
  41. Echo.
  42. Echo Microsoft Internet Explorer 4.x ���û�Ӧ�ó��������ѽ���
  43. Rem �� IE �Զ���װ�ڼ䲻Ҫ��ͣ������
  44. Pause
  45. :Done