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.

60 lines
1.7 KiB

  1. @Echo Off
  2. Rem
  3. Rem Install Application Compatibility Script for PeachTree Complete
  4. Rem Accounting v6.0
  5. Rem
  6. Rem
  7. Rem #########################################################################
  8. Rem
  9. Rem
  10. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  11. If "%_CHKROOT%" == "FAIL" Goto Done
  12. Rem #########################################################################
  13. REM
  14. REM Add the corresponding logon script to UsrLogn1.cmd
  15. REM
  16. FindStr /I ptr6Usr %SystemRoot%\System32\UsrLogn1.Cmd >Nul: 2>&1
  17. If Not ErrorLevel 1 Goto Skip1
  18. Echo Call ptr6Usr.Cmd >> %SystemRoot%\System32\UsrLogn1.Cmd
  19. :Skip1
  20. Rem #########################################################################
  21. Echo.
  22. Echo To insure proper operation of Peachtree 6.0, users who are
  23. Echo currently logged on must log off and log on again before
  24. Echo running Peachtree Complete Accounting v6.0.
  25. Echo.
  26. Echo PeachTree 6.0 Multi-user Application Tuning Complete
  27. Rem
  28. Rem Get the permission compatibility mode from the registry.
  29. Rem If TSUserEnabled is 0 we need to warn user to change mode.
  30. Rem
  31. ..\ACRegL "%Temp%\tsuser.Cmd" TSUSERENABLED "HKLM\System\CurrentControlSet\Control\Terminal Server" "TSUserEnabled" ""
  32. If Exist "%Temp%\tsuser.Cmd" (
  33. Call "%Temp%\tsuser.Cmd"
  34. Del "%Temp%\tsuser.Cmd" >Nul: 2>&1
  35. )
  36. If NOT %TSUSERENABLED%==0 goto SkipWarning
  37. Echo.
  38. Echo IMPORTANT!
  39. Echo Terminal Server is currently running in Default Security mode.
  40. Echo This application requires the system to run in Relaxed Security mode
  41. Echo (permissions compatible with Terminal Server 4.0).
  42. Echo Use Terminal Services Configuration to view and change the Terminal
  43. Echo Server security mode.
  44. Echo.
  45. :SkipWarning
  46. Pause
  47. :done