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.

73 lines
2.0 KiB

  1. @Echo off
  2. Rem
  3. Rem ���û�����Ŀ¼��ΪӦ�ó�����������
  4. Rem ����Ŀ¼��
  5. Rem
  6. call TsMkUDir "%RootDrive%\Office43"
  7. call TsMkUDir "%RootDrive%\Office43\Access"
  8. call TsMkUDir "%RootDrive%\Office43\Winword"
  9. Rem �����Ѿ����ڣ��� Normal.dot �� Winword.opt ɾ����
  10. If Not Exist "#OFC43INST#\Winword\Normal.dot" Goto cont0
  11. Del /F /Q "#OFC43INST#\Winword\Normal.dot" > NUL: 2>&1
  12. :cont0
  13. If Not Exist "#OFC43INST#\Winword\Winword.opt" Goto cont1
  14. Del /F /Q "#OFC43INST#\Winword\Winword.opt" > NUL: 2>&1
  15. :cont1
  16. Rem
  17. Rem Ϊ Access Wizards �����ļ���
  18. Rem
  19. If Exist "%RootDrive%\Office43\Access\wztable.mda" Goto skip1
  20. If Not Exist "#OFC43INST#\Access\wztable.mda" Goto skip1
  21. copy "#OFC43INST#\Access\wztable.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
  22. :skip1
  23. If Exist "%RootDrive%\Office43\Access\wzlib.mda" Goto skip2
  24. If Not Exist "#OFC43INST#\Access\wzlib.mda" Goto skip2
  25. copy "#OFC43INST#\Access\wzlib.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
  26. :skip2
  27. If Exist "%RootDrive%\Office43\Access\wzbldr.mda" Goto skip3
  28. If Not Exist "#OFC43INST#\Access\wzbldr.mda" Goto skip3
  29. copy "#OFC43INST#\Access\wzbldr.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
  30. :skip3
  31. Rem
  32. Rem Ϊÿ���û������Զ����ʵ��ļ���
  33. Rem
  34. If Exist "%RootDrive%\Office43\Custom.dic" Goto skip4
  35. If Not Exist "%SystemRoot%\Msapps\Proof\Custom.dic" Goto skip4
  36. copy "%SystemRoot%\Msapps\Proof\Custom.dic" "%RootDrive%\Office43" > NUL: 2>&1
  37. :skip4
  38. Rem
  39. Rem �� Access ѡ���ļ����Ƶ��û��� Office Ŀ¼
  40. Rem
  41. If Exist "%RootDrive%\Office43\Access\System.mda" Goto skip5
  42. If Not Exist "#OFC43INST#\Access\System.mda" Goto skip5
  43. copy "#OFC43INST#\Access\System.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
  44. :skip5
  45. Rem
  46. Rem Ϊ��չ������ע�����ע����ӳ���޷�ִ������������
  47. If Exist "%RootDrive%\Windows\Ofc43usr.dmy" Goto skip6
  48. regini ofc43usr.key > NUL:
  49. copy NUL: "%RootDrive%\Windows\Ofc43usr.dmy" > NUL: 2>&1
  50. attrib +h "%RootDrive%\Windows\Ofc43usr.dmy" > NUL: 2>&1
  51. :skip6