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.

134 lines
4.6 KiB

  1. @Echo Off
  2. Cls
  3. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  4. If "%_CHKROOT%" == "FAIL" Goto Done
  5. Echo.
  6. Echo �� ��ũ��Ʈ�� �����ϱ� ����, Administrator�� Access �۾� �����͸���
  7. Echo �������� Office private �����͸��� �����ؾ� �մϴ�.
  8. Echo.
  9. Echo ������ �� �ƹ� Ű�� ������ ���ӵ˴ϴ�.
  10. Echo.
  11. Echo �׷��� ������ Administrator�� ���� �ܰ踦 �����ؾ� �մϴ�:
  12. Echo MS Access�� �����Ͽ� [����] �޴����� [�ɼ�]�� �����մϴ�.
  13. Echo "�⺻ �����ͺ��̽� �����͸�"�� "%RootDrive%\OFFICE43"���� �ٲߴϴ�.
  14. Echo MS Access�� �����մϴ�.
  15. Echo.
  16. Echo ����: [����] �޴��� ������ �� �����ͺ��̽��� �������� �մϴ�.
  17. Echo.
  18. Echo �� �ܰ踦 �Ϸ��� �� �ƹ� Ű�� ������ ���ӵ˴ϴ�...
  19. Pause > NUL:
  20. Echo.
  21. Echo MS Office 4.3�� "%SystemDrive%\MSOFFICE"�� �ƴ� �ٸ� �����͸��� ��ġ�� ����,
  22. Echo Ofc43ins.cmd�� ������Ʈ�ؾ� �մϴ�.
  23. Echo.
  24. Echo Ofc43ins.cmd ������Ʈ�� �����Ϸ��� �ƹ� Ű�� �����ʽÿ�...
  25. Echo.
  26. Pause > NUL:
  27. Notepad Ofc43ins.cmd
  28. Pause
  29. Call ofc43ins.cmd
  30. ..\acsr "#OFC43INST#" "%OFC43INST%" ..\Logon\Template\ofc43usr.cmd ..\Logon\ofc43usr.cmd
  31. ..\acsr "#SYSTEMROOT#" "%SystemRoot%" ..\Logon\Template\ofc43usr.key ..\Logon\Template\ofc43usr.bak
  32. ..\acsr "#OFC43INST#" "%OFC43INST%" ..\Logon\Template\ofc43usr.bak ..\Logon\ofc43usr.key
  33. Del /F /Q ..\Logon\Template\ofc43usr.bak
  34. Rem
  35. Rem ����: �� ��ũ��Ʈ ���� CACLS ���ɾ��� NTFS�� ���˵� ��Ƽ�ǿ�����
  36. Rem ������ �� �ֽ��ϴ�.
  37. Rem
  38. Rem ���� ��ġ ���忡 ���� ������ ��ġ ������ �����մϴ�.
  39. Set __OrigMode=Install
  40. ChgUsr /query > Nul:
  41. if Not ErrorLevel 101 Goto Begin
  42. Set __OrigMode=Exec
  43. Change User /Install > Nul:
  44. :Begin
  45. regini Office43.key > Nul:
  46. Rem ���� ���尡 ���� ���忴����, ���� ������ �ٽ� �����մϴ�.
  47. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  48. Set __OrigMode=
  49. Rem
  50. Rem Office 4.3�� INI ���� ������Ʈ
  51. Rem
  52. Rem Excel�� Office Toolbar���� ������ �� msoffice.ini�� �ִ� �۾� �����͸���
  53. Rem �����մϴ�. Office Toolbar�� ǥ�� ������ Excel�� Word �ڿ� �� ��°��
  54. Rem ǥ���մϴ�. msoffice.ini�� ������, %SystemRoot%�� ��������
  55. Rem ���Դϴ�.
  56. ..\Aciniupd /e "Msoffice.ini" "ToolbarOrder" "MSApp1" "1,1,"
  57. ..\Aciniupd /e "Msoffice.ini" "ToolbarOrder" "MSApp2" "2,1,,%RootDrive%\office43"
  58. ..\Aciniupd /e "Winword6.ini" "Microsoft Word" USER-DOT-PATH "%RootDrive%\OFFICE43\WINWORD"
  59. ..\Aciniupd /e "Winword6.ini" "Microsoft Word" WORKGROUP-DOT-PATH "%OFC43INST%\WINWORD\TEMPLATE"
  60. ..\Aciniupd /e "Winword6.ini" "Microsoft Word" INI-PATH "%RootDrive%\OFFICE43\WINWORD"
  61. ..\Aciniupd /e "Winword6.ini" "Microsoft Word" DOC-PATH "%RootDrive%\OFFICE43"
  62. ..\Aciniupd /e "Winword6.ini" "Microsoft Word" AUTOSAVE-PATH "%RootDrive%\OFFICE43"
  63. ..\Aciniupd /e "Excel5.ini" "Microsoft Excel" DefaultPath "%RootDrive%\OFFICE43"
  64. ..\Aciniupd /e "Excel5.ini" "Spell Checker" "Custom Dict 1" "%RootDrive%\OFFICE43\Custom.dic"
  65. ..\Aciniupd /k "Msacc20.ini" Libraries "WZTABLE.MDA" "%RootDrive%\OFFICE43\ACCESS\WZTABLE.MDA"
  66. ..\Aciniupd /k "Msacc20.ini" Libraries "WZLIB.MDA" "%RootDrive%\OFFICE43\ACCESS\WZLIB.MDA"
  67. ..\Aciniupd /k "Msacc20.ini" Libraries "WZBLDR.MDA" "%RootDrive%\OFFICE43\ACCESS\WZBLDR.MDA"
  68. ..\Aciniupd /e "Msacc20.ini" Options "SystemDB" "%RootDrive%\OFFICE43\ACCESS\System.MDA"
  69. Rem
  70. Rem WIN.INI ������Ʈ
  71. Rem
  72. ..\Aciniupd /e "Win.ini" "MS Proofing Tools" "Custom Dict 1" "%RootDrive%\OFFICE43\Custom.dic"
  73. Rem
  74. Rem Artgalry ������ ���� ���� �ٲٱ�
  75. Rem
  76. cacls "%SystemRoot%\Msapps\Artgalry" /E /G "Terminal Server User":F > NUL: 2>&1
  77. Rem
  78. Rem MSQuery ������ ���� ���� �ٲٱ�
  79. Rem
  80. cacls "%SystemRoot%\Msapps\MSQUERY" /E /G "Terminal Server User":C > NUL: 2>&1
  81. Rem
  82. Rem Admin�� ���� ������ ������ �����Ƿ�, Msacc20.ini�� Admin�� windows �����͸��� �����մϴ�.
  83. Rem
  84. Copy "%SystemRoot%\Msacc20.ini" "%UserProfile%\Windows\" > NUL: 2>&1
  85. Rem ��ġ ���α׷��� ������Ʈ�� Ű�� �������� �ʵ��� ���� ������ �����ϴ�.
  86. Copy NUL: "%UserProfile%\Windows\Ofc43usr.dmy" > NUL: 2>&1
  87. attrib +h "%UserProfile%\Windows\Ofc43usr.dmy" > NUL: 2>&1
  88. FindStr /I Ofc43Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  89. If Not ErrorLevel 1 Goto cont2
  90. Echo Call Ofc43Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  91. :cont2
  92. Echo.
  93. Echo Administrator�� �α׿����ߴٰ� �ٽ� �α׿��ؾ� ���� ������ �����˴ϴ�.
  94. Echo �α׿��� ��, Administrator�� ClipArt Gallery�� �ʱ�ȭ�ϱ� ���� ���� �ܰ踦
  95. Echo �����ؾ� �մϴ� :
  96. Echo Word�� �����Ͽ� [��ü ����]�� �����մϴ�.
  97. Echo Microsoft ClipArt Gallery�� �����մϴ�.
  98. Echo ��Ÿ�� Ŭ����Ʈ�� �������� ���� [Ȯ��]�� �����ϴ�.
  99. Echo ClipArt Gallery �� Word�� �����ϴ�.
  100. Echo.
  101. Echo Microsoft Office 4.3 ���� ������ ���� ���α׷� Ʃ���� �Ϸ��Ǿ����ϴ�.
  102. Echo.
  103. Pause
  104. :Done