home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 1.ddi / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-11-25  |  2.5 KB  |  52 lines

  1. @echo off
  2. if not exist %0t.com goto wrong
  3. if not exist %01.dat goto wrong
  4. if not "%1" == "" goto wrong
  5. if exist install1.dat goto wrong
  6. echo ┌────────────────────────────────────────────────────────────────────────┐
  7. echo │                                                                        │
  8. echo │        MetaWare High C Locally Optimizing Compiler Installation.       │
  9. echo │                                                                        │
  10. echo └────────────────────────────────────────────────────────────────────────┘
  11.  
  12. echo dummy > install1.bat
  13. if exist %01.bat goto unsafe2
  14. if not exist install1.bat goto unsafe
  15. del install1.bat
  16. %0t **;%01.dat;install1.bat;4500=%0=
  17. if errorlevel 1 goto finis
  18. install1
  19. goto finis
  20.  
  21. :wrong
  22. echo ┌────────────────────────────────────────────────────────────────────────┐
  23. echo │                                                                        │
  24. echo │   The install command was not entered correctly. Please re-enter it    │
  25. echo │   in this form for installing from the a: disk drive -                 │
  26. echo │        a:install                                                       │
  27. echo │   or in this form for installing from the b: disk drive -              │
  28. echo │        b:install                                                       │
  29. echo │   The current (default) disk should be your hard disk, and the         │
  30. echo │   current directory is where High C will be installed.                 │
  31. echo │                                                                        │
  32. echo │                                                                        │
  33. echo │   You can make any directory current with these commands:              │
  34. echo │       x:          to select the drive where the compiler will install. │
  35. echo │       mkdir \dir-name        to create the directory for the compiler. │
  36. echo │       chdir \dir-name        to make this the current directory.       │
  37. echo │                                                                        │
  38. echo │                                                                        │
  39. echo └────────────────────────────────────────────────────────────────────────┘
  40. goto finis
  41.  
  42. :unsafe2
  43. del install1.bat
  44. :unsafe
  45. echo 
  46. echo │  THE TARGET DISK IS THE SAME AS THE DISTRIBUTION DISK! INSTALLATION HALTED
  47. echo │  The target disk (the current drive) is the same drive as the distribution
  48. echo │  diskette.  You MUST run this installation program from the drive and
  49. echo │  directory in which you wish the compiler to be installed.
  50.  
  51. :finis
  52.