Source code of Windows XP (NT5)
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.

161 lines
4.7 KiB

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