home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / GE / GE003C.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-07-14  |  3KB  |  87 lines

  1. ECHO OFF
  2. IF %1?==? GO VIEW INSTALL
  3. IF %1==HD GOTO CHKPARM2
  4. IF %1==1D GOTO CHKPARM2
  5. IF %1==2D GOTO CHKPARM2
  6. CLS
  7. ECHO Option "%1" not recognised.
  8. PAUSE
  9. GO DISPLAY NOCLR OPTIONS
  10. :CHKPARM2
  11. IF NOT %2?==? GOTO BEGIN
  12. CLS
  13. ECHO Missing DRIVE ID parm
  14. PAUSE
  15. GO DISPLAY NOCLR OPTIONS
  16. :BEGIN
  17. CLS
  18. ECHO Beginning "%1" installation of the Family History System on drive "%2"
  19. ECHO :
  20. ECHO You should have the three FHS distribution diskettes available, labeled
  21. ECHO "B1", "B2", "B3"  (If you are unsure about this, press CTRL+C to end this
  22. ECHO procedure and then enter: GO VIEW INSTALL)
  23. IF %1==HD GOTO HDCHECK
  24. ECHO :
  25. IF %1==2D GOTO 2DMSG
  26. ECHO You should also have a formatted diskette, labeled STARTUP, to receive
  27. ECHO the FHS program files.
  28. GOTO :HDCHECK
  29. :2DMSG
  30. ECHO You should also have 2 formatted diskettes, labeled STARTUP and REPORT
  31. ECHO to receive the FHS program files.
  32. :HDCHECK
  33. ECHO :
  34. PAUSE
  35. ECHO :
  36. IF %1==HD GOTO HDINSTAL
  37. ECHO If your system has 2 disk drives you should place the STARTUP diskette
  38. ECHO in the "%2" drive at this time.
  39. ECHO :
  40. ECHO If your system has a single diskette drive, wait until prompted to place
  41. ECHO the STARTUP diskette in this drive (which will then be designated the
  42. ECHO "%2" drive).
  43. ECHO During this installation procedure you will be faced with a lot of "disk
  44. ECHO shuffling".  I will try to keep you informed as to which diskettes should
  45. ECHO be in the "A" and "%2" drives, but you should wait until instructed by the
  46. ECHO operating system to switch diskettes in your disk drive.
  47. ECHO :
  48. PAUSE
  49. ECHO :
  50. ECHO I am now going to copy a file to the "%2" drive which will take control
  51. ECHO of the installation process.
  52. ECHO :
  53. COPY FDINSTAL.BAT %2:FHSINSTL.BAT
  54. %2:
  55. FHSINSTL %1 %2
  56. :HDINSTAL
  57. %2:
  58. MD \FAMILY > NUL:
  59. CD \FAMILY
  60. IF NOT EXIST FAMILY.DAT GOTO NEWINSTL
  61. ECHO If you received a message "Unable to create directory", you may ignore it.
  62. ECHO The \FAMILY sub-directory was already on the %2: drive.
  63. ECHO During this RE-installation of the Family History System on your
  64. ECHO drive %2:, the updated program files will be copied into the existing
  65. ECHO sub-directory on that drive.
  66. ECHO :
  67. PAUSE
  68. ECHO :
  69. GOTO COPYPGMS
  70. :NEWINSTL
  71. ECHO A new sub-directory (\FAMILY) has been created on your %2: drive.
  72. ECHO This directory will contain all Family History System files except a
  73. ECHO single batch file (FHS.BAT) which will be created in the main directory
  74. ECHO of the "%2" drive, to be used for starting a Family History session.
  75. ECHO :
  76. CD \
  77. IF EXIST FHS.BAT GOTO COPYPGMS
  78. ECHO>%2:FHS.BAT REM Starting Family History System
  79. ECHO>>%2:FHS.BAT ECHO OFF
  80. ECHO>>%2:FHS.BAT CD \FAMILY
  81. ECHO>>%2:FHS.BAT FAMINIT
  82. ECHO>>%2:FHS.BAT CD \
  83. :COPYPGMS
  84. CD \FAMILY
  85. COPY A:HDINSTAL.BAT %2:FHSINSTL.BAT
  86. FHSINSTL %2
  87.