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.

117 lines
2.7 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem ȷ���Ƿ� CMD ��չ������
  5. Rem
  6. if "A%cmdextversion%A" == "AA" (
  7. call cmd /e:on /c eudora4.cmd
  8. ) else (
  9. goto ExtOK
  10. )
  11. goto Done
  12. :ExtOK
  13. Rem #########################################################################
  14. Rem
  15. Rem ȷ���Ƿ� %RootDrive% �ѱ����ã��������ڸ������ű�
  16. Rem
  17. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  18. If "%_CHKROOT%" == "FAIL" Goto Done
  19. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  20. If "%_SETPATHS%" == "FAIL" Goto Done
  21. Rem #########################################################################
  22. Rem ��ע�������л��� Eudora �����й���
  23. ..\ACRegL "%Temp%\EPro4.Cmd" EUDTMP "HKCU\Software\Qualcomm\Eudora\CommandLine" "Current" "STRIPCHAR:1"
  24. If Not ErrorLevel 1 Goto Cont1
  25. Echo.
  26. Echo �޷���ע�������л��� Eudora Pro 4.0 �����й��ߡ�
  27. Echo ȷ���Ƿ� Eudora Pro 4.0 �ѱ���װ�������������и������ű���
  28. Echo
  29. Echo.
  30. Pause
  31. Goto Done
  32. :Cont1
  33. Call %Temp%\EPro4.Cmd
  34. Del %Temp%\EPro4.Cmd >Nul: 2>&1
  35. set EudCmd=%EUDTMP:~0,-2%
  36. ..\ACRegL "%Temp%\EPro4.Cmd" EUDTMP "HKCU\Software\Qualcomm\Eudora\CommandLine" "Current" "STRIPCHAR:2"
  37. If Not ErrorLevel 1 Goto Cont2
  38. Echo.
  39. Echo �޷���ע�������л��� Eudora Pro 4.0 �İ�װĿ¼��
  40. Echo ȷ���Ƿ� Eudora Pro 4.0 �ѱ���װ�������������и������ű���
  41. Echo
  42. Echo.
  43. Pause
  44. Goto Done
  45. :Cont2
  46. Call %Temp%\EPro4.Cmd
  47. Del %Temp%\EPro4.Cmd >Nul: 2>&1
  48. Set EudoraInstDir=%EUDTMP:~0,-13%
  49. Rem #########################################################################
  50. If Exist "%EudoraInstDir%\descmap.pce" Goto Cont0
  51. Echo.
  52. Echo �ڼ���ִ������Ӧ�ó��������������ű�֮ǰ������������һ�� Eudora 4.0��
  53. Echo ������ Eudora ֮�󣬸��� Eudora Pro �ļ��� Eudora Pro ���ݷ�ʽ��Ŀ�����ԡ�
  54. Echo �� %RootDrive%\eudora.ini ���ӵ�Ŀ��֮����
  55. Echo ��Ϊ:
  56. Echo "%EudoraInstDir%\Eudora.exe" %RootDrive%\eudora.ini
  57. Echo.
  58. Pause
  59. Goto Done
  60. :Cont0
  61. Rem
  62. Rem ����ע�����·��ָ���û��ض�
  63. Rem Ŀ¼��
  64. Rem
  65. Rem ������ǰ�����ڰ�װģʽ���ı䵽��װģʽ��
  66. Set __OrigMode=Install
  67. ChgUsr /query > Nul:
  68. if Not ErrorLevel 101 Goto Begin
  69. Set __OrigMode=Exec
  70. Change User /Install > Nul:
  71. :Begin
  72. ..\acsr "#INSTDIR#" "%EudoraInstDir%" Template\Eudora4.Key Eudora4.tmp
  73. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Eudora4.tmp Eudora4.key
  74. regini eudora4.key > Nul:
  75. del eudora4.tmp
  76. del eudora4.key
  77. Rem ����ԭ����ִ��ģʽ���ı���ִ��ģʽ��
  78. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  79. Set __OrigMode=
  80. Rem ���� descmap.pce �Ϸ���Ȩ�ޡ�
  81. cacls "%EudoraInstDir%\descmap.pce" /E /G "Terminal Server User":R >NUL: 2>&1
  82. Rem #########################################################################
  83. Echo.
  84. Echo Ϊ�˱�֤ Eudora Pro 4.0 ����ȷ��������ǰ��¼�û�
  85. Echo ����ע���Լ����µ�¼��Ȼ������ Eudora Pro 4.0 ��
  86. Echo.
  87. Echo Eudora 4.0 ���û�Ӧ�ó����������ϡ�
  88. Pause
  89. :done