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.

141 lines
5.6 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem Get the installation location of Lotus Wordpro 9 from the registry.
  5. Rem
  6. ..\ACRegL "%Temp%\wordpro.Cmd" WP "HKLM\Software\Lotus\Wordpro\98.0" "Path" ""
  7. Call "%Temp%\wordpro.Cmd"
  8. Del "%Temp%\wordpro.Cmd" >Nul: 2>&1
  9. Rem #########################################################################
  10. Rem
  11. Rem Verify that %RootDrive% has been configured and set it for this script.
  12. Rem
  13. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  14. If "%_CHKROOT%" == "FAIL" Goto Done
  15. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  16. If "%_SETPATHS%" == "FAIL" Goto Done
  17. Rem #########################################################################
  18. If Exist ..\Logon\SS9Usr.Cmd Goto Skip1
  19. Echo.
  20. Echo Unable to find SS9Usr.Cmd logon script
  21. Echo %Systemroot%\Application Compatibility Scripts\Logon.
  22. Echo.
  23. Echo Lotus SmartSuite 9 Multi-user Application Tuning Terminated.
  24. Echo.
  25. Pause
  26. Goto Done
  27. :Skip1
  28. Rem #########################################################################
  29. FindStr /I SS9Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  30. If Not ErrorLevel 1 Goto Skip2
  31. Echo Call SS9Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  32. :Skip2
  33. Rem #########################################################################
  34. Rem If Lotus Wordpro is not installed, skip this step
  35. If "%WP%A" == "A" Goto Skip3
  36. Rem set the registry keys defined in the following files because for some reasons, wordpro doesn't set them
  37. set List="%WP%\lwp.reg" "%WP%\lwpdcaft.reg" "%WP%\lwplabel.reg" "%WP%\lwptls.reg"
  38. regedit /s %List%
  39. :Skip3
  40. Rem Create user registry file to update per user registry keys
  41. Echo Windows Registry Editor Version 5.00 >..\Logon\ss9usr.reg
  42. Echo. >>..\Logon\ss9usr.reg
  43. Echo. >>..\Logon\ss9usr.reg
  44. Echo [HKEY_CURRENT_USER\Software\Lotus\123\98.0\Paths\Work]>>..\Logon\ss9usr.reg
  45. Echo "EN"="%RootDrive%\\Lotus\\Work\\123\\" >>..\Logon\ss9usr.reg
  46. Echo. >>..\Logon\ss9usr.reg
  47. Echo [HKEY_CURRENT_USER\Software\Lotus\123\98.0\Paths\AutoOpen]>>..\Logon\ss9usr.reg
  48. Echo @="%RootDrive%\\Lotus\\Work\\123\\Auto\\" >>..\Logon\ss9usr.reg
  49. Echo. >>..\Logon\ss9usr.reg
  50. Echo [HKEY_CURRENT_USER\Software\Lotus\Approach\97.0\Paths\Work]>>..\Logon\ss9usr.reg
  51. Echo "EN"="%RootDrive%\\Lotus\\work\\approach\\">>..\Logon\ss9usr.reg
  52. Echo. >>..\Logon\ss9usr.reg
  53. Echo [HKEY_CURRENT_USER\Software\Lotus\Freelance\98.0\Freelance Graphics]>>..\Logon\ss9usr.reg
  54. Echo "Working Directory"="%RootDrive%\\Lotus\\work\\flg\\">>..\Logon\ss9usr.reg
  55. Echo "Backup Directory"="%RootDrive%\\Lotus\\backup\\flg\\">>..\Logon\ss9usr.reg
  56. Echo. >>..\Logon\ss9usr.reg
  57. Echo [HKEY_CURRENT_USER\Software\Lotus\Organizer\98.0\Paths]>>..\Logon\ss9usr.reg
  58. Echo "OrganizerFiles"="%RootDrive%\\Lotus\\work\\organize">>..\Logon\ss9usr.reg
  59. Echo "Backup"="%RootDrive%\\Lotus\\backup\\organize">>..\Logon\ss9usr.reg
  60. Echo. >>..\Logon\ss9usr.reg
  61. Echo [HKEY_CURRENT_USER\Software\Lotus\WordPro\98.0\Paths\Backup]>>..\Logon\ss9usr.reg
  62. Echo "EN"="%RootDrive%\\Lotus\\backup\\wordpro\\">>..\Logon\ss9usr.reg
  63. Echo. >>..\Logon\ss9usr.reg
  64. Echo [HKEY_CURRENT_USER\Software\Lotus\WordPro\98.0\Paths\Work]>>..\Logon\ss9usr.reg
  65. Echo "EN"="%RootDrive%\\Lotus\\work\\wordpro\\">>..\Logon\ss9usr.reg
  66. Echo. >>..\Logon\ss9usr.reg
  67. Echo [HKEY_CURRENT_USER\Software\Lotus\Components\Spell\4.1]>> ..\Logon\ss9usr.reg
  68. Echo "Multi User Path"="%RootDrive%\\Lotus" >> ..\Logon\ss9usr.reg
  69. Echo. >> ..\Logon\ss9usr.reg
  70. Echo [HKEY_CURRENT_USER\Software\Lotus\SmartCenter\98.0]>>..\Logon\ss9usr.reg
  71. Echo "Configure"=dword:00000001>>..\Logon\ss9usr.reg
  72. Echo [HKEY_CURRENT_USER\Software\Lotus\SmartCenter\98.0\Paths\Work]>>..\Logon\ss9usr.reg
  73. Echo "EN"="%RootDrive%\\Lotus\\Work\\SmartCtr">>..\Logon\ss9usr.reg
  74. Echo. >>..\Logon\ss9usr.reg
  75. Echo [HKEY_CURRENT_USER\Software\Lotus\123\98.0\Paths\SmartIcons]>>..\Logon\ss9usr.reg
  76. Echo "EN"="%RootDrive%\\Lotus\\123\\icons\\">>..\Logon\ss9usr.reg
  77. Echo. >>..\Logon\ss9usr.reg
  78. Echo [HKEY_CURRENT_USER\Software\Lotus\Approach\97.0\Paths\Icons]>>..\Logon\ss9usr.reg
  79. Echo "EN"="%RootDrive%\\Lotus\\approach\\icons\\">>..\Logon\ss9usr.reg
  80. Echo. >>..\Logon\ss9usr.reg
  81. Echo [HKEY_CURRENT_USER\Software\Lotus\Freelance\98.0\Paths\Icons]>>..\Logon\ss9usr.reg
  82. Echo "EN"="%RootDrive%\\Lotus\\flg\\icons\\">>..\Logon\ss9usr.reg
  83. Echo. >>..\Logon\ss9usr.reg
  84. Echo [HKEY_CURRENT_USER\Software\Lotus\Organizer\98.0\Paths]>>..\Logon\ss9usr.reg
  85. Echo "SmartIcons"="%RootDrive%\\Lotus\\organize\\icons">>..\Logon\ss9usr.reg
  86. Echo. >>..\Logon\ss9usr.reg
  87. Echo [HKEY_CURRENT_USER\Software\Lotus\WordPro\98.0\Paths\SmartIcons]>>..\Logon\ss9usr.reg
  88. Echo "EN"="%RootDrive%\\Lotus\\wordpro\\icons\\">>..\Logon\ss9usr.reg
  89. Echo. >>..\Logon\ss9usr.reg
  90. Rem #########################################################################
  91. Echo Lotus SmartSuite 9 Multi-user Application Tuning Complete
  92. Rem
  93. Rem Get the permission compatibility mode from the registry.
  94. Rem If TSUserEnabled is 0 we need to warn user to change mode.
  95. Rem
  96. ..\ACRegL "%Temp%\tsuser.Cmd" TSUSERENABLED "HKLM\System\CurrentControlSet\Control\Terminal Server" "TSUserEnabled" ""
  97. If Exist "%Temp%\tsuser.Cmd" (
  98. Call "%Temp%\tsuser.Cmd"
  99. Del "%Temp%\tsuser.Cmd" >Nul: 2>&1
  100. )
  101. If NOT %TSUSERENABLED%==0 goto SkipWarning
  102. Echo.
  103. Echo IMPORTANT!
  104. Echo Terminal Server is currently running in Default Security mode.
  105. Echo This application requires the system to run in Relaxed Security mode
  106. Echo (permissions compatible with Terminal Server 4.0).
  107. Echo Use Terminal Services Configuration to view and change the Terminal
  108. Echo Server security mode.
  109. Echo.
  110. :SkipWarning
  111. Pause
  112. :Done