home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / eb_005g2.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1999-06-26  |  4KB  |  115 lines

  1. @ECHO OFF
  2. ECHO -------------------------------------------------------------------
  3. ECHO │      INSTALL.BAT - Basic installation routine for EleBBS.       │
  4. ECHO -------------------------------------------------------------------
  5. ECHO.
  6.  
  7. ECHO.
  8. ECHO ■ This installation routine is only meant for people performing a fresh
  9. ECHO   install of EleBBS. If you already have an existing RemoteAccess/tcRA32
  10. ECHO   or EleBBS installation, please press CTRL-C now to abort this
  11. ECHO   installation batch. Any other key to continue with installation.
  12. PAUSE >NUL
  13.  
  14. REM Make sure there was an drive specified on the commandline
  15. if "%1" == "" GOTO NOPATH
  16. if "%2" == "" GOTO NOUNPACK
  17.  
  18. REM Make sure all files exist before proceeding with install
  19. IF NOT EXIST DOC.ZIP GOTO MISSING
  20. IF NOT EXIST BIN.ZIP GOTO MISSING
  21. IF NOT EXIST SAMPLES.ZIP GOTO MISSING
  22. IF EXIST %1\ELE GOTO DIREXIST
  23. IF NOT EXIST %2 GOTO NOPACKER
  24.  
  25. ECHO.
  26. ECHO ■ Creating installation paths (%1)
  27. ECHO   └─ Creating system path %1\ELE
  28. MKDIR %1\ELE >NUL
  29. ECHO   └─ Creating textfiles path %1\ELE\TXTFILES
  30. MKDIR %1\ELE\TXTFILES >NUL
  31. ECHO   └─ Creating messagebase path %1\ELE\MSGBASE
  32. MKDIR %1\ELE\MSGBASE >NUL
  33. ECHO   └─ Creating menufiles path %1\ELE\MENUS
  34. MKDIR %1\ELE\MENUS >NUL
  35. ECHO   └─ Creating questionnaire (script) path %1\ELE\QUESTION
  36. MKDIR %1\ELE\QUESTION >NUL
  37. ECHO   └─ Creating documentation path %1\ELE\DOC
  38. MKDIR %1\ELE\DOC >NUL
  39. ECHO   └─ Creating samples path %1\ELE\SAMPLE
  40. MKDIR %1\ELE\SAMPLE >NUL
  41. ECHO ■ Unpacking packages (using %2)
  42. ECHO   └─ Unpacking DOC.ZIP into %1\ELE\
  43. %2 DOC.ZIP %1\ELE\DOC\ >NUL
  44. ECHO   └─ Unpacking BIN.ZIP into %1\ELE\
  45. %2 BIN.ZIP %1\ELE\ >NUL
  46. ECHO   └─ Unpacking SAMPLES.ZIP into %1\ELE\SAMPLE\
  47. %2 SAMPLES.ZIP %1\ELE\SAMPLE\ >NUL
  48. ECHO ■ Installing configuration files (using %2)
  49. ECHO   └─ Unpacking SAMPLE2.ZIP into %1\ELE\MENUS\
  50. %2 %1\ELE\SAMPLE\SAMPLE2.ZIP %1\ELE\MENUS\ >NUL
  51. ECHO      └─ Moving template ANSI to example directory
  52. COPY %1\ELE\MENUS\TEMPLATE.ANS %1\ELE\TXTFILES >NUL
  53. ERASE %1\ELE\MENUS\TEMPLATE.ANS >NUL
  54. ECHO      └─ Copying ELEBBS.ANS as LOGO.ANS
  55. COPY %1\ELE\DOC\ELEBBS.ANS %1\ELE\TXTFILES\LOGO.ANS >NUL
  56. ECHO      └─ Copying READ.ME to %1\ELE\DOC
  57. COPY READ.ME.* %1\ELE\DOC >NUL
  58. ECHO      └─ Copying UPGRADE to %1\ELE\DOC
  59. COPY UPGRADE.* %1\ELE\DOC >NUL
  60. ECHO   └─ Unpacking EXCFG.ZIP into %1\ELE
  61. %2 %1\ELE\SAMPLE\EXCFG %1\ELE >NUL
  62. ECHO ■ Copying of files finished. Press any key to continue . . .
  63. PAUSE >NUL
  64. CLS
  65. ECHO.
  66. ECHO Installation of EleBBS finished. Please configure an environment variable
  67. ECHO of ELEBBS set to %1\ELE. For help on how to do this consult your operating
  68. ECHO system manual. (eg: SET ELEBBS=%1\ELE\)
  69. ECHO.
  70. ECHO.
  71. ECHO You can now configure your EleBBS by running ELCONFIG, or you can fire
  72. ECHO up EleBBS into localmode by typing in:
  73. ECHO ELEBBS -L
  74. ECHO.
  75. ECHO Have fun!
  76. %1
  77. CD \ELE
  78. GOTO QUIT
  79.  
  80. :NOPACKER
  81. ECHO.
  82. ECHO ■ The un-archiver you have defined does not exist, installation aborted.
  83. GOTO QUIT
  84.  
  85. :MISSING
  86. ECHO.
  87. ECHO ■ Missing files on this path. Make sure all files exist and try again.
  88. GOTO QUIT
  89.  
  90. :DIREXIST
  91. ECHO.
  92. ECHO ■ Destination directory does already exist. Please do not perform this
  93. ECHO   upgrade but simply unpack all the EXE's and OVR's into %1\ELE.
  94. GOTO QUIT
  95.  
  96. :NOUNPACK
  97. ECHO.
  98. ECHO ■ Missing unpacker path at second parameter.
  99. ECHO ■ Usage: INSTALL.BAT [Installation drive] [Unpack filename]
  100. ECHO ■ Example: INSTALL.BAT C: C:\COMPRESS\UNZIP.EXE
  101. ECHO ■ ** DO NOT USE AN TRAILING BACKSLASH **
  102. GOTO QUIT
  103.  
  104. :NOPATH
  105. ECHO.
  106. ECHO ■ Missing destination path on first parameter.
  107. ECHO ■ Usage: INSTALL.BAT [Installation drive] [Unpack filename]
  108. ECHO ■ Example: INSTALL.BAT C: C:\COMPRESS\UNZIP.EXE
  109. ECHO ■ ** DO NOT USE AN TRAILING BACKSLASH **
  110. GOTO QUIT
  111.  
  112. :QUIT
  113. ECHO ■ Installation ended.
  114. ECHO.
  115.