home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / dbase / bbpv3.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-08-21  |  3KB  |  99 lines

  1. echo off
  2. cls
  3. if %1a == a goto noDrive
  4. if %1 == a: goto start
  5. if %1 == A: goto start
  6. if %1 == b: goto start
  7. if %1 == B: goto start
  8. if %1 == c: goto start
  9. if %1 == C: goto start
  10. if %1 == d: goto start
  11. if %1 == D: goto start
  12. if %1 == e: goto start
  13. if %1 == E: goto start
  14. if %1 == f: goto start
  15. if %1 == F: goto start
  16. goto wrongdrive
  17. :start
  18.  
  19. echo ╔═══════════════════════════════════════════════════════════════════════╗
  20. echo ║                            RanKel Software                            ║
  21. echo ║                  Black Book Plus Installation program                 ║
  22. echo ║                                                                       ║
  23. echo ║  This will create a directory called %1\BBPV3  on your disk, and      ║
  24. echo ║  will install Black Book Plus in that directory.  If you don't        ║
  25. echo ║  wish to install Black Book Plus at this time press Ctrl+Break.       ║
  26. echo ╚═══════════════════════════════════════════════════════════════════════╝
  27. pause
  28. rem    create \BBPV3 on the current drive.
  29. echo  
  30. echo Creating directory %1\BBPV3
  31. if exist %1\BBPV3\*.* goto direxists
  32. md %1\BBPV3
  33. rem   make sure current drive contains the program disk
  34. :1
  35. if exist install.bat goto 2
  36. echo  
  37. echo Make sure you are in the Drive and Directory that contains your new
  38. echo Black Book Plus files!
  39. goto errorDone
  40. :2
  41. rem    copy program files
  42. echo  
  43. echo Copying Black Book Plus files..........
  44. copy BBPV3.EXE %1\BBPV3
  45. copy BBPV3.DOC %1\BBPV3
  46. copy BBPV3.PIF %1\BBPV3
  47. copy BBPV3.ICO %1\BBPV3
  48. copy REGISTER.DOC %1\BBPV3
  49. copy VENDOR.DOC %1\BBPV3
  50. copy INSTALL.BAT %1\BBPV3
  51. if not exist %1\BBPV3\BBPV3.EXE goto installationError
  52. rem    installation was successful!
  53. :installDone
  54. cd %1\BBPV3
  55. echo  
  56. echo Black Book Plus is now installed on your hard disk.
  57. echo  
  58. echo To run type "BBPV3" now.  To load as a TSR program
  59. echo type "BBPV3 /L" now.
  60. echo  
  61. %1
  62. goto done
  63. rem    no drive letter followed by a colon.
  64. :noDrive
  65. echo  
  66. echo Installation Error:  To install Black Book Plus on your hard disk, you
  67. echo must specify the drive to install Black Book Plus onto.  For example,
  68. echo to install Black Book Plus on drive C, type "INSTALL C:" and press Enter.
  69. goto errorDone
  70. rem    user specified invalid drive letter.
  71. :wrongdrive
  72. echo  
  73. echo Installation Error: The hard drive letter must be a letter from A to F,
  74. echo and must be followed by a colon.  For example, "INSTALL C:" will install
  75. echo Black Book Plus on drive C.
  76. goto errorDone
  77. rem    general installation error.
  78. :installationError
  79. echo  
  80. echo Installation Error: Perhaps there isn't enough space on your hard disk.
  81. echo Black Book Plus installation requires at least 360k free space.
  82. goto errorDone
  83. rem    \BBPV3 dir already exists.
  84. :direxists
  85. echo  
  86. echo ********************************************************************** 
  87. echo Installation Error: The \BBPV3 directory already exists on this drive.
  88. echo  
  89. echo You should copy the existing files to another disk or directory,
  90. echo then try installing again.
  91. echo  
  92. echo **********************************************************************
  93. goto errorDone
  94. rem    goto here after an error is detected, to print a message and exit.
  95. :errorDone
  96. echo  
  97. echo Black Book Plus was not installed correctly.
  98. :done
  99.