home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 4 Drivers / 04-Drivers.zip / xir221.zip / INSTALL.DAT < prev    next >
Text File  |  1994-07-28  |  4KB  |  113 lines

  1. @DefineProject
  2.   @Name = "XL220/221 Device Drivers"
  3.         @Version = "XL221.v1"
  4.   @OutDrive = C
  5.   @Subdir = "\\XL221"
  6. @EndProject
  7.  
  8. @movecstr(2,24,126,"╔═════════════════════════╗")
  9. @movecstr(3,24,126,"║                         ║")
  10. @movecstr(4,24,126,"║                         ║")
  11. @movecstr(5,24,126,"║                         ║")
  12. @movecstr(6,24,126,"╚═════════════════════════╝")
  13. @movecstr(4,25,244,"        SunMoonStar    ")
  14.  
  15. @Display
  16.    @move(11,2)
  17.    This program will install @Name onto your machine.
  18.    You may press the [Esc] key at any time to abort the installation.
  19.  
  20.    @pause
  21. @EndDisplay
  22.  
  23. @GetOutDrive
  24.   Please select the drive where you wish @Name
  25.   to be installed on your machine. 
  26.   @LocalWindow(12,40)
  27. @EndOutDrive
  28.  
  29. @If (@Removable)
  30.    @Display 
  31.       You can't install @Name onto a floppy drive!
  32.    @Pause
  33.    @Abort
  34.    @EndDisplay
  35. @EndIf
  36.  
  37. @GetSubdir
  38.   @LocalWindow(11,40)
  39.   @Cls
  40.   Please select the PATH that you wish @Name
  41.   to be installed under.
  42.   Beware this path is in drive @OutDrive.
  43. @EndSubdir
  44.  
  45. @DefineDisk
  46.   @LABEL = "Disk #1"
  47.   @File DOS\ASPI221.SYS    @Out @OutDrive:\\@Subdir\\ASPI221.SYS
  48.   @File DOS\CD221.SYS    @Out @OutDrive:\\@Subdir\\CD221.SYS
  49.   @File DOS\RHD221.SYS    @Out @OutDrive:\\@Subdir\\RHD221.SYS
  50.   @File DOS\XFDISK.COM    @Out @OutDrive:\\@Subdir\\XFDISK.COM
  51.   @File DOS\MBOX.EXE    @Out @OutDrive:\\@Subdir\\MBOX.EXE
  52.   @File DOS\MSCDEX.EXE    @Out @OutDrive:\\@Subdir\\MSCDEX.EXE
  53.   @File XL221.LST    @Out @OutDrive:\\@Subdir\\XL221.LST
  54. @EndDisk
  55.  
  56. @GetOption
  57.   @LocalWindow(7,40)
  58.   @Option 1 = "CDROM and MO (or removable harddisk)"
  59.   @Option 2 = "CDROM only"
  60.   @option 3 = "MO (or removable harddisk) only"
  61.   @Option 4 = "Others or Corel SCSI"
  62. @Cls
  63.  Please select which SCSI device drives you need to install.
  64. @EndOption
  65. @if (1 [= @Option)
  66.    @SetConfig
  67.     @AskOverwrite
  68.     @Device = "@OutDrive:\\@Subdir\\ASPI221.sys /XL220"
  69.     @Device = "@OutDrive:\\@Subdir\\CD221.sys"
  70.     @Device = "@OutDrive:\\@Subdir\\RHD221.sys"
  71.    @EndConfig
  72.     @System ("md @OutDrive:\\@Subdir")
  73.     @Write ("@OutDrive:\\@Subdir\\temp","wt","@OutDrive:\\@Subdir\\mscdex /d:MSCD000\n")
  74.     @System ("copy/b @OutDrive:\\@Subdir\\temp+@OutDrive:\\autoexec.bat @OutDrive:\\@Subdir\\autoexec.bat")
  75.     @System ("copy @OutDrive:\\@Subdir\\autoexec.bat @OutDrive:\\autoexec.bat")
  76.     @System ("del @OutDrive:\\@Subdir\\temp") 
  77.     @System ("del @OutDrive:\\@Subdir\\autoexec.bat")
  78. @Elseif (2 [= @Option)
  79.    @SetConfig
  80.      @AskOverwrite
  81.      @Device = "@OutDrive:\\@Subdir\\ASPI221.sys /XL220"
  82.      @Device = "@OutDrive:\\@Subdir\\CD221.sys"
  83.    @EndConfig
  84.     @System ("md @OutDrive:\\@Subdir")
  85.     @Write ("@OutDrive:\\@Subdir\\temp","wt","@OutDrive:\\@Subdir\\mscdex /d:MSCD000\n")
  86.     @System ("copy/b @OutDrive:\\@Subdir\\temp+@OutDrive:\\autoexec.bat @OutDrive:\\@Subdir\\autoexec.bat")
  87.     @System ("copy @OutDrive:\\@Subdir\\autoexec.bat @OutDrive:\\autoexec.bat")
  88.     @System ("del @OutDrive:\\@Subdir\\temp") 
  89.     @System ("del @OutDrive:\\@Subdir\\autoexec.bat")
  90. @Elseif (3 [= @Option)
  91.    @SetConfig
  92.      @AskOverwrite
  93.      @Device = "@OutDrive:\\@Subdir\\ASPI221.sys /XL220"
  94.      @Device = "@OutDrive:\\@Subdir\\RHD221.sys"
  95.    @EndConfig
  96. @Else
  97.    @SetConfig
  98.      @AskOverwrite
  99.      @Device = "@OutDrive:\\@Subdir\\ASPI221.sys /XL220"
  100.    @EndConfig
  101. @Endif
  102.  
  103. @Finish
  104.   Changes have been made to your CONFIG.SYS file which
  105.   require rebooting to take effect.
  106.  
  107.   Therefore, this installation program will now reboot your system.
  108.   @System ("@InDrive:\\delay.exe")
  109.   @Pause
  110.   @Reboot("Installation of @Name is now Complete.\nPlease remove your floppy disk now.\nRebooting your machine.")
  111.  
  112. @EndFinish
  113.