home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / S12215.ZIP / INSTALL.BAT next >
DOS Batch File  |  1988-10-07  |  3KB  |  126 lines

  1. echo off
  2. cls
  3. rem  One-shot installation, minimal error checking  --mzu 07/29/88
  4. echo PC-Project   --Copyright 1988, The Whitewater Group, Inc.
  5. echo A Windows 2.x demonstration program written in Actor
  6. echo PC-Project may be freely distributed
  7. echo  
  8. if NOT %1x==x goto c2
  9. :c1
  10. echo Parameters missing or incorrect.  The correct syntax is:
  11. echo  
  12. echo      INSTALL source: target: target:target-pathname
  13. echo  
  14. echo e.g. INSTALL A: C: C:\ACTOR
  15. echo  
  16. echo where
  17. echo  * source: is the floppy drive where the PC-Project system will be
  18. echo    loaded from (such as A: or B:)
  19. echo  * target: is the drive where Actor will be installed (such as C:)
  20. echo  * target:target-pathname is the directory where PC-Project will be
  21. echo    installed (such as C:\ACTOR)
  22. echo  
  23. goto serror
  24. :c2
  25. if %1==a: goto ok1
  26. if %1==A: goto ok1
  27. if %1==b: goto ok1
  28. if %1==B: goto ok1
  29. if %1==c: goto ok1
  30. if %1==C: goto ok1
  31. if %1==d: goto ok1
  32. if %1==D: goto ok1
  33. if %1==e: goto ok1
  34. if %1==E: goto ok1
  35. echo The source: is not A:,B:,C:,D: or E:.
  36. goto c1
  37. :ok1
  38. if NOT %2x==x goto c2a
  39. echo The target: was not specified.
  40. goto c1
  41. :c2a
  42. if %1==a: goto ok2
  43. if %1==A: goto ok2
  44. if %1==b: goto ok2
  45. if %1==B: goto ok2
  46. if %1==c: goto ok2
  47. if %1==C: goto ok2
  48. if %1==d: goto ok2
  49. if %1==D: goto ok2
  50. if %1==e: goto ok2
  51. if %1==E: goto ok2
  52. echo The target: is not A:,B:,C:,D: or E:.
  53. goto c1
  54. :ok2
  55. if NOT %3x==x goto c3
  56. echo The target:target-pathname was not specified.
  57. goto c1
  58. :c3
  59. :c4
  60. rem ...... put messages here ......
  61. echo  
  62. echo The installation of PC-Project will overwrite all files in %3
  63. echo and its subdirectories which have similar names as those on
  64. echo the PC-Project installation disk.  If you do not want to have these
  65. echo files erased, you can exit this installation program at this time
  66. echo with a CONTROL-C (^C) and then back up the files which you want
  67. echo to preserve.  You can then rerun this installation program.
  68. echo  
  69. echo  Note: Ignore any "unable to create directory" error messages
  70. echo  
  71. echo Press CONTROL-C (^C) to ABORT, any other key to continue...
  72. pause >NUL
  73. rem ......... end messages ........
  74. :c5
  75. echo  
  76. echo Creating the PC-Project directory -- %3.
  77. md %3 > nul
  78. echo Changing directory to %3....
  79. %2
  80. cd %3
  81. echo  
  82. echo Copying ZOO.EXE from %1
  83. copy %1zoo.exe > nul
  84. echo  
  85. REM 04/21/88 mzu   uses ZOO xO/ to copy to directories
  86. echo Expanding PC-Project...
  87. zoo xO/ %1project.zoo project.exe
  88. zoo xO/ %1project.zoo project.ima
  89. zoo xO/ %1project.zoo *.prj
  90. zoo xO/ %1project.zoo *.txt
  91. copy %1*.TXT > nul
  92. echo  
  93. echo Please read the files READPROJ.TXT and PMANUAL.TXT for instructions.
  94. echo  
  95. echo Press [Return] to install source code, Ctrl-C to cancel
  96. pause > nul
  97. echo  
  98. echo Creating subdirectories
  99. md CLASSES > nul
  100. md ACT > nul
  101. md RES > nul
  102. echo  
  103. echo Expanding source code...
  104. zoo xO/ %1project.zoo *.cls
  105. zoo xO/ %1project.zoo *.act
  106. zoo xO/ %1project.zoo *.lod
  107. zoo xO/ %1project.zoo *.h
  108. zoo xO/ %1project.zoo *.rc
  109. zoo xO/ %1project.zoo *.ico
  110. :finish
  111. cls
  112. echo  
  113. echo You have now installed PC-Project.  You will be left in the
  114. echo directory from which you can run it.  At the DOS prompt type
  115. echo  
  116. echo       WIN PROJECT (CR)                where (CR) is the Return key
  117. echo  
  118. echo in the current directory -- %3.
  119. echo  
  120. echo Please read the files READPROJ.TXT and PMANUAL.TXT for instructions.
  121. goto :done
  122. :serror
  123. echo  
  124. echo Installation terminated because of errors.
  125. :done
  126.