Setup.bat 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. @echo off
  2. cls
  3. echo Welcome to MSR Federation Client Setup:
  4. echo.
  5. echo.
  6. rem nt not supported at this time
  7. if %OS%.==. goto win95
  8. if %OS%==Windows_NT goto No_NT
  9. :Win95
  10. if not exist %windir%\System\d3drm.dll goto NeedDx5
  11. set DestDir=%1
  12. if "%1"=="" set DestDir=c:\federation
  13. rem need default dir to be the install tree
  14. if not exist setup.bat goto NeedDefaultDir
  15. echo.
  16. deltree %DestDir%
  17. :CreateDir
  18. echo Creating %DestDir%
  19. md %DestDir%
  20. echo Copying Igc.dll
  21. copy Igc.dll %DestDir%
  22. echo RegSvr32'ing Igc.dll
  23. RegSvr32 /s %DestDir%\Igc.dll
  24. echo Copying WinTrek.exe to %DestDir%
  25. copy WinTrek.exe %DestDir%
  26. if exist %windir%\System\Atl.dll goto RegAtlDll
  27. echo Copying Atl.dll to %windir%\System
  28. copy Atl.dll %windir%\System
  29. :RegAtlDll
  30. echo RegSvr32'ing %windir%\System\Atl.dll
  31. RegSvr32 /s %windir%\System\Atl.dll
  32. if exist msvcrt.dll goto RetailMfc
  33. echo Copying MsvCrtD.dll to %windir%\System
  34. copy msvcrtd.dll %windir%\System
  35. goto PostMfc
  36. :RetailMfc
  37. echo Copying MsvCrt.dll to %windir%\System
  38. copy msvcrt.dll %windir%\System
  39. :PostMfc
  40. echo.
  41. echo Install complete.
  42. echo.
  43. goto AllDone
  44. :NeedDefaultDir
  45. echo.
  46. echo.
  47. echo.
  48. echo Usage: When running Setup, the default directory must be set
  49. echo to the release tree.
  50. goto TellAboutArgs
  51. :Usage
  52. echo.
  53. echo.
  54. echo.
  55. echo Usage:
  56. echo.
  57. :TellAboutArgs
  58. echo.
  59. echo Setup <InstallPath>
  60. echo.
  61. echo <InstallPath> should be the path to where you want the game installed.
  62. echo This directory need not exist... but it should be on a writable drive
  63. echo with sufficient free space.
  64. echo.
  65. echo.
  66. echo.
  67. goto AllDone
  68. :No_NT
  69. echo.
  70. echo At this time Windows NT is not a supported platform. Thank you for playing...
  71. echo.
  72. echo.
  73. goto AllDone
  74. :NeedDx5
  75. echo.
  76. echo You MUST install DX5 before you can install the Federation Client.
  77. echo.
  78. echo Also, you should install the 5.0a upgrade as well.
  79. echo.
  80. echo Please Install DX5/0a from http://www.microsoft.com/directx
  81. echo.
  82. goto AllDone
  83. :AllDone