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.

118 lines
5.0 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem Verify that %RootDrive% has been configured and set it for this script.
  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. If Exist ..\Logon\SS97Usr.Cmd Goto Skip1
  12. Echo.
  13. Echo Unable to find SS97Usr.Cmd logon script
  14. Echo %Systemroot%\Application Compatibility Scripts\Logon.
  15. Echo.
  16. Echo Lotus SmartSuite 97 Multi-user Application Tuning Terminated.
  17. Echo.
  18. Pause
  19. Goto Done
  20. :Skip1
  21. Rem #########################################################################
  22. FindStr /I SS97Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  23. If Not ErrorLevel 1 Goto Skip2
  24. Echo Call SS97Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  25. :Skip2
  26. Rem #########################################################################
  27. Rem Adjust default registry permissions to allow users to run Smart Suite
  28. regini ssuite97.key > Nul:
  29. Rem Create user registry file to update per user registry keys
  30. Echo Windows Registry Editor Version 5.00 >..\Logon\SS97Usr.reg
  31. Echo. >>..\Logon\SS97Usr.reg
  32. Echo. >>..\Logon\SS97Usr.reg
  33. Echo [HKEY_CURRENT_USER\Software\Lotus\123\97.0\Paths\Work]>>..\Logon\SS97Usr.reg
  34. Echo "EN"="%RootDrive%\\Lotus\\Work\\123\\" >>..\Logon\SS97Usr.reg
  35. Echo. >>..\Logon\SS97Usr.reg
  36. Echo [HKEY_CURRENT_USER\Software\Lotus\Approach\97.0\Paths\Work]>>..\Logon\SS97Usr.reg
  37. Echo "EN"="%RootDrive%\\Lotus\\work\\approach\\">>..\Logon\SS97Usr.reg
  38. Echo. >>..\Logon\SS97Usr.reg
  39. Echo [HKEY_CURRENT_USER\Software\Lotus\Freelance\97.0\Freelance Graphics]>>..\Logon\SS97Usr.reg
  40. Echo "Working Directory"="%RootDrive%\\Lotus\\work\\flg\\">>..\Logon\SS97Usr.reg
  41. Echo "Backup Directory"="%RootDrive%\\Lotus\\backup\\flg\\">>..\Logon\SS97Usr.reg
  42. Echo. >>..\Logon\SS97Usr.reg
  43. Echo [HKEY_CURRENT_USER\Software\Lotus\Organizer\97.0\Paths]>>..\Logon\SS97Usr.reg
  44. Echo "OrganizerFiles"="%RootDrive%\\Lotus\\work\\organize">>..\Logon\SS97Usr.reg
  45. Echo "Backup"="%RootDrive%\\Lotus\\backup\\organize">>..\Logon\SS97Usr.reg
  46. Echo. >>..\Logon\SS97Usr.reg
  47. Echo [HKEY_CURRENT_USER\Software\Lotus\WordPro\97.0\Paths\Backup]>>..\Logon\SS97Usr.reg
  48. Echo "EN"="%RootDrive%\\Lotus\\backup\\wordpro\\">>..\Logon\SS97Usr.reg
  49. Echo. >>..\Logon\SS97Usr.reg
  50. Echo [HKEY_CURRENT_USER\Software\Lotus\WordPro\97.0\Paths\Work]>>..\Logon\SS97Usr.reg
  51. Echo "EN"="%RootDrive%\\Lotus\\work\\wordpro\\">>..\Logon\SS97Usr.reg
  52. Echo. >>..\Logon\SS97Usr.reg
  53. Echo [HKEY_CURRENT_USER\Software\Lotus\Components\Spell\4.0]>> ..\Logon\ss97usr.reg
  54. Echo "Multi User Path"="%RootDrive%\\Lotus" >> ..\Logon\ss97usr.reg
  55. Echo. >> ..\Logon\ss97usr.reg
  56. Echo [HKEY_CURRENT_USER\Software\Lotus\SmartCenter\97.0]>>..\Logon\ss97usr.reg
  57. Echo "Configure"=dword:00000001>>..\Logon\ss97usr.reg
  58. Echo [HKEY_CURRENT_USER\Software\Lotus\SmartCenter\97.0\Paths\Work]>>..\Logon\ss97usr.reg
  59. Echo "EN"="%RootDrive%\\Lotus\\Work\\SmartCtr">>..\Logon\ss97usr.reg
  60. Echo. >>..\Logon\ss97usr.reg
  61. Echo [HKEY_CURRENT_USER\Software\Lotus\123\97.0\Paths\SmartIcons]>>..\Logon\ss97usr.reg
  62. Echo "EN"="%RootDrive%\\Lotus\\123\\icons\\">>..\Logon\ss97usr.reg
  63. Echo. >>..\Logon\ss97usr.reg
  64. Echo [HKEY_CURRENT_USER\Software\Lotus\Approach\97.0\Paths\Icons]>>..\Logon\ss97usr.reg
  65. Echo "EN"="%RootDrive%\\Lotus\\approach\\icons\\">>..\Logon\ss97usr.reg
  66. Echo. >>..\Logon\ss97usr.reg
  67. Echo [HKEY_CURRENT_USER\Software\Lotus\Freelance\97.0\Paths\Icons]>>..\Logon\ss97usr.reg
  68. Echo "EN"="%RootDrive%\\Lotus\\flg\\icons\\">>..\Logon\ss97usr.reg
  69. Echo. >>..\Logon\ss97usr.reg
  70. Echo [HKEY_CURRENT_USER\Software\Lotus\Organizer\97.0\Paths]>>..\Logon\ss97usr.reg
  71. Echo "SmartIcons"="%RootDrive%\\Lotus\\organize\\icons">>..\Logon\ss97usr.reg
  72. Echo. >>..\Logon\ss97usr.reg
  73. Echo [HKEY_CURRENT_USER\Software\Lotus\WordPro\97.0\Paths\SmartIcons]>>..\Logon\ss97usr.reg
  74. Echo "EN"="%RootDrive%\\Lotus\\wordpro\\icons\\">>..\Logon\ss97usr.reg
  75. Echo. >>..\Logon\ss97usr.reg
  76. Rem #########################################################################
  77. Echo Lotus SmartSuite 97 Multi-user Application Tuning Complete
  78. Rem
  79. Rem Get the permission compatibility mode from the registry.
  80. Rem If TSUserEnabled is 0 we need to warn user to change mode.
  81. Rem
  82. ..\ACRegL "%Temp%\tsuser.Cmd" TSUSERENABLED "HKLM\System\CurrentControlSet\Control\Terminal Server" "TSUserEnabled" ""
  83. If Exist "%Temp%\tsuser.Cmd" (
  84. Call "%Temp%\tsuser.Cmd"
  85. Del "%Temp%\tsuser.Cmd" >Nul: 2>&1
  86. )
  87. If NOT %TSUSERENABLED%==0 goto SkipWarning
  88. Echo.
  89. Echo IMPORTANT!
  90. Echo Terminal Server is currently running in Default Security mode.
  91. Echo This application requires the system to run in Relaxed Security mode
  92. Echo (permissions compatible with Terminal Server 4.0).
  93. Echo Use Terminal Services Configuration to view and change the Terminal
  94. Echo Server security mode.
  95. Echo.
  96. :SkipWarning
  97. Pause
  98. :Done