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.

110 lines
3.7 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 �X�^�[�g�A�b�v ���j���[���� Find Fast ���폜���܂��BFind Fast �̓��\�[�X
  13. Rem ���W���I�Ɏg�p���A�V�X�e���̃p�t�H�[�}���X�ɉe�����y�ڂ��܂��B
  14. Rem
  15. If Not Exist "%COMMON_STARTUP%\Find Fast �p���ޯ���쐬°�.lnk" Goto Cont1
  16. Del "%COMMON_STARTUP%\Find Fast �p���ޯ���쐬°�.lnk" >Nul: 2>&1
  17. :Cont1
  18. If Not Exist "%USER_STARTUP%\Find Fast �p���ޯ���쐬°�.lnk" Goto Cont2
  19. Del "%USER_STARTUP%\Find Fast �p���ޯ���쐬°�.lnk" >Nul: 2>&1
  20. :Cont2
  21. Rem #########################################################################
  22. Rem
  23. Rem ���[�U�[���������[�U�[�f�B���N�g���Ɉړ����܂��B
  24. Rem
  25. Rem ���݁A�C���X�g�[�� ���[�h�łȂ��ꍇ�A�C���X�g�[�� ���[�h�ɕύX���܂��B
  26. Set __OrigMode=Install
  27. ChgUsr /query > Nul:
  28. if Not ErrorLevel 101 Goto Begin
  29. Set __OrigMode=Exec
  30. Change User /Install > Nul:
  31. :Begin
  32. Set __SharedTools=Shared Tools
  33. If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto acsrCont1
  34. If Not Exist "%ProgramFiles(x86)%" goto acsrCont1
  35. Set __SharedTools=Shared Tools (x86)
  36. :acsrCont1
  37. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\msproj95.Key msproj95.tmp
  38. ..\acsr "#__SharedTools#" "%__SharedTools%" msproj95.tmp msproj95.Key
  39. Del msproj95.tmp >Nul: 2>&1
  40. regini msproj95.key > Nul:
  41. Rem ���̃��[�h�����s���[�h�������ꍇ�A���s���[�h�ɖ߂��܂��B
  42. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  43. Set __OrigMode=
  44. Rem #########################################################################
  45. Rem
  46. Rem ���̃t�@�C���̓��O�I�����ɓǂݎ������܂��B
  47. Rem ���[�U�[�ɃA�N�Z�X���^���܂��B
  48. Cacls ..\Logon\Template\prj95usr.key /E /P "Authenticated Users":F >Nul: 2>&1
  49. Rem #########################################################################
  50. Rem
  51. Rem proj95Usr.Cmd �� UsrLogn2.Cmd �X�N���v�g�ɒlj����܂��B
  52. Rem
  53. FindStr /I prj95Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  54. If Not ErrorLevel 1 Goto Skip2
  55. Echo Call prj95Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  56. :Skip2
  57. Rem #########################################################################
  58. Echo.
  59. Echo �Ǘ��҂͈ȉ��̎菇�ŁA�X�̃��[�U�[�ɌŗL�̊����̃f�B���N�g����
  60. Echo �ݒ肷�邱�Ƃ��ł��܂�:
  61. Echo.
  62. Echo 1) [�X�^�[�g] �{�^�����}�E�X�̉E�{�^���ŃN���b�N���܂��B
  63. Echo 2) �|�b�v�A�b�v ���j���[���� [�G�N�X�v���[�� - All Users] ���N���b�N
  64. Echo �����ƃG�N�X�v���[�����\�������܂��B
  65. Echo 3) �E���̃E�B���h�E�� [�v���O����] �t�H���_���_�u���N���b�N���܂��B
  66. Echo 4) �E���̃E�B���h�E�� [Microsoft Project] �A�C�R�����}�E�X�̉E�{�^�
  67. Echo �ŃN���b�N���܂��B
  68. Echo 5) �|�b�v�A�b�v ���j���[���� [�v���p�e�B] ���N���b�N���܂��B
  69. Echo 6) [�V���[�g�J�b�g] �^�u���N���b�N���āA[���ƃt�H���_] �̃G���g���� & Echo �ύX���A[OK] ���N���b�N���܂��B
  70. Echo.
  71. Echo ����: %RootDrive% �͊e���[�U�[�� �z�[�� �f�B���N�g���Ɋ��蓖�Ă����Ă��܂��B
  72. Echo [�J�n�t�H���_] �ɂ� "%RootDrive%\My Documents" �𐄏����܂��B
  73. Echo.
  74. Pause
  75. Rem #########################################################################
  76. Echo.
  77. Echo Project 95 �������ɍ쓮���邽�߂ɂ́A���݃��O�I�����Ă���
  78. Echo ���[�U�[�̓A�v���P�[�V���������s�����O�ɁA�������񃍃O�I�t����
  79. Echo �����ēx���O�I�������K�v�������܂��B
  80. Echo.
  81. Echo Microsoft Project 95 �̃}���`���[�U�[ �A�v���P�[�V�����‹��ݒ肪�������܂����B
  82. Pause
  83. :Done