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.

119 lines
3.9 KiB

  1. @echo off
  2. Rem #########################################################################
  3. Rem
  4. Rem ���[�U�[�̃z�[�� �f�B���N�g���ɃA�v���P�[�V�����ŗL�̃f�[�^
  5. Rem �̃f�B���N�g�����쐬���܂��B
  6. Rem
  7. call TsMkUDir "%RootDrive%\Office95"
  8. Rem #########################################################################
  9. Rem ���̃X�N���v�g�� Alpha ���Ŏ��s���ł��邩�m�F���āAAlpha ���Ŏ��s�����Ă����ꍇ�A�K�؂ȋ��L�c�[�����ݒ肵�܂��B
  10. rem
  11. rem
  12. Set __SharedTools=Shared Tools
  13. If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto acsrCont1
  14. If Not Exist "%ProgramFiles(x86)%" goto acsrCont1
  15. Set __SharedTools=Shared Tools (x86)
  16. :acsrCont1
  17. Rem #########################################################################
  18. Rem
  19. Rem ���[�U�[�̃f�B���N�g���� Custom.dic �t�@�C�����쐬���܂��B
  20. Rem
  21. If Not Exist "%RootDrive%\Office95\Custom.Dic" Copy Nul: "%RootDrive%\Office95\Custom.Dic" >Nul: 2>&1
  22. Rem #########################################################################
  23. REM
  24. REM �����̖��O�ƃp�X���擾���܂��B
  25. REM
  26. ..\ACRegL "%Temp%\Proj95_1.Cmd" DictPath "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "Dictionary" "StripChar\1"
  27. If ErrorLevel 1 Goto Done
  28. Call %Temp%\Proj95_1.Cmd
  29. Del %Temp%\Proj95_1.Cmd >Nul: 2>&1
  30. ..\ACRegL "%Temp%\Proj95_3.Cmd" DictName "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "Dictionary" "StripPath"
  31. If ErrorLevel 1 Goto Done
  32. Call %Temp%\Proj95_3.Cmd
  33. Del %Temp%\Proj95_3.Cmd >Nul: 2>&1
  34. Rem #########################################################################
  35. REM
  36. REM �p�X�̃��W�X�g���ݒ肪�ύX�����Ă����ꍇ�A���Z�b�g���܂��B
  37. REM �����́A�ʂ� Microsoft Office �A�v���P�[�V�������C���X�g�[�������Ă����ꍇ�ɔ������邱�Ƃ������܂��B
  38. REM
  39. If "%DictPath%"=="%RootDrive%\Office95" Goto GetDictionary
  40. ..\ACRegL "%Temp%\Proj95_2.Cmd" Dictionary "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "Dictionary" ""
  41. If ErrorLevel 1 Goto Done
  42. Call %Temp%\Proj95_2.Cmd
  43. Del %Temp%\Proj95_2.Cmd >Nul: 2>&1
  44. REM 2 �l�̃��[�U�[�����̃R�[�h���ʉ߂����̂��h���܂��B
  45. REM �����ɂ��胆�[�U�[ A �� DictPath ���擾���ɁA���[�U�[ B ��
  46. REM DictPath �ύX�����̂��h���܂��B
  47. ..\ACRegL "%Temp%\Proj95_7.Cmd" OrigDictPath "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "Dictionary" "StripChar\1"
  48. If ErrorLevel 1 Goto Done
  49. Call %Temp%\Proj95_7.Cmd
  50. Del %Temp%\Proj95_7.Cmd >Nul: 2>&1
  51. if "%OrigDictPath%"=="%RootDrive%\Office95" Goto GetDictionary
  52. ..\acsr "#DICTNAME#" "%DictName%" Template\prj95Usr.key %Temp%\Proj95_4.tmp
  53. ..\acsr "#ROOTDRIVE#" "%RootDrive%" %Temp%\Proj95_4.tmp %Temp%\Proj95_5.tmp
  54. ..\acsr "#DICTIONARY#" "%Dictionary%" %Temp%\Proj95_5.tmp %Temp%\Proj95_6.tmp
  55. ..\acsr "#__SharedTools#" "%__SharedTools%" %Temp%\Proj95_6.tmp %Temp%\Prj95Usr.Key
  56. Rem ���W�X�g�� �L�[���ύX���āA�����̃p�X�����[�U�[�ŗL�̃f�B���N�g�����w���悤�ɂ��܂��B
  57. regini %Temp%\prj95Usr.key > Nul:
  58. Del %Temp%\Proj95_4.tmp >Nul: 2>&1
  59. Del %Temp%\Proj95_5.tmp >Nul: 2>&1
  60. Del %Temp%\Proj95_6.tmp >Nul: 2>&1
  61. Del %Temp%\prj95Usr.key >Nul: 2>&1
  62. goto CopyDictionary
  63. Rem #########################################################################
  64. REM
  65. REM �����̃p�X���ύX�����Ă��Ȃ��ꍇ�A���W�X�g�����Q�Ƃ��āA����
  66. REM ���O�ƃp�X���g�p���Ă��������B
  67. REM
  68. :GetDictionary
  69. ..\ACRegL "%Temp%\Proj95_6.Cmd" Dictionary "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "OrigDictionary" ""
  70. If ErrorLevel 1 Goto SpellError
  71. Call %Temp%\Proj95_6.Cmd
  72. Del %Temp%\Proj95_6.Cmd >Nul: 2>&1
  73. Rem #########################################################################
  74. REM
  75. REM ���������[�U�[ �f�B���N�g���ɃR�s�[���܂��B
  76. REM
  77. :CopyDictionary
  78. If Exist "%RootDrive%\Office95\%DictName%" goto Cont1
  79. If Not Exist "%Dictionary%" goto Cont1
  80. Copy "%Dictionary%" "%RootDrive%\Office95\%DictName%" >Nul: 2>&1
  81. :Cont1
  82. :Done