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.

129 lines
3.9 KiB

  1. @echo off
  2. Rem
  3. Rem #########################################################################
  4. Rem
  5. Rem Get the installation location of Lotus Wordpro 9 from the registry.
  6. Rem
  7. ..\ACRegL "%Temp%\wordpro.Cmd" WP "HKLM\Software\Lotus\Wordpro\98.0" "Path" ""
  8. If Exist "%Temp%\wordpro.Cmd" Call "%Temp%\wordpro.Cmd"
  9. Del "%Temp%\wordpro.Cmd" >Nul: 2>&1
  10. Rem
  11. Rem #########################################################################
  12. Rem
  13. Rem Get the installation location of FreeLance from the registry.
  14. Rem
  15. ..\ACRegL "%Temp%\flance.Cmd" FL "HKLM\Software\Lotus\FreeLance\98.0" "Path" ""
  16. If Exist "%Temp%\flance.Cmd" Call "%Temp%\flance.Cmd"
  17. Del "%Temp%\flance.Cmd" >Nul: 2>&1
  18. Rem
  19. Rem #########################################################################
  20. Rem
  21. Rem Get the installation location of Lotus 123 from the registry.
  22. Rem
  23. ..\ACRegL "%Temp%\123.Cmd" OT "HKLM\Software\Lotus\123\98.0" "Path" ""
  24. If Exist "%Temp%\123.Cmd" Call "%Temp%\123.Cmd"
  25. Del "%Temp%\123.Cmd" >Nul: 2>&1
  26. Rem
  27. Rem #########################################################################
  28. Rem
  29. Rem Get the installation location of Lotus Approach from the registry.
  30. Rem
  31. ..\ACRegL "%Temp%\approach.Cmd" AP "HKLM\Software\Lotus\Approach\97.0" "Path" ""
  32. If Exist "%Temp%\approach.Cmd" Call "%Temp%\approach.Cmd"
  33. Del "%Temp%\approach.Cmd" >Nul: 2>&1
  34. Rem
  35. Rem #########################################################################
  36. Rem
  37. Rem Get the installation location of Lotus Organizer from the registry.
  38. Rem
  39. ..\ACRegL "%Temp%\organize.Cmd" OR "HKLM\Software\Lotus\Organizer\98.0" "Path" ""
  40. If Exist "%Temp%\organize.Cmd" Call "%Temp%\organize.Cmd"
  41. Del "%Temp%\organize.Cmd" >Nul: 2>&1
  42. Rem
  43. Rem #########################################################################
  44. Call "%SystemRoot%\Application Compatibility Scripts\RootDrv.cmd"
  45. if Exist "%RootDrive%\Lotus" Goto Done
  46. cd "%SystemRoot%\Application Compatibility Scripts\Logon"
  47. call TsMkUDir "%RootDrive%\Lotus\Work\123\Auto"
  48. call TsMkUDir "%RootDrive%\Lotus\work\approach"
  49. call TsMkUDir "%RootDrive%\Lotus\work\flg"
  50. call TsMkUDir "%RootDrive%\Lotus\backup\flg"
  51. call TsMkUDir "%RootDrive%\Lotus\work\organize"
  52. call TsMkUDir "%RootDrive%\Lotus\backup\organize"
  53. call TsMkUDir "%RootDrive%\Lotus\work\smartctr"
  54. call TsMkUDir "%RootDrive%\Lotus\work\wordpro"
  55. call TsMkUDir "%RootDrive%\Lotus\backup\wordpro"
  56. Rem If Lotus Wordpro is not installed, skip this step
  57. If "%WP%A" == "A" Goto Skip1
  58. Rem set the registry keys defined in the following files because for some reasons, wordpro doesn't set them
  59. set List1="%WP%expcntx.reg" "%WP%ltsfills.reg" "%WP%ltscorrt.reg" "%WP%lwp4wp.reg" "%WP%lwp4wpex.reg"
  60. set List2="%WP%lwpdca.reg" "%WP%lwphtml.reg" "%WP%lwpimage.reg" "%WP%lwptools.reg"
  61. regedit /s %List1% %List2%
  62. :Skip1
  63. If Not Exist "%RootDrive%\Lotus\123\icons" (
  64. If Exist "%OT%icons" (
  65. call TsMkUDir "%RootDrive%\Lotus\123\icons"
  66. xcopy /E "%OT%icons" "%RootDrive%\Lotus\123\icons" >Nul: 2>&1
  67. )
  68. )
  69. If Not Exist "%RootDrive%\Lotus\approach\icons" (
  70. If Exist "%AP%icons" (
  71. call TsMkUDir "%RootDrive%\Lotus\approach\icons"
  72. xcopy /E "%AP%icons" "%RootDrive%\Lotus\approach\icons" >Nul: 2>&1
  73. )
  74. )
  75. If Not Exist "%RootDrive%\Lotus\organize\icons" (
  76. If Exist "%OR%\icons" (
  77. call TsMkUDir "%RootDrive%\Lotus\organize\icons"
  78. xcopy /E "%OR%\icons" "%RootDrive%\Lotus\organize\icons" >Nul: 2>&1
  79. )
  80. )
  81. If Not Exist "%RootDrive%\Lotus\flg\icons" (
  82. If Exist "%FL%\icons" (
  83. call TsMkUDir "%RootDrive%\Lotus\flg\icons"
  84. xcopy /E "%FL%\icons" "%RootDrive%\Lotus\flg\icons" >Nul: 2>&1
  85. )
  86. )
  87. If Not Exist "%RootDrive%\Lotus\wordpro\icons" (
  88. If Exist "%WP%icons" (
  89. call TsMkUDir "%RootDrive%\Lotus\wordpro\icons"
  90. xcopy /E "%WP%icons" "%RootDrive%\Lotus\wordpro\icons" >Nul: 2>&1
  91. )
  92. )
  93. regedit /s ss9usr.reg
  94. :Done