home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / printer / piv101.arc / SETUP.BAT < prev    next >
DOS Batch File  |  1989-05-17  |  5KB  |  104 lines

  1. echo off
  2. rem  ***    PIVOT!    Installation Procedure  ***
  3. if not %1a==a goto num
  4. cls
  5. echo                         ┌───────────────────────────┐
  6. echo                ─────────│    PIVOT!    Installation │─────────
  7. echo                         └───────────────────────────┘
  8. echo                                        *
  9. echo                     ****  ERROR - No Disk Specified  ****
  10. echo                           .........................
  11. echo     The SETUP command must be followed by a drive letter, and if necessary 
  12. echo     by a directory name.  For example, to install    PIVOT!    on a formatted 
  13. echo     floppy disk, place the PIVOT! disk in Drive A, the blank disk in drive 
  14. echo     B, and use the command 
  15. echo                                   SETUP b:
  16. echo     To install the program on drive C in a directory named PIVOT!, place 
  17. echo     the    PIVOT!    disk in drive A, and use the command 
  18. echo                               SETUP C:\PIVOT!
  19. echo                                              :                 
  20. echo                 No trailing backslash  ......:
  21. echo     --------------------------------------------------------------------- 
  22. echo        Please decide which installation you want to use and try again. 
  23. echo     --------------------------------------------------------------------- 
  24. goto finals
  25. :num
  26. if exist PIVOT.exe goto insprog1
  27. :numagn
  28. cls
  29. echo                         ┌───────────────────────────┐
  30. echo                ─────────│    PIVOT!    Installation │─────────
  31. echo                         └───────────────────────────┘
  32. echo                                       *
  33. echo                    **  Error  -  PIVOT! files not Found **          
  34. echo                                       *
  35. echo              The PIVOT! Files are not on the current logged drive.
  36. ECHO       Either place the diskette with the original PIVOT! files in the 
  37. echo       default drive and press  Y  to continue, or press  N  to abort 
  38. echo       the installation process  !!!
  39. echo                                       *
  40. yesno                            Continue 
  41. if not errorlevel=1 goto fin1
  42. :insprog1
  43. if not exist PIVOT.exe goto num
  44. if not exist setup.bat goto numagn
  45. copy setup.bat  %1\setup.bat >nul
  46. if not exist %1\setup.bat goto isnotdir
  47. cls
  48. echo                         ┌───────────────────────────┐
  49. echo                ─────────│    PIVOT!    Installation │─────────
  50. echo                         └───────────────────────────┘
  51. echo                                        *                       
  52. echo                      Installing on:    %1\
  53. echo                      --------------------------------------
  54. echo                      Copying PIVOT.EXE   [Execution Module]     
  55. copy PIVOT.EXE %1\PIVOT.EXE >nul
  56. echo                      Copying GCHAR.EXE   [The Font Editor Module]
  57. copy GCHAR.exe %1\GCHAR.EXE >nul
  58. echo                      Copying the Font Files     
  59. copy *.TRP %1\*.TRP >nul
  60. echo                      Copying the Configuration File      
  61. copy PIVOT.CFG %1\PIVOT.CFG >nul
  62. echo                                        *
  63. if  %2b==b goto thewks
  64. goto copywks
  65. :thewks
  66. cls
  67. echo                         ┌───────────────────────────┐
  68. echo                ─────────│    PIVOT!    Installation │─────────
  69. echo                         └───────────────────────────┘
  70. echo                                       *
  71. echo       Do you also want to copy the sample Worksheet file(s) to the 
  72. echo       specified directory ?  
  73. echo                        Press  Y  to copy the files, or 
  74. echo                        Press  N  to exit to DOS.
  75. yesno                             Select   
  76. if not errorlevel=1 goto fin
  77. :copywks
  78. echo                                        *
  79. echo                      Copying the sample file(s)
  80. copy *.WKS %1\*.WKS >nul
  81. goto fin
  82. :fin1
  83. echo           ******************************************************* 
  84. echo    *****  Abnormal Termination - Working Copy might be incomplete  ******
  85. echo           *******************************************************
  86. goto finals
  87. :isnotdir
  88. echo                         ┌───────────────────────────┐
  89. echo                ─────────│    PIVOT!    Installation │─────────
  90. echo                         └───────────────────────────┘
  91. echo                                        *                       
  92. echo                          Sub-Directory -- %1
  93. echo     The specified sub-directory DOES NOT exist or not specified correctly.
  94. echo              Please create it, use a different one, or respecify.
  95. echo                     (Remember!   No Trailing Backslash) 
  96. echo                                        *                       
  97. goto finals
  98. :fin
  99. echo           ******************************************************* 
  100. echo     *****      Normal Termination - Working Copy Complete        ******
  101. echo           *******************************************************
  102. :finals
  103.  
  104.