home *** CD-ROM | disk | FTP | other *** search
/ Big Blue Disk 20 / bbd20.zip / SETUP.BAT < prev    next >
DOS Batch File  |  1988-02-02  |  5KB  |  113 lines

  1. echo off
  2. cls
  3. rem SETUP.BAT
  4. rem EasyMenu Installation Procedure
  5. rem (C) 1986-88 by EasyMenu Publishing
  6. rem %1 = A to H
  7. if "%1"=="" install
  8. if not exist AUTOEXEC.NEW goto newdir
  9. :start
  10. echo Checking for old files . . . IGNORE "file not found" MESSAGE(S)
  11. del %1:\control.com > NUL
  12. del %1:\password.com > NUL
  13. cls
  14. echo ┌ Drive %1: INSTALL in progress ───────────────────────────────────────────┐
  15. echo │                                                                         │
  16. echo │  WORKING . . .                                                          │
  17. echo │                                                                         │
  18. echo └─────────────────────────────────────────────────────────────────────────┘
  19. echo copying UTILITIES to %1:\
  20. rem *** *.COM ****
  21. copy capsoff.com %1:\ > NUL
  22. copy capson.com %1:\ > NUL
  23. copy control.exe %1:\ > NUL
  24. copy noboot.com %1:\ > NUL
  25. copy numoff.com %1:\ > NUL
  26. copy numon.com %1:\ > NUL
  27. copy password.exe %1:\ > NUL
  28. copy prtscoff.com %1:\ > NUL
  29. copy prtscon.com %1:\ > NUL
  30. copy yesboot.com %1:\ > NUL
  31. rem *** REBOOT FILES ***
  32. copy autoexec.new %1:\ > NUL
  33. copy config.new %1:\ > NUL
  34. rem *** BIOGEN ***
  35. if exist BIOGEN.EXE copy BIOGEN.EXE %1:\ > NUL
  36. rem
  37. :usertype
  38. cls
  39. echo ┌ Install on DRIVE %1: ────────────────────────────────────────────────────┐
  40. echo │                                                                         │
  41. echo │  Do you already use EasyMenu (tm)?                                      │
  42. echo │                                                                         │
  43. echo └─────────────────────────────────────────────────────────────────────────┘
  44. echo  
  45. echo          ╔════╗       ╔══════════════════════════════════════════╗
  46. echo          ║ N  ║       ║ No.  Install Sample Menus.               ║
  47. echo          ╚════╝       ╚══════════════════════════════════════════╝
  48. echo          ┌────┐       ┌──────────────────────────────────────────┐
  49. echo          │ Y  │       │ Yes.  Update Program Only.               │
  50. echo          └────┘       └──────────────────────────────────────────┘
  51. echo          ┌────┐       ┌──────────────────────────────────────────┐
  52. echo          │ Q  │       │ Quit to INSTALL menu                     │
  53. echo          └────┘       └──────────────────────────────────────────┘
  54. echo  
  55. ask NYQ
  56. cls
  57. if errorlevel 3 goto aborted
  58. if errorlevel 2 goto update
  59. if errorlevel 1 goto auto
  60. :auto
  61. echo ┌ Auto Start ─────────────────────────────────────────────────────────────┐
  62. echo │                                                                         │
  63. echo │  Start EasyMenu when you turn on the power?                             │
  64. echo │                                                                         │
  65. echo └─────────────────────────────────────────────────────────────────────────┘
  66. echo  
  67. echo          ┌────┐       ┌──────────────────────────────────────────┐
  68. echo          │ N  │       │ No                                       │
  69. echo          └────┘       └──────────────────────────────────────────┘
  70. echo          ╔════╗       ╔══════════════════════════════════════════╗
  71. echo          ║ Y  ║       ║ Yes, modify %1:\AUTOEXEC.BAT              ║
  72. echo          ╚════╝       ╚══════════════════════════════════════════╝
  73. echo  
  74. ask YNQ
  75. cls
  76. if errorlevel 3 goto aborted
  77. if errorlevel 2 goto newuser
  78. rem *** ADD TO AUTOEXEC.BAT ***
  79. echo %1:\AUTOEXEC.BAT saved as %1:\AUTOEXEC.SAV
  80. copy %1:\autoexec.bat %1:\autoexec.sav > NUL
  81. echo modifying %1:\AUTOEXEC.BAT, to start EasyMenu at POWER-ON
  82. copy %1:\autoexec.bat + autoexec.add = %1:\autoexec.bat > NUL
  83. rem
  84. :newuser
  85. rem
  86. rem NEWDIR is skipped by calling COPYFILE.BAT
  87. COPYFILE %1 \EASYMENU
  88. rem
  89. :update
  90. rem
  91. rem NEWDIR is skipped by calling COPYFILE.BAT, with UPDATE option
  92. COPYFILE %1 \EASYMENU UPDATE
  93. rem
  94. :newdir
  95. rem
  96. cls
  97. echo ┌ Directory to INSTALL for DRIVE %1: ──────────────────────────────────────┐
  98. echo │                                                                         │
  99. echo │  Enter directory name, 1 to 8 letters                                   │
  100. echo │  Enter Q to quit.                                                       │
  101. echo │                                                                         │
  102. echo └─────────────────────────────────────────────────────────────────────────┘
  103. echo  
  104. rem *** WRITES setup procedure in TEMP.BAT, errorlevel 1 ***
  105. swapdir %1
  106. cls
  107. if errorlevel 2 goto aborted
  108. rem *** temp.bat = COPYFILE %1 InstallDirectory
  109. temp
  110. :aborted
  111. install
  112. :done
  113.