home *** CD-ROM | disk | FTP | other *** search
/ Sound Sensations! / sound_sensations.iso / demos / mr12demo / install.bat < prev    next >
DOS Batch File  |  1991-02-03  |  2KB  |  65 lines

  1. echo off
  2. cls
  3. echo Installing MIDIFILE READER on %1 drive...
  4. if %1 '=='  goto NOPARM
  5. if not exist %1\NUL goto SYNTAX
  6. if not exist INSTALL.BAT goto NODRIVE
  7. if exist %1\SPARTAN\MR\MR.EXE goto UPDATE
  8. if exist %1\SPARTAN\MR\MR.PRO goto UPDATE
  9. :NEW
  10. echo New installation...
  11. if not exist %1\SPARTAN\NUL mkdir %1\SPARTAN
  12. if not exist %1\SPARTAN\MR\NUL mkdir %1\SPARTAN\MR
  13. if exist MR.EXE copy MR.EXE %1\SPARTAN\MR\MR.EXE
  14. if exist MRDEMO.EXE copy MRDEMO.EXE %1\SPARTAN\MR\MRDEMO.EXE
  15. if exist MR.BAT copy MR.BAT %1\SPARTAN\MR.BAT
  16. if exist MRDEMO.BAT copy MRDEMO.BAT %1\SPARTAN\MRDEMO.BAT
  17. goto OTHER
  18. :UPDATE
  19. echo Update installation...
  20. if exist %1\SPARTAN\MR\MR.EXE copy %1\SPARTAN\MR\MR.EXE %1\SPARTAN\MR\MR-OLD.EXE
  21. if exist %1\SPARTAN\MR\MR.PRO copy %1\SPARTAN\MR\MR.PRO %1\SPARTAN\MR\MR-OLD.PRO
  22. if exist MR.EXE copy MR.EXE %1\SPARTAN\MR\MR.EXE
  23. if exist MRDEMO.EXE copy MRDEMO.EXE %1\SPARTAN\MR\MRDEMO.EXE
  24. if exist MR.BAT copy MR.BAT %1\SPARTAN\MR.BAT
  25. if exist MRDEMO.BAT copy MRDEMO.BAT %1\SPARTAN\MRDEMO.BAT
  26. :OTHER
  27. copy MRDEMO.MFF  %1\SPARTAN\MR
  28. copy MRDEMO.TXT  %1\SPARTAN\MR
  29. copy MR.HLP      %1\SPARTAN\MR
  30. :PROFILE
  31. if exist %1\SPARTAN\MR\MR.PRO echo WARNING***Old profile MR.PRO copied to MR-OLD.PRO...
  32. if %2 '=='     goto GETVIDEO
  33. if %2 == color goto COLOR
  34. if %2 == Color goto COLOR
  35. if %2 == COLOR goto COLOR
  36. goto MONO
  37. :GETVIDEO
  38. getvideo
  39. if errorlevel 1 goto COLOR
  40. if errorlevel 0 goto MONO
  41. goto MONO
  42. :COLOR
  43. echo Installing COLOR profile...
  44. copy MR.PRO %1\SPARTAN\MR\MR.PRO
  45. goto SUCCESS
  46. :MONO
  47. echo Installing MONOCHROME profile...
  48. copy MRMONO.PRO %1\SPARTAN\MR\MR.PRO
  49. goto SUCCESS
  50. :SUCCESS
  51. echo Installation successful...
  52. %1
  53. cd \SPARTAN
  54. goto DONE
  55. :NOPARM
  56. echo Installation failed...(Must specify drive letter)
  57. goto DONE
  58. :NODRIVE
  59. echo Installation failed...(Must make installation drive the current drive)
  60. goto DONE
  61. :SYNTAX
  62. echo Installation failed...(Invalid drive letter?  Specify letter and colon)
  63. goto DONE
  64. :DONE
  65.