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.

104 lines
3.4 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem %RootDrive% ���\�������Ă��̃X�N���v�g�p�ɐݒ肳���Ă��邱�Ƃ��m�F���܂��B
  5. Rem
  6. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  7. If "%_CHKROOT%" == "FAIL" Goto Done
  8. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  9. If "%_SETPATHS%" == "FAIL" Goto Done
  10. Rem #########################################################################
  11. Rem
  12. Rem ���݂̃��[�U�[ �e���v���[�g���炷�ׂẴ��[�U�[�̃e���v���[�g�̏ꏊ��
  13. Rem
  14. If Not Exist "%ALLUSERSPROFILE%\%TEMPLATES%\WINWORD8.DOC" copy "%UserProfile%\%TEMPLATES%\WINWORD8.DOC" "%ALLUSERSPROFILE%\%TEMPLATES%\" /Y >Nul: 2>&1
  15. Rem #########################################################################
  16. Rem #########################################################################
  17. ..\ACRegL %Temp%\O97.Cmd O97INST "HKLM\Software\Microsoft\Office\8.0" "BinDirPath" "STRIPCHAR\1"
  18. If Not ErrorLevel 1 Goto Cont0
  19. Echo.
  20. Echo ���W�X�g������ Word 98 �̃C���X�g�[���ꏊ���擾�ł��܂����B
  21. Echo Word 98 ���C���X�g�[�������Ă��邱�Ƃ��m�F���Ă����A���̃X�N���v�g
  22. Echo �����s���������������B
  23. Echo.
  24. Pause
  25. Goto Done
  26. :Cont0
  27. Call %Temp%\O97.Cmd
  28. Del %Temp%\O97.Cmd >Nul: 2>&1
  29. Rem #########################################################################
  30. Rem
  31. Rem ���ׂẴ��[�U�[�p�̃X�^�[�g�A�b�v ���j���[���� Find Fast ���폜���܂��B
  32. Rem Find Fast �̓��\�[�X���W���I�Ɏg�p���A�V�X�e���̃p�t�H�[�}���X�ɉe�����y�ڂ��܂��B
  33. Rem
  34. If Exist "%COMMON_STARTUP%\Microsoft Find Fast.lnk" Del "%COMMON_STARTUP%\Microsoft Find Fast.lnk" >Nul: 2>&1
  35. Rem #########################################################################
  36. Rem
  37. Rem ���W�X�g�� �L�[���ύX���āA�p�X�����[�U�[�ŗL�̃f�B���N�g�����w�������悤�ɂ��܂��B
  38. Rem
  39. Rem ���W�X�g�� �L�[���ύX���āA�p�X�����[�U�[�ŗL�̃f�B���N�g�����w���悤��
  40. Set __OrigMode=Install
  41. ChgUsr /query > Nul:
  42. if Not ErrorLevel 101 Goto Begin
  43. Set __OrigMode=Exec
  44. Change User /Install > Nul:
  45. :Begin
  46. Set __SharedTools=Shared Tools
  47. If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto acsrCont1
  48. If Not Exist "%ProgramFiles(x86)%" goto acsrCont1
  49. Set __SharedTools=Shared Tools (x86)
  50. :acsrCont1
  51. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\MsWord98.Key MsWord98.Tmp
  52. ..\acsr "#__SharedTools#" "%__SharedTools%" MsWord98.Tmp MsWord98.Tmp2
  53. ..\acsr "#INSTDIR#" "%O97INST%" MsWord98.Tmp2 MsWord98.Tmp3
  54. ..\acsr "#MY_DOCUMENTS#" "%MY_DOCUMENTS%" MsWord98.Tmp3 MsWord98.key
  55. Del MsWord98.Tmp >Nul: 2>&1
  56. Del MsWord98.Tmp2 >Nul: 2>&1
  57. Del MsWord98.Tmp3 >Nul: 2>&1
  58. regini MsWord98.key > Nul:
  59. Rem ���܂��B
  60. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  61. Set __OrigMode=
  62. Rem #########################################################################
  63. Rem
  64. Rem ���̃��[�h�����s���[�h�������ꍇ�A���s���[�h�ɖ߂��܂��B
  65. Rem UsrLogn2.Cmd �X�N���v�g�ɒlj����܂��B
  66. Rem
  67. ..\acsr "#INSTDIR#" "%O97INST%" ..\Logon\Template\Wrd98Usr.Cmd ..\Logon\Wrd98Usr.Cmd
  68. FindStr /I Wrd98Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  69. If Not ErrorLevel 1 Goto Skip1
  70. Echo Call Wrd98Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  71. :Skip1
  72. Echo.
  73. Echo MS Word 98 �������ɍ쓮���邽�߂ɂ́A���݃��O�I�����Ă��郆�[�U�[�́A
  74. Echo �A�v���P�[�V���������s�����O�ɁA�������񃍃O�I�t���Ă����ēx���O�I��
  75. Echo �����K�v�������܂��B
  76. Echo.
  77. Echo Microsoft Word 98 �̃}���`���[�U�[ �A�v���P�[�V�����‹��ݒ肪����
  78. Pause
  79. :Done