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.

41 lines
1.0 KiB

  1. @echo off
  2. Rem
  3. Rem �����ű����� Dr. Watson �İ�װ���ýű�
  4. Rem ������־�ļ�·���͹���ת���ļ����������ļ�
  5. Rem �������û�����Ŀ¼�С�
  6. Rem
  7. Rem ע�⣬��Ҳ����ͨ������ drwtsn32 Ӧ�ó�����
  8. Rem �ı���Щλ�á�
  9. Rem
  10. Rem #########################################################################
  11. Rem
  12. Rem ����֤ %RootDrive% �Ѿ������ã���Ϊ�����ű����øñ�����
  13. Rem
  14. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  15. If "%_CHKROOT%" == "FAIL" Goto Done
  16. Rem #########################################################################
  17. Rem ����Ŀǰ���ڰ�װģʽ�У����ijɰ�װģʽ��
  18. Set __OrigMode=Install
  19. ChgUsr /query > Nul:
  20. if Not ErrorLevel 101 Goto Begin
  21. Set __OrigMode=Exec
  22. Change User /Install > Nul:
  23. :Begin
  24. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\DrWatson.Key DrWatson.Key
  25. regini DrWatson.Key > Nul:
  26. Rem ����ԭʼģʽ��ִ�У����Ļ�ִ��ģʽ��
  27. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  28. Set __OrigMode=
  29. Echo Dr. Watson ���û�Ӧ�ó��������ѽ���
  30. Pause
  31. :Done