home *** CD-ROM | disk | FTP | other *** search
/ What the Doctor Required - The Freshest December / December.iso / drivers / ingame / spcball / install.dat < prev    next >
Encoding:
INSTALL Professional project  |  1996-02-12  |  21.4 KB  |  623 lines

  1. /*======================DEFINE PROJECT====================================*/
  2. /*        Install Script for Avenger Floppies                                  */
  3.  
  4. @DefineProject
  5.     @Name = "Avenger Spaceware"
  6.     @Version = "2.2"
  7.     @Subdir = "\\SPCWARE"
  8.     @OutDrive = C
  9.     @Group        = "A"
  10.     @InDiskBell = 1
  11.     @Terse
  12. @EndProject
  13.  
  14. /*======================DEFINE VARIABLES====================================*/
  15. /* specific types (Integer, QString, Drive, & Dir) as well as establishing*/
  16. @DefineVars
  17.         @Integer @Prog = 0
  18.         @Integer @Expls = 0
  19.         @Integer @Utils = 0
  20.         @Integer @Source = 0
  21.         @Integer @IRQ = 2
  22.         @Integer @IRQFinal = 0
  23.         @Integer @combase = 0
  24.         @Integer @comport = 0
  25.         @Integer @flag = 0
  26.         @QString @game = "none"
  27.         @QString @gamename = "none"
  28.         @Dir     @gamedir = "@Getcwd()"
  29.         @Drive   @gamedrive = C  
  30. @EndVars
  31.  
  32. /*========================DISPLAY OPENING SCREEN==========================*/
  33. @Display
  34.     @Cls
  35.  
  36.  
  37.  
  38.                            Spacetec IMC Corporation
  39.  
  40.                                   presents
  41.  
  42.  
  43.                                    T H E  
  44.              ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ 
  45.              █ ▄▄▄ █ █ █▄█ █ █ ▄▄▄▄█ █ ▄▀█ █ █ ▄▄▄▄█ █ ▄▄▄▄█ █ ▄▄▄ █ 
  46.              █ ▄▄▄ █ █▄ ▀ ▄█ █ ▄▄▄█▄ █ █▄  █ █ █▄▄ █ █ ▄▄▄█▄ █ ▄▄ ▀█ 
  47.              █▄█ █▄█  ▀█▄█▀  █▄▄▄▄▄█ █▄█▀█▄█ █▄▄▄▄▄█ █▄▄▄▄▄█ █▄█▀█▄█ 
  48.  
  49.                              Installation Program
  50.  
  51.                                  Version @Version
  52.  
  53.  
  54.  
  55. @Pause
  56. @EndDisplay
  57.  
  58. menu:
  59. /*============================MAIN MENU=================================*/
  60. @GetOption
  61.      @LocalWindow(10,55)
  62.     @Option 100 = "Start Installation"
  63.     @Option 103 = "EXIT!"
  64.              
  65. @Cls
  66.  Select the procedure you wish to perform.
  67.  
  68.  "Start installation" installs the complete 
  69.  @Name distribution and sets up the
  70.  Avenger driver.
  71.  
  72.  
  73.  "EXIT" returns you 
  74.  to the DOS prompt!
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  Note: The selected item is blinking.
  81.  
  82.  
  83.  Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the bar 
  84.  to your selection and then press the [Enter] key.
  85. @EndOption
  86.  
  87.  
  88.  
  89.  
  90. @If(103 [= @Option) @movecstr(1,1,31,"Please Wait...")@goto exitnow @endif
  91.  
  92. fullinstall:
  93. /*==================FULL INSTALLATION===============================*/
  94. @If(100 [= @Option)
  95.         @OutDrive = C
  96.         @Prog = 100000
  97.           @Expls = 600000
  98.           @Utils = 90000
  99.           @Source = 1300000
  100. LIST_DRIVES: 
  101. @ClearOption(1) 
  102. @GetOutDrive
  103. @LocalWindow(12,65)
  104.  Please select the drive where you wish @Name
  105.  to be installed on your machine. Any drive available 
  106.  can be used assuming you have access rights to the 
  107.  drive you select, and there is enough space available 
  108.  for installation.
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the bar 
  122.  to your selection and then press the [Enter] key.
  123. @EndOutDrive
  124.  
  125. @If (99 [= @Option)
  126.     @GoTo Check_Free_Space
  127. @EndIf
  128.  
  129.  
  130. getdrive:
  131. @ClearOption(104) 
  132. @ClearOption(105) 
  133. @GetSubdir
  134.     @LocalWindow(12,40)
  135.     @Cls
  136.  Please select the PATH under which you wish @Name 
  137.  to be installed.  
  138.  The current directory will look like this after installation:
  139.  @outdrive:@subdir\AVENGER
  140.  @movecstr(5,13,31,"   │ ")
  141.  @movecstr(6,13,31,"   ├──\\SUPPORT")
  142.  @movecstr(7,13,31,"   └──\\GAMES")
  143. @EndSubdir
  144.  
  145. @GetOption
  146.     @Cls
  147. The current directory will look like this after installation
  148.  
  149.  @outdrive:@subdir\AVENGER
  150.  @movecstr(4,13,31,"   │ ")
  151.  @movecstr(5,13,31,"   ├──\\SUPPORT")
  152.  @movecstr(6,13,31,"   └──\\GAMES")
  153.  
  154.     @LocalWindow(14,55)
  155.            @Option 104 = "I like that directory"
  156.            @Option 105 = "I made a mistake"
  157.  
  158. @EndOption
  159.  
  160. @If(105 [= @Option)
  161.    @goto LIST_DRIVES
  162. @EndIf
  163.  
  164. @Prog = 100000    
  165. @Expls = 600000   
  166. @Utils = 90000    
  167. @Source = 1300000 
  168.  
  169. //Check_Free_Space:
  170.  
  171. @display
  172.  @cls
  173.     Before we install the files, we will try to insure communications with
  174.     the Spaceball Avenger. When you EXIT, I will install your programs
  175.     and ask you if you would like to modify your AUTOEXEC.BAT file 
  176.     to properly load the driver.
  177.     
  178. @pause 
  179. @enddisplay
  180.  
  181. checkcom:
  182. @ClearOption(200) 
  183. @ClearOption(201) 
  184. @ClearOption(202) 
  185. @ClearOption(203) 
  186. @ClearOption(204) 
  187.  
  188. @GetOption
  189.     @Cls
  190.     Checking COM ports ..................
  191.     You have @comtotal COM ports!
  192. @if(@com(1))    This Machine has a COM1 serial port. @Option 200 = "COM 1" @endif
  193. @if(@com(2))    This Machine has a COM2 serial port. @Option 201 = "COM 2" @endif
  194. @if(@com(3))    This Machine has a COM3 serial port. @Option 202 = "COM 3" @endif
  195. @if(@com(4))    This Machine has a COM4 serial port. @Option 203 = "COM 4" @endif
  196.     @Option 204 = "Continue"
  197.     Due to the complicated nature of finding the
  198.     IRQ number,base address,and interrupt vector for a given COM
  199.     port for your system we will attempt to find one for you.
  200.     So please be patient! A few minutes here could save you days
  201.     figuring it out by yourself!
  202.  
  203.     Please Select which COM port you would like to use.
  204.     Hint: If your mouse is on COM1 then don't use COM1
  205.  
  206.  Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the bar 
  207.  to your selection and then press the [Enter] key.
  208. @LocalWindow(4,55)
  209. @EndOption
  210.  
  211. @IRQFinal = 0
  212. @If(200 [= @Option) @comport = 1 @endif
  213. @If(201 [= @Option) @comport = 2 @endif
  214. @If(202 [= @Option) @comport = 3 @endif
  215. @If(203 [= @Option) @comport = 4 @endif
  216. @If(204 [= @Option) @movecstr(1,1,31,"Please Wait...") @goto exitnow  @endif
  217. @combase = @COM(@comport)
  218. @IRQ = 1
  219. retest:
  220. @IRQ = @eval(@IRQ + 1)
  221. @if (@IRQ == 6 )
  222.   @goto bad
  223. @endif
  224.  
  225. @display
  226. @cls
  227.     I will now try to test each IRQ (2-15), to find the one 
  228.     that matches your COM port.  
  229.  
  230.     Important: In order for this test to work your Avenger
  231.     must be plugged into the COM port you have chosen.
  232.  
  233.  
  234.  
  235.  
  236.     @pause
  237. @enddisplay
  238.  
  239. @movecstr(1,1,31,"TESTING: Please Wait...")
  240. @movecstr(2,1,31,"[              ]")
  241.  
  242.  
  243. @if (@spawn("avgrutil.exe @comport:3:@combase -p")==0) @IRQFinal = 3 @goto ett 
  244. @else
  245. @movecstr(2,3,31,".")
  246. @endif
  247.  
  248. @if (@spawn("avgrutil.exe @comport:4:@combase -p")==0) @IRQFinal = 4 @goto ett 
  249. @else
  250. @movecstr(2,4,31,".")
  251. @endif
  252.  
  253. @if (@spawn("avgrutil.exe @comport:2:@combase -p")==0) @IRQFinal = 2 @goto ett 
  254. @else
  255. @movecstr(2,2,31,".")
  256. @endif
  257.  
  258. @if (@spawn("avgrutil.exe @comport:5:@combase -p")==0) @IRQFinal = 5 @goto ett 
  259. @else
  260. @movecstr(2,5,31,".")
  261. @endif
  262.  
  263. @if (@spawn("avgrutil.exe @comport:6:@combase -p")==0) @IRQFinal = 6 @goto ett 
  264. @else
  265. @movecstr(2,6,31,".")
  266. @endif
  267.  
  268. @if (@spawn("avgrutil.exe @comport:7:@combase -p")==0) @IRQFinal = 7 @goto ett 
  269. @else
  270. @movecstr(2,7,31,".")
  271. @endif
  272.  
  273. @if (@spawn("avgrutil.exe @comport:8:@combase -p")==0) @IRQFinal = 8 @goto ett 
  274. @else
  275. @movecstr(2,8,31,".")
  276. @endif
  277.  
  278. @if (@spawn("avgrutil.exe @comport:9:@combase -p")==0) @IRQFinal = 9 @goto ett 
  279. @else
  280. @movecstr(2,9,31,".")
  281. @endif
  282.  
  283. @if (@spawn("avgrutil.exe @comport:10:@combase -p")==0) @IRQFinal = 10 @goto ett
  284. @else
  285. @movecstr(2,10,31,".")
  286. @endif
  287.  
  288. @if (@spawn("avgrutil.exe @comport:11:@combase -p")==0) @IRQFinal = 11 @goto ett 
  289. @else
  290. @movecstr(2,11,31,".")
  291. @endif
  292.  
  293. @if (@spawn("avgrutil.exe @comport:12:@combase -p")==0) @IRQFinal = 12 @goto ett 
  294. @else
  295. @movecstr(2,12,31,".")
  296. @endif
  297.  
  298. @if (@spawn("avgrutil.exe @comport:13:@combase -p")==0) @IRQFinal = 13 @goto ett 
  299. @else
  300. @movecstr(2,13,31,".")
  301. @endif
  302.  
  303. @if (@spawn("avgrutil.exe @comport:14:@combase -p")==0) @IRQFinal = 14 @goto ett 
  304. @else
  305. @movecstr(2,14,31,".")
  306. @endif
  307.  
  308. @if (@spawn("avgrutil.exe @comport:15:@combase -p")==0) @IRQFinal = 15 @goto ett 
  309. @else
  310. @movecstr(2,15,31,".")
  311. @endif
  312.  
  313.  
  314. ett:
  315.  
  316. @if (@IRQFinal != 0)
  317. @display
  318.     @cls
  319.     O.K. IRQ @IRQFinal works!!
  320.     When you exit this program I will ask you if you
  321.     want to add the proper driver in your AUTOEXEC.BAT 
  322.     file. The autoexec.bat will properly load the driver 
  323.     when you reboot your computer!
  324.  
  325.   
  326.     @pause
  327. @enddisplay
  328.  
  329. @SetAutoExec
  330. @AskOverwrite
  331.     @verbatim "call @OutDrive:@subdir\\avenger\\avgrload.bat"
  332.     @Path = "@OutDrive:@subdir;"
  333. @EndAutoExec
  334.  
  335. @else
  336. @display
  337.     @cls
  338.     COM @comport is not available try another!
  339.     Make sure the Avenger is plugged into a COM port.
  340.     If you are sure it is plugged into a COM port, then
  341.     try to change which COM port you are testing for.
  342.     If nothing works then see your manual.
  343.  
  344.     Hint: sometimes there are 9 or 25 pin COM port connectors on
  345.     the back of your computer, and you may need a 9 to 25 pin 
  346.     adapter from your Avenger to your computer.
  347.     
  348.     @pause
  349. @enddisplay
  350. @goto checkcom
  351. @endif
  352. wait:
  353.  
  354.  
  355. @movecstr(1,1,31,"Please Wait...")
  356. @EndIf
  357.  
  358. exitnow:
  359. /*==========================EXIT INSTALLATION=============================*/
  360. @If(103 [= @Option)
  361.      @exit
  362. @EndIf
  363.  
  364. /*================GET ROOT DIRECTORY============================*/
  365.  
  366. begininstall:
  367. /*===============DEFINE AND COPY DISK FILES HERE===================*/
  368. @DefineDisk
  369.     @Label = "Disk #1"
  370.           @File  INS.EXE @Size 97853        @OUT avenger\avgrset.exe @OVERWRITE
  371.            @File  disk.id @Size 32            @OUT avenger\disk.id     @OVERWRITE
  372.         @File  1.DAT @Size 18328        @OUT avenger\install.dat @OVERWRITE
  373.         @File  2.DAT @Size 18328        @OUT avenger\2.dat       @OVERWRITE
  374.         @File  readme.txt @Size 18328    @OUT avenger\readme.txt  @OVERWRITE
  375.  
  376.     @BeginLib GAMES.RED
  377.         @File SPWDCENT.CFG @Size 754    @OUT avenger\games\*.* @OVERWRITE
  378.         @File SPWWOLF3.CFG @Size 441    @OUT avenger\games\*.* @OVERWRITE
  379.         @File SPWDOOM1.CFG @Size 630    @OUT avenger\games\*.* @OVERWRITE
  380.         @File SPWSHOCK.CFG @Size 582    @OUT avenger\games\*.* @OVERWRITE
  381.         @File SPWDARKF.CFG @Size 773    @OUT avenger\games\*.* @OVERWRITE
  382.         @File SPWSPEAR.CFG @Size 435    @OUT avenger\games\*.* @OVERWRITE
  383.         @File SPWXWING.CFG @Size 918    @OUT avenger\games\*.* @OVERWRITE
  384.         @File SPWHTIC.CFG @Size 755        @OUT avenger\games\*.* @OVERWRITE
  385.         @File SPWROTT.CFG @Size 612        @OUT avenger\games\*.* @OVERWRITE
  386.         @File SPWDARKF.EXE @Size 69224    @OUT avenger\games\*.* @OVERWRITE
  387.         @File SPWDCENT.EXE @Size 68328    @OUT avenger\games\*.* @OVERWRITE
  388.         @File SPWDOOM1.EXE @Size 67992    @OUT avenger\games\*.* @OVERWRITE
  389.         @File SPWDOOM2.EXE @Size 68024    @OUT avenger\games\*.* @OVERWRITE
  390.         @File SPWHTIC.EXE @Size 68504    @OUT avenger\games\*.* @OVERWRITE
  391.         @File SPWHEXEN.EXE @Size 68504    @OUT avenger\games\*.* @OVERWRITE
  392.         @File SPWXWING.EXE @Size 40326    @OUT avenger\games\*.* @OVERWRITE
  393.         @File SPWWOLF3.EXE @Size 40772    @OUT avenger\games\*.* @OVERWRITE
  394.         @File SPWBSTON.EXE @Size 40772    @OUT avenger\games\*.* @OVERWRITE
  395.         @File AVENGER.DLL @Size 9195    @OUT avenger\games\*.* @OVERWRITE
  396.         @File SPWC7.EXE @Size 40772        @OUT avenger\games\*.* @OVERWRITE
  397.         @File AVGREAD.ME @Size 6673        @OUT avenger\games\*.* @OVERWRITE
  398.         @File SPWSPEAR.EXE @Size 40772    @OUT avenger\games\*.* @OVERWRITE
  399.         @File AVENGER.MAP @Size 6607    @OUT avenger\games\*.* @OVERWRITE
  400.         @File AVENGER.CPC @Size 3872    @OUT avenger\games\*.* @OVERWRITE
  401.         @File SPWC7.CFG @Size 384        @OUT avenger\games\*.* @OVERWRITE
  402.         @File SPWHEXEN.CFG @Size 732    @OUT avenger\games\*.* @OVERWRITE
  403.         @File SPWDOOM2.CFG @Size 625    @OUT avenger\games\*.* @OVERWRITE
  404.         @File SPWTITLE.RAW @Size 64772    @OUT avenger\games\*.* @OVERWRITE
  405.         @File SPWBSTON.CFG @Size 433    @OUT avenger\games\*.* @OVERWRITE
  406.     @EndLib
  407.  
  408.     @BeginLib DEMOS.RED
  409.         @File dos4gw.exe @Size 18328    @OUT avenger\support\*.* @OVERWRITE
  410.         @File BROMAFL.RWX @Size 5339    @OUT avenger\support\*.* @OVERWRITE
  411.         @File RUNWAY.RWX @Size 793        @OUT avenger\support\*.* @OVERWRITE
  412.         @File ACTIVE.BAT @Size 145        @OUT avenger\support\*.* @OVERWRITE
  413.         @File OCTAGON.BAT @Size 156        @OUT avenger\support\*.* @OVERWRITE
  414.         @File AVGRHELP.EXE @Size 118459    @OUT avenger\support\*.* @OVERWRITE
  415.         @File AVGRBALL.EXE @Size 102442    @OUT avenger\support\*.* @OVERWRITE
  416.         @File AVGRBAL.BAT @Size 145        @OUT avenger\support\*.* @OVERWRITE
  417.         @File BIG.FNT @Size 16384        @OUT avenger\support\*.* @OVERWRITE
  418.         @File TRAIN1.EXE @Size 735001    @OUT avenger\support\*.* @OVERWRITE
  419.     @EndLib
  420.  
  421.     @BeginLib BMP.RED
  422.         @File CEIL1.BMP @Size 17462        @OUT avenger\support\*.* @OVERWRITE
  423.         @File BACKDROP.BMP @Size 150550    @OUT avenger\support\*.* @OVERWRITE
  424.         @File WALL5M.BMP @Size 17462    @OUT avenger\support\*.* @OVERWRITE
  425.         @File WALL6.BMP @Size 17462        @OUT avenger\support\*.* @OVERWRITE
  426.         @File WALL7.BMP @Size 82998        @OUT avenger\support\*.* @OVERWRITE
  427.         @File WALL7M.BMP @Size 17462    @OUT avenger\support\*.* @OVERWRITE
  428.         @File WALL8.BMP @Size 17462        @OUT avenger\support\*.* @OVERWRITE
  429.         @File WALL8M.BMP @Size 17462    @OUT avenger\support\*.* @OVERWRITE
  430.         @File WALLM.BMP @Size 82998        @OUT avenger\support\*.* @OVERWRITE
  431.         @File TRAIN2.BMP @Size 54838    @OUT avenger\support\*.* @OVERWRITE
  432.         @File WALL3M.BMP @Size 17462    @OUT avenger\support\*.* @OVERWRITE
  433.         @File WALL4.BMP @Size 17462        @OUT avenger\support\*.* @OVERWRITE
  434.         @File WALL4M.BMP @Size 17462    @OUT avenger\support\*.* @OVERWRITE
  435.         @File WALL5.BMP @Size 82998        @OUT avenger\support\*.* @OVERWRITE
  436.         @File FLOOR1.BMP @Size 17462    @OUT avenger\support\*.* @OVERWRITE
  437.         @File WALL3.BMP @Size 82998        @OUT avenger\support\*.* @OVERWRITE
  438.         @File TRAIN1.BMP @Size 54838    @OUT avenger\support\*.* @OVERWRITE
  439.         @File WALL1.BMP @Size 17462        @OUT avenger\support\*.* @OVERWRITE
  440.         @File WALL1M.BMP @Size 17462    @OUT avenger\support\*.* @OVERWRITE
  441.         @File WALL2.BMP @Size 17462        @OUT avenger\support\*.* @OVERWRITE
  442.     @EndLib
  443.  
  444. @EndDisk
  445.  
  446. @DefineDisk
  447.     @Label = "Disk #2"
  448.  
  449.     @BeginLib PCX.RED
  450.         @File ACTSRN.PCX @Size 46211    @OUT avenger\support\*.* @OVERWRITE
  451.         @File HSPVRB.PCX @Size 21232    @OUT avenger\support\*.* @OVERWRITE
  452.         @File INSTRUCT.PCX @Size 11389    @OUT avenger\support\*.* @OVERWRITE
  453.         @File HSPSRN.PCX @Size 50991    @OUT avenger\support\*.* @OVERWRITE
  454.         @File GRPVRB2.PCX @Size 37612    @OUT avenger\support\*.* @OVERWRITE
  455.         @File HOMSRN.PCX @Size 43656    @OUT avenger\support\*.* @OVERWRITE
  456.         @File GRPVRB.PCX @Size 37754    @OUT avenger\support\*.* @OVERWRITE
  457.         @File PSSRN1.PCX @Size 48147    @OUT avenger\support\*.* @OVERWRITE
  458.         @File GRPVRB3.PCX @Size 37397    @OUT avenger\support\*.* @OVERWRITE
  459.         @File HOTVRB.PCX @Size 32026    @OUT avenger\support\*.* @OVERWRITE
  460.         @File PSSRN2.PCX @Size 29596    @OUT avenger\support\*.* @OVERWRITE
  461.         @File ACTVRB.PCX @Size 25054    @OUT avenger\support\*.* @OVERWRITE
  462.         @File ARROWS.PCX @Size 9547        @OUT avenger\support\*.* @OVERWRITE
  463.         @File TRAIN1.PCX @Size 25217    @OUT avenger\support\*.* @OVERWRITE
  464.         @File PSSRN3.PCX @Size 16374    @OUT avenger\support\*.* @OVERWRITE
  465.         @File VERBSCR.PCX @Size 25217    @OUT avenger\support\*.* @OVERWRITE
  466.         @File GRPSRN.PCX @Size 36340    @OUT avenger\support\*.* @OVERWRITE
  467.         @File HOTSRN.PCX @Size 51626    @OUT avenger\support\*.* @OVERWRITE
  468.     @EndLib
  469.  
  470.     @BeginLib UTILS.RED
  471.         @File SFONT1.FNT @Size 16384    @OUT avenger\support\*.* @OVERWRITE
  472.         @File SMALL.FNT @Size 16384        @OUT avenger\support\*.* @OVERWRITE
  473.         @File AVLAUNCH.EXE @Size 13157    @OUT avenger\support\*.* @OVERWRITE
  474.         @File SPSETUP.EXE @Size 83506    @OUT avenger\support\*.* @OVERWRITE
  475.         @File SPSETUP2.PCX @Size 8754    @OUT avenger\support\*.* @OVERWRITE
  476.         @File MOUSE.TXT @Size 2709        @OUT avenger\support\*.* @OVERWRITE
  477.                 @File AVCUSTMZ.BAT @Size 32094             @OUT avenger\support\*.* @OVERWRITE
  478.                 @File SETUP.BAT @Size 32094             @OUT avenger\*.* @OVERWRITE
  479.         @File SPWMOUSE.EXE @Size 32094    @OUT avenger\*.* @OVERWRITE
  480.         @File MEDIUM.FNT @Size 16384    @OUT avenger\support\*.* @OVERWRITE
  481.         @File SPSETUP.PCX @Size 27619    @OUT avenger\support\*.* @OVERWRITE
  482.         @File AVVERIFY.EXE @Size 13533    @OUT avenger\*.* @OVERWRITE
  483.         @File CFG.PCX @Size 21808        @OUT avenger\support\*.* @OVERWRITE
  484.         @File FNT8X8.BIN @Size 2048        @OUT avenger\support\*.* @OVERWRITE
  485.         @File CFG.EXE @Size 374050        @OUT avenger\support\*.* @OVERWRITE
  486.         @File AVENGER.22 @Size 0        @OUT avenger\support\*.* @OVERWRITE
  487.                 @File AVGRFLIP.EXE @Size 14751          @OUT avenger\support\*.* @OVERWRITE
  488.         @File VAXIS.BAT @Size 60        @OUT avenger\support\*.* @OVERWRITE
  489.         @File HAXIS.BAT @Size 61        @OUT avenger\support\*.* @OVERWRITE
  490.     @EndLib
  491.  
  492.     @BeginLib DRIVERS.RED
  493.         @File AVENGER.EXE @Size 16399    @OUT avenger\*.* @OVERWRITE
  494.         @File README.TXT @Size 18229    @OUT avenger\*.* @OVERWRITE
  495.         @File AVGRUTIL.EXE @Size 13037    @OUT avenger\*.* @OVERWRITE
  496.         @File AVGRTEST.EXE @Size 38710    @OUT avenger\*.* @OVERWRITE
  497.     @EndLib
  498.  
  499. @EndDisk
  500.  
  501.  
  502.  
  503. @Finish
  504.     @ChDrive @OutDrive
  505.     @ChDir "@SubDir"
  506.     @ChDir "AVENGER"
  507.     @Cls
  508.         Please Wait.........
  509.  
  510.  
  511. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","wt",
  512.     "@@echo off\n")
  513. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  514.     "echo Loading the Avenger Drivers . . .\n")
  515. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  516.     "@@echo off\n@OutDrive:@subdir\\avenger\\avenger.exe\n")
  517. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  518.     "@OutDrive:@subdir\\avenger\\avgrutil.exe @comport:@IRQFinal:@combase\n")
  519. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  520.     "if errorlevel == 5 goto nodev\n")
  521. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  522.     "if errorlevel == 1 goto othererror\n")
  523. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  524.     "@OutDrive:@subdir\\avenger\\support\\avgrflip.exe /f@subdir\\avenger\\support\\spcware.cfg /q\n")
  525. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  526.     "goto end\n")
  527. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  528.     ":nodev\n")
  529. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  530.     "echo.\n")
  531. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  532.     "echo The Avenger cannot be found.  Please check to see that it is properly\n")
  533. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  534.     "echo installed and try again.  If you continue to have problems, try\n")
  535. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  536.     "echo running the setup utility.\n")
  537. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  538.     "echo.\n")
  539. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  540.     "pause\n")
  541. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  542.     "goto end\n")
  543. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  544.     ":othererror\n")
  545. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  546.     "echo.\n")
  547. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  548.     "echo The Avenger could not be loaded.  Please check to see that it is properly\n")
  549. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  550.     "echo installed and try again.  If you continue to have problems, try\n")
  551. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  552.     "echo running the setup utility.\n")
  553. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  554.     "echo.\n")
  555. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  556.     "pause\n")
  557. @write("@OutDrive:\\@subdir\\avenger\\avgrload.bat","at",
  558.     ":end\n")
  559.  
  560. @write("@OutDrive:\\@subdir\\goavgr.bat","wt",
  561.             "@@echo off\n@OutDrive:\ncd @subdir\\avenger\n")
  562. @write("@OutDrive:\\@subdir\\goavgr.bat","at",
  563.             "call avgrload.bat\n")
  564. @write("@OutDrive:\\@subdir\\goavgr.bat","at",
  565.             "call avlaunch.bat\n")
  566. @write("@OutDrive:\\@subdir\\goavgr.bat","at",
  567.             "cd\\@subdir\n")
  568.  
  569. @if (@FileSize("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg") == -1 )
  570. @write("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg","wt",
  571.        "[ORIENTATION]\n")
  572. @write("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg","at",
  573.        "0\n")
  574. @write("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg","at",
  575.        "[GAMES]\n")
  576. @write("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg","at",
  577.        "Exit to DOS=\n")
  578. @write("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg","at",
  579.        "Switch Avenger to VERTICAL=vaxis.bat\n")
  580. @write("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg","at",
  581.        "Activator Trainer=@OutDrive:\\@subdir\\avenger\\support\\active.bat\n")
  582. @write("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg","at",
  583.        "Octagon Trainer=@OutDrive:\\@subdir\\avenger\\support\\octagon.bat\n")
  584. @write("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg","at",
  585.        "Customizer=@OutDrive:\\@subdir\\avenger\\support\\avcustmz.bat\n")
  586. @write("@OutDrive:\\@subdir\\avenger\\support\\spcware.cfg","at",
  587.        "Test Avenger=@OutDrive:\\@subdir\\avenger\\support\\avgrbal.bat\n")
  588. @endif
  589.  
  590. @write("@OutDrive:\\@subdir\\avenger\\install.dat","at","        @@Subdir=\"\\\\@subdir\"\n")
  591. @write("@OutDrive:\\@subdir\\avenger\\install.dat","at","        @@OutDrive = @OutDrive\n")
  592.  
  593. @write("@OutDrive:\\@subdir\\avenger\\avlaunch.bat","wt","@@echo off\n")
  594. @write("@OutDrive:\\@subdir\\avenger\\avlaunch.bat","at","set spwmld=X\n")
  595. @write("@OutDrive:\\@subdir\\avenger\\avlaunch.bat","at","@OutDrive:\nCD \\@subdir\\AVENGER\\support\n")
  596. @write("@OutDrive:\\@subdir\\avenger\\avlaunch.bat","at","avlaunch.exe\n")
  597.  
  598. @write("@OutDrive:\\@subdir\\setup.bat","wt","@@echo off\n")
  599. @write("@OutDrive:\\@subdir\\setup.bat","at","@OutDrive:\ncd\\@subdir\\avenger\n")
  600. @write("@OutDrive:\\@subdir\\setup.bat","at","setup.bat\n")
  601.  
  602. @if (  @system("type 2.dat>>install.dat") ) @endif
  603. @if (  @system("del 2.dat")  ) @endif
  604.  
  605. @Cls
  606.        The installation of @Name is now finished.  
  607.        Futher reconfiguring can be done from the
  608.        @OutDrive:@SubDir\AVENGER directory, using the 
  609.        SETUP program. 
  610.  
  611.        To reconfigure your COM port and to setup for any supported 
  612.        games you may have, I will attempt to run the SETUP.EXE 
  613.        program.
  614.  
  615.        Warning: The SETUP program MUST be run, in order to setup for
  616.        the supported games.
  617.        @FlushKeyboard()
  618.        @Pause
  619. @EndFinish
  620. /*========================================================================*/
  621.  
  622. // end-of-file
  623.