

































































































































































































































@defineproject
@name="DL-Xpress/C126"
@version="3.0.6"
@outdrive=c
@subdir="\\dlxpress"
@endproject
@definevars
@qstring @company = "Vibrant Graphics"
@qstring @copyyear = "1991-1994"
@qstring @copycomp = "Vibrant Graphics"
@qstring @realdate = "Thu Jul 28 1994"
@qstring @rootfn = "DLXC126"
@qstring @expfn = "RCDLX126"
@qstring @resfn = "DL126306"
@qstring @cfgfn = "DL126306"
@qstring @rlmfn = "VG940124"

@endvars
@display
@cls
@windmsg(2,23,"@Name","Version @Version  @realdate","Copyright (c) @copyyear by @copycomp")









    This driver operates with AutoCAD releases 10, 11, and 12, as
    well as 3D Studio version 2.0, and AutoShade with Renderman
    version 2.0.

    This program will copy the needed files onto your system after
    asking you for information about the desired setup of
    @name.
    Changes needed to the various files on your system can be
    viewed, saved to disk, or directly modified by INSTALL.

    You may press [ESC] to abort at any time.
@pause
@enddisplay
@if ( @strequal("@getenvstr("DSPADI")","\\") )
@getoption
@cls
@writeat("Installation level",30,,100)






    An Express installation will install @name for AutoCAD
    R10, R11 or R12.  It will place the driver in the same directory
    as AutoCAD(or the DRV directory of AutoCAD Release 12).

    The Custom installation places the driver in a user-specified
    directory for sharing between releases or just for organizational
    uses.  To use the driver with 3D Studio and/or Autoshade with
    Renderman and/or AutoCAD, use Custom.

    Select Utility if you only wish to install one or more of the
    support utilities.

    Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.
@option 10 = "Express"
@option 11 = "Custom"
@option 12 = "Utility"
@endoption
@else
@getoption
@cls
@writeat("Installation level",30,,100)







    The 'DSPADI' variable has been detected by the install.  The Express
    installation cannot be performed for AutoCAD release 10 and 11.
    Select 'AutoCAD R12 Only' if you wish to only install for that
    program only by placing it into the DRV directory.

    The Custom installation places the driver in a user-specified
    directory for sharing between releases or just for organizational
    uses.  To use the driver with 3D Studio and/or Autoshade with
    Renderman and/or AutoCAD, use Advanced.

    Select Utilities if you only wish to install one or more of
    the support utilities, without installing the driver.

@option 11 = "Custom"
@option 22 = "AutoCAD R12 Only"
@option 12 = "Utilities"
@endoption
@endif
@if (12 [! @option && 22 [! @option)
@if (10 [= @option)
@getoption
@checkbox
@cls
@writeat("Express Installation",30,,100)











    Please select which version(s) of AutoCAD you wish the driver installed
    for.  Please note that the simple install will place a copy of the
    driver in each of the specified directories.

    Use <SPACE> to toggle between Yes & No, and the <UP> <DOWN> arrow keys
    to move.  Press 'Y' to set all of the toggles to Yes, or 'N' to set them
    all to No.
		       Press <ENTER> to continue.
@setoption(22)
@option 22 = "AutoCAD Release 12"
@option 21 = "AutoCAD Release 11"
@option 20 = "AutoCAD Release 10"
@endoption
@else
@getoption
@checkbox
@cls
@writeat("Custom installation",30,,100)











    Please select which products you wish the driver installed for.  Only
    one copy of the driver is placed on your system and shared between
    these programs.

    Use <SPACE> to toggle between Yes & No, and the <UP> <DOWN> arrow keys
    to move.  Press 'Y' to set all of the toggles to Yes, or 'N' to set them
    all to No.	Press <ENTER> to continue.
@setoption(32)
@option 32 = "AutoCAD Release 12"
@option 31 = "AutoCAD Release 11"
@option 30 = "AutoCAD Release 10"
@option 41 = "3D Studio version 2.0"
@option 50 = "AutoShade with Renderman version 2.0"
@endoption
@endif
@endif
@definevars
@drive @acad10drive = @outdrive
@dir @acad10dir = "\\acad"
@endvars
@if (20 [= @option || 30 [= @option)
@getoutdrive @acad10drive
@cls
@suppress A
@suppress B
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,20,100)
@writeat("Please specify the drive where AutoCAD Release 10 is located.",30,18,100)
@endoutdrive
@getsubdir @acad10dir
@cls
@writeat("Please specify the directory where AutoCAD Release 10 is located.",30,8,100)
@writeat("Type the pathname and press <ENTER>.  <ESC> once to clear, twice to abort.",,20,100)
@localwindow(13,1)
@endsubdir
@if (!(@exists "@acad10drive:@acad10dir\\ACAD.EXE"))
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
 "ACAD.EXE was not found in the directory:",
 "@acad10drive:@acad10dir")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@endif
@definevars
@if (20 [= @option || 30 [= @option)
@drive @acad11drive = @acad10drive
@else
@drive @acad11drive = @outdrive
@endif
@dir @acad11dir = "\\acad"
@endvars
@if (21 [= @option || 31 [= @option)
@getoutdrive @acad11drive
@cls
@suppress A
@suppress B
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,20,100)
@writeat("Please specify the drive where AutoCAD Release 11 is located.",30,18,100)
@endoutdrive
@getsubdir @acad11dir
@cls
@writeat("Please specify the directory where AutoCAD Release 11 is located.",30,8,100)
@writeat("Type the pathname and press <ENTER>.  <ESC> once to clear, twice to abort.",,20,100)
@localwindow(13,1)
@endsubdir
@if (!(@exists "@acad11drive:@acad11dir\\ACAD.EXE"))
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
 "ACAD.EXE was not found in the directory:",
 "@acad11drive:@acad11dir")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@endif
@definevars
@if (21 [= @option || 31 [= @option)
@drive @acad12drive = @acad11drive
@elseif (20 [= @option || 32 [= @option)
@drive @acad12drive = @acad10drive
@else
@drive @acad12drive = @outdrive
@endif
@dir @acad12dir = "\\acad"
@endvars
@if (22 [= @option || 32 [= @option)
@getoutdrive @acad12drive
@cls
@suppress A
@suppress B
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,20,100)
@writeat("Please specify the drive where AutoCAD Release 12 is located.",30,18,100)
@endoutdrive
@getsubdir @acad12dir
@cls
@writeat("Please specify the directory where AutoCAD Release 12 is located.",30,8,100)
@writeat("Type the pathname and press <ENTER>.  <ESC> once to clear, twice to abort.",,20,100)
@localwindow(13,1)
@endsubdir
@if (!(@exists "@acad12drive:@acad12dir\\ACAD.EXE"))
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
"ACAD.EXE was not found in the directory:",
"@acad12drive:@acad12dir")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@endif
@definevars
@drive @s3D1drive = @outdrive
@dir @s3D1dir = "\\3DS"
@endvars
@if (40 [= @option)
@getoutdrive @s3D1drive
@cls
@suppress A
@suppress B
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,20,100)
@writeat("Please specify the drive where 3D Studio version 1.0 is located.",30,18,100)
@endoutdrive
@getsubdir @s3D1dir
@cls
@writeat("Please specify the directory where 3D Studio verison 1.0 is located.",30,8,100)
@writeat("Type the pathname and press <ENTER>.  <ESC> once to clear, twice to abort.",,20,100)
@localwindow(13,1)
@endsubdir
@if (!(@exists "@s3D1drive:@s3D1dir\\3DS.EXE"))
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
"3DS.EXE was not found in the directory:",
"@s3D1drive:@s3D1dir")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@endif
@definevars
@if (40 [= @option)
@drive @s3D2drive = @s3D1drive
@else
@drive @s3D2drive = @outdrive
@endif
@dir @s3D2dir = "\\3DS2"
@endvars
@if (41 [= @option)
@getoutdrive @s3D2drive
@cls
@suppress A
@suppress B
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,20,100)
@writeat("Please specify the drive where 3D Studio version 2.0 is located.",30,18,100)
@endoutdrive
@getsubdir @s3D2dir
@cls
@writeat("Please specify the directory where 3D Studio verison 2.0 is located.",30,8,100)
@writeat("Type the pathname and press <ENTER>.  <ESC> once to clear, twice to abort.",,20,100)
@localwindow(13,1)
@endsubdir
@if (!(@exists "@s3D2drive:@s3D2dir\\3DS.EXE"))
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
"3DS.EXE was not found in the directory:",
"@s3D2drive:@s3D2dir")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@endif
@if (30 [= @option || 31 [= @option || 32 [= @option || 40 [= @option ||
41 [= @option || 50 [= @option )
@getoutdrive @outdrive
@cls
@suppress A
@suppress B
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,20,100)
@writeat("Please specify the drive where @name should be located.",30,18,100)
@endoutdrive
@getsubdir @subdir
@cls
@writeat("Please specify the directory where @name should be located.",30,8,100)
@writeat("Type the pathname and press <ENTER>.  <ESC> once to clear, twice to abort.",,20,100)
@localwindow(13,1)
@endsubdir
@if ((@strequal("@getenvstr("RDPADI")","\\")==0) &&
     (50 [= @option || 41 [= @option || 32 [= @option))
@getoption
@cls







    The environment variable 'RDPADI' was found to be set to:
    @writeat("@getenvstr("RDPADI")",30,,100)
    If this points to an older version of @name,
    then please answer Yes to overwrite the old variable.  If
    this points to another driver, then you may either overwrite it
    with @name or you can leave it alone.
    (Note that no changes will occur yet.   You will be asked if you
    wish to modify or save the changes later in the INSTALL)
@writeat("Please specify if you wish the environment variable RDPADI overwritten.",30,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@option 151 = "Yes, overwrite"
@option 150 = "No, leave RDPADI alone"
@endoption
@endif
@getoption
@cls
@writeat("Please specify where you wish the SET statement(s) placed.",30,2,100)












    Environment variables MUST be properly setup before the driver will
    work correctly.  You may either have the variables set in the
    AUTOEXEC.BAT, so that they are setup when you boot your system, or
    in a @rootfn.BAT or ACADR12.BAT file which MUST be run before you use
    the product with the driver.

@if (30 [= @option || 31 [= @option || 50 [= @option)
@writeat("SET DSPADI=@outdrive:@subdir\\@expfn.EXP",31,9,100)
@endif
@writeat("SET VIBCFG=@outdrive:@subdir\\@cfgfn.CFG",31,10,100)
@if (40 [= @option || 41 [= @option)
@writeat("SET RCPADI=@outdrive:@subdir\\@expfn.EXP",31,11,100)
@endif
@if (151 [= @option || ((@strequal("@getenvstr("RDPADI")","\\")==1) &&
     (50 [= @option ||	41 [= @option || 32 [= @option)))
@writeat("SET RDPADI=@outdrive:@subdir\\@expfn.EXP",31,12,100)
@endif
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@option 100 = "Put SET statements into AUTOEXEC.BAT"
@option 101 = "Put SET statements into @rootfn.BAT/ACADR12.BAT"
@endoption
@endif
@definevars
@if (32 [= @option)
@drive @a12bdrive = @acad12drive
@else
@drive @a12bdrive = @outdrive
@endif
@dir @a12bdir = "\\"
@qstring @a12bname = "ACADR12.BAT"
@endvars
@if (32 [= @option)
@getoption
@cls
@writeat("Please specify where your AutoCAD environment variables.",30,2,100)










    The AutoCAD Release 12 install defines several variables in order to
    allow ACAD R12 to find the files it needs to run.  Since you are not
    installing the driver into the default ..\DRV directory, the INSTALL
    needs to add the @subdir directory to the ACADDRV variable.

    If you have them in a batch file, select the top choice.  If you have
    put them into the AUTOEXEC.BAT file, select the bottom choice.

@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,20,100)
@option 176 = "AutoCAD R12 variables are in the AUTOEXEC.BAT"
@option 175 = "AutoCAD R12 variables are in a ACAD.BAT file"
@endoption
@if (175 [= @option)
@getoutdrive @a12bdrive
@cls
@suppress A
@suppress B
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,20,100)
@writeat("Please specify the drive where the AutoCAD R12 batch is located.",30,18,100)
@endoutdrive
@getsubdir @a12bdir
@cls
@writeat("Please specify the directory where the AutoCAD R12 batch is located.",30,8,100)
@writeat("Type the pathname and press <ENTER>.  <ESC> once to clear, twice to abort.",,20,100)
@localwindow(13,1)
@endsubdir
@getstring @a12bname
@cls
@writeat("Please specify the name of the AutoCAD R12 batch.",30,8,100)
@endstring
@if (!(@exists "@a12bdrive:@a12bdir\\@a12bname"))
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
 "@a12bname was not found in the directory:",
 "@a12bdrive:@a12bdir")













     The file specified does not exist, so the default version for
     ACAD 12 will be created, including the new node for the driver.

@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@endif
@endif
@if (100 [= @option || 101 [= @option || 175 [= @option || 176 [= @option)
@display
@cls
@windmsg(1,14,"--- I M P O R T A N T ---")



    Many programs use environment variables to allow the user to configure
    their system as they desire.  These variables, however, do require
    some small amount of memory.  The amount of memory set aside by the
    system by default is fairly small, but adequate for systems with few
    environment variables.  With the recent trend of software packages
    using environment variables, the default is often not enough.  If you
    encounter the message 'Out of environment space' while booting your
    system or running a batch file, then you should increase the amount of
    space set aside for these variables with the following line in your
    CONFIG.SYS file and reboot:

	       SHELL = C:\COMMAND.COM /P /E:xxxx

    where 'xxxx' is a decimal number.  1024 is a good number, but may
    not be sufficient if you have many environment variables set.

@pause
@enddisplay
@endif



@endif
@if (20 [= @option || 21 [= @option ||
 30 [= @option || 31 [= @option ||
 40 [= @option || 41 [= @option ||
 12 [= @option)
@getoption
@cls
@checkbox
@writeat("Select other utilities",30,,100)





    These programs are patches needed to fix problems with the programs
    driven by @name.  If in doubt, press 'Y' and ENTER.

    AutoPatch repairs some problems with protected mode drivers with
    AutoCAD Releases 10 and 11, as well as 3D Studio version 2.0.

    Use <SPACE> to toggle between Yes & No, and the <UP> <DOWN> arrow keys
    to move the cursor.  Press 'Y' to set them all to Yes and 'N' to set
    them all to No.  Press <ENTER> to continue.
@option 300 = "AutoPatch (Fix for ACAD & 3D Studio)"
@endoption
@endif
@if (30 [! @option && 31 [! @option && 32 [! @option && 40 [! @option &&
 41 [! @option && 50 [! @option &&
 (
 300 [= @option || 301 [= @option))
@getoutdrive @outdrive
@cls
@suppress A
@suppress B
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,20,100)
@writeat("Please specify the drive where the fix(es) should be located.",30,18,100)
@endoutdrive
@getsubdir @subdir
@cls
@writeat("Please specify the directory where the fix(es) should be located.",30,8,100)
@writeat("Type the pathname and press <ENTER>.  <ESC> once to clear, twice to abort.",,20,100)
@localwindow(13,1)
@endsubdir
@endif
@display
@writeat("You have made the following selections.",30,,100)
@if (20 [= @option)
@writeat("Express installation for AutoCAD Release 10",31,4,100)
@elseif (30 [= @option)
@writeat("CUstom installation for AutoCAD Release 10",31,4,100) @endif
@if (21 [= @option)
@writeat("Express installation for AutoCAD Release 11",31,5,100)
@elseif (31 [= @option)
@writeat("Custom installation for AutoCAD Release 11",31,5,100) @endif
@if (22 [= @option)
@writeat("Express installation for AutoCAD Release 12",31,6,100)
@elseif (32 [= @option)
@writeat("Custom installation for AutoCAD Release 12",31,6,100) @endif
@if (20 [! @option && 21 [! @option && 22 [! @option && 30 [! @option &&
     31 [! @option && 32 [! @option)
@writeat("No AutoCAD selections made.",31,5,100) @endif
@if (40 [= @option)
@writeat("3D Studio version 1.0",31,7,100) @endif
@if (41 [= @option)
@writeat("3D Studio version 2.0",31,8,100) @endif
@if (40 [! @option && 41 [! @option)
@writeat("No 3D Studio selections made.",31,7,100) @endif
@if (50 [= @option)
@writeat("AutoShade with Renderman",31,9,100)
@else
@writeat("No AutoShade with Rendermade selection made.",31,9,100) @endif
@if (300 [= @option)
@writeat("AutoPatch fix program",31,13,100) @endif
@if (300 [! @option && 301 [! @option)
@writeat("No fix utilities selected",31,13,100) @endif
@writeat("If these selections are not correct, then press [ESC] and rerun install.",
	 79,16,100)
@writeat("   Note that some boxes require the <SPACE>, or 'Y' keys to be pressed  ",
	 79,17,100)
@writeat("              before any of the options are selected.                   ",
	 79,18,100)
@writeat("      Please read the instructions on each screen carefully!            ",
	 79,19,100)

@pause
@enddisplay
@display
@writeat("The following files will be installed.",30,1,100)
@if (20 [= @option)
@writeat("@expfn.EXP => @acad10drive:@acad10dir\\ADIDISP.EXP",31,2,100)
@writeat("@resfn.RES => @acad10drive:@acad10dir\\@resfn.RES",31,3,100) @endif
@if (21 [= @option)
@writeat("@expfn.EXP => @acad11drive:@acad11dir\\ADIDISP.EXP",31,5,100)
@writeat("@resfn.RES => @acad11drive:@acad11dir\\@resfn.RES",31,6,100) @endif
@if (22 [= @option)
@writeat("@expfn.EXP => @acad12drive:@acad12dir\\DRV\\@expfn.EXP",31,8,100)
@writeat("@resfn.RES => @acad12drive:@acad12dir\\DRV\\@resfn.RES",31,9,100) @endif
@if (30 [= @option || 31 [= @option || 32 [= @option || 40 [= @option || 41 [= @option || 50 [= @option )
@writeat("@expfn.EXP => @outdrive:@subdir\\@expfn.EXP",31,11,100)
@writeat("@resfn.RES => @outdrive:@subdir\\@resfn.RES",31,12,100) @endif
@if (300 [= @option)
@writeat("APATCH.EXE/.DOC => @outdrive:@subdir\\APATCH.EXE/.DOC",31,13,100) @endif
@if (20 [! @option && 21 [! @option && 22 [! @option &&
     30 [! @option && 31 [! @option && 32 [! @option &&
     40 [! @option && 41 [! @option && 50 [! @option &&
     200 [! @option && 201 [! @option && 202 [! @option &&
     300 [! @option && 301 [! @option
)
@writeat("No Files Selected!",207,7,100)
@endif
@pause
@enddisplay
@if (
 100 [= @option || 101 [= @option ||
 175 [= @option || 176 [= @option
 )
@getoption
@cls
@writeat("Configuration changes",30,,100)







    Displaying to screen only will make no changes to your system, but
    you must make any displayed changes before running the program.

    If you select the .NEW file output, then the changes needed will be
    written into a file of the same name, with an extention of .NEW.
    Use an editor to make the changes in the original file (or, in the
    case of 3DS.NEW, just rename it 3DS.SET).

    If you select the direct change, a backup of your file will be made
    with the extention .BAK.

@option 400 = "Display required commands to screen only"
@option 401 = "Create .NEW files, if needed"
@option 402 = "Modify files directly, making backups, if needed"
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@endoption
@endif
@if (100 [= @option
)
@setautoexec
@if (400 [= @option)
@screenproto
@elseif (401 [= @option)
@diskproto
@elseif (402 [= @option)
@askoverwrite
@endif
@if (100 [= @option)
@if (30 [= @option || 31 [= @option || 50 [= @option)
@setreplace("DSPADI","@outdrive:@subdir\\@expfn.EXP")
@endif
@setreplace("VIBCFG","@outdrive:@subdir\\@cfgfn.CFG")
@if (40 [= @option || 41 [= @option)
@setreplace("RCPADI","@outdrive:@subdir\\@expfn.EXP")
@endif
@if (151 [= @option || ((@strequal("@getenvstr("RDPADI")","\\")==1) &&
     (50 [= @option || 41 [= @option ||  32 [= @option)))
@setreplace("RDPADI","@outdrive:@subdir\\@expfn.EXP")
@endif
@endif

@if (176 [= @option)
@setappend("ACADDRV","@outdrive:@subdir")
@endif
@endautoexec
@endif
@if (101 [= @option && (20 [= @option || 21 [= @option ||
      30 [= @option || 31 [= @option || 40 [= @option ||
      41 [= @option || 50 [= @option))
@setbatch
@if (400 [= @option)
@screenproto
@elseif (401 [= @option)
@diskproto
@else
@askoverwrite
@endif
@file "@rootfn.BAT"
@if (30 [= @option || 31 [= @option || 50 [= @option)
@setreplace("DSPADI","@outdrive:@subdir\\@expfn.EXP")
@endif
@setreplace("VIBCFG","@outdrive:@subdir\\@cfgfn.CFG")
@if (40 [= @option || 41 [= @option)
@setreplace("RCPADI","@outdrive:@subdir\\@expfn.EXP")
@endif
@if (151 [= @option || ((@strequal("@getenvstr("RDPADI")","\\")==1) &&
     (50 [= @option || 41 [= @option ||  32 [= @option)))
@setreplace("RDPADI","@outdrive:@subdir\\@expfn.EXP")
@endif
@endbatch
@endif
@if (175 [= @option)
@setbatch
@if (400 [= @option)
@screenproto
@elseif (401 [= @option)
@diskproto
@elseif (402 [= @option)
@askoverwrite
@endif
@file "@a12bdrive:@a12bdir\\@a12bname"
@if (101 [= @option)
@if (151 [= @option || ((@strequal("@getenvstr("RDPADI")","\\")==1)))
@setreplace("RDPADI","@outdrive:@subdir\\@expfn.EXP")
@endif
@setreplace("VIBCFG","@outdrive:@subdir\\@cfgfn.CFG")
@endif
@if (!(@exists "@a12bdrive:@a12bdir\\@a12bname"))
@setappend("ACAD","@acad12drive:@acad12dir\\SUPPORT;@acad12drive:@acad12dir\\FONTS;@acad12drive:@acad12dir\\ADS")
@setappend("ACADCFG","@acad12drive:@acad12dir")
@setappend("ACADDRV","@acad12drive:@acad12dir\\DRV;@outdrive:@subdir")
@verbatim "@acad12drive:@acad12dir\\ACAD %1 %2"
@else
@setappend("ACADDRV","@outdrive:@subdir")
@endif
@endbatch
@endif
@if (40 [= @option)
@if (!(@exists "@s3d1drive:@s3d1dir\\3DS.SET"))
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
 "3DS.SET was not found in the 3D-Studio 1.0 directory:",
 "@s3d1drive:@s3d1dir")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (400 [= @option || (!(@exists "@s3d1drive:@s3d1dir\\3DS.SET")))
@display
@cls
@windmsg(2,14,"--- I M P O R T A N T ---")






     For 3D-Studio 1.0 to utilize the new driver, the 3DS.SET file needs
     several changes.  Note that any text that appears on a line after
     a semi-colon (";") will be ignored by 3D Studio 1.0.  The default
     has some lines 'commented-out' by starting with a semi-colon.  The
     semi-colon's should be removed in the following lines:

	 The line containing 'DEFAULT-DISPLAY' should be replaced with
	     'DEFAULT-DISPLAY = "RCPADI"'
	 The line containing 'MAIN-DISPLAY' should be replaced with
	     'MAIN-DISPLAY = RCPADI'
	 The line containing 'MATERIAL-DISPLAY' should be replaced with
	     'MATERIAL-DISPLAY = RCPADI'

@pause
@enddisplay
@elseif (401 [= @option && (@exists "@s3d1drive:@s3d1dir\\3DS.SET"))
@copy("@s3d1drive:@s3d1dir\\3DS.SET","@s3d1drive:@s3d1dir\\3DS.NEW")
@if (@filesar("@s3d1drive:@s3d1dir\\3DS.NEW","DEFAULT-DISPLAY",
 "DEFAULT-DISPLAY = \"RCPADI\"",,,,,1)==0)
@getoption
@cls
@windmsg(2,79,"--- W A R N I N G ! ---",
 "Couldn't find 'DEFAULT-DISPLAY' in",
 "@s3d1drive:@s3d1dir\\3DS.SET")











   For 3D Studio 1.0 to work properly, several lines in 3DS.SET should be
   changed.  Note that any text that appears on a line after a semi-colon
   (";") will be ignored by 3D Studio 1.0.  The default has some lines
   'commented-out' by starting with a semi-colon.

   A line containing 'DEFAULT-DISPLAY' could not be found.  Add the line
       'DEFAULT-DISPLAY = "RCPADI"' to the file!
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@localwindow(11,40)
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (@filesar("@s3d1drive:@s3d1dir\\3DS.NEW","MAIN-DISPLAY",
 "MAIN-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(2,79,"--- W A R N I N G ! ---",
"Couldn't find 'MAIN-DISPLAY' in",
"@s3d1drive:@s3d1dir\\3DS.SET")












   For 3D Studio 1.0 to work properly, several lines in 3DS.SET should be
   changed.  Note that any text that appears on a line after a semi-colon
   (";") will be ignored by 3D Studio 1.0.  The default has some lines
   'commented-out' by starting with a semi-colon.

   A line containing 'MAIN-DISPLAY' could not be found.  Add the line
       'MAIN-DISPLAY = RCPADI' to the file!
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@localwindow(11,40)
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (@filesar("@s3d1drive:@s3d1dir\\3DS.NEW","MATERIAL-DISPLAY",
 "MATERIAL-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
 "Couldn't find 'MATERIAL-DISPLAY' in",
 "@s3d1drive:@s3d1dir\\3DS.SET")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@display
@cls
@windmsg(11,46,"The file @s3d1drive:@s3d1dir\\3DS.NEW, which contains",
"the prototype of 3DS.SET for version 1.0, has been written to disk",
"Incorporate the changes before running @name.")





@pause
@enddisplay
@elseif (402 [= @option)
@if (!(@exists "@s3d1drive:@s3d1dir\\3DS.OLD"))
@copy("@s3d1drive:@s3d1dir\\3DS.SET","@s3d1drive:@s3d1dir\\3DS.OLD")
@else
@copy("@s3d1drive:@s3d1dir\\3DS.SET","@s3d1drive:@s3d1dir\\3DS.BAK")
@endif
@if (@filesar("@s3d1drive:@s3d1dir\\3DS.SET","DEFAULT-DISPLAY",
"DEFAULT-DISPLAY = \"RCPADI\"",,,,,1)==0)
@getoption
@cls
@windmsg(2,79,"--- W A R N I N G ! ---",
 "Couldn't find 'DEFAULT-DISPLAY' in",
 "@s3d1drive:@s3d1dir\\3DS.SET")











   For 3D Studio 1.0 to work properly, several lines in 3DS.SET should be
   changed.  Note that any text that appears on a line after a semi-colon
   (";") will be ignored by 3D Studio 1.0.  The default has some lines
   'commented-out' by starting with a semi-colon.

   A line containing 'DEFAULT-DISPLAY' could not be found.  Add the line
       'DEFAULT-DISPLAY = "RCPADI"' to the file!
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@localwindow(11,40)
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (@filesar("@s3d1drive:@s3d1dir\\3DS.SET","MAIN-DISPLAY",
 "MAIN-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(2,79,"--- W A R N I N G ! ---",
 "Couldn't find 'MAIN-DISPLAY' in",
 "@s3d1drive:@s3d1dir\\3DS.SET")












   For 3D Studio 1.0 to work properly, several lines in 3DS.SET should be
   changed.  Note that any text that appears on a line after a semi-colon
   (";") will be ignored by 3D Studio 1.0.  The default has some lines
   'commented-out' by starting with a semi-colon.

   A line containing 'MAIN-DISPLAY' could not be found.  Add the line
       'MAIN-DISPLAY = RCPADI' to the file!
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@localwindow(11,40)
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (@filesar("@s3d1drive:@s3d1dir\\3DS.SET","MATERIAL-DISPLAY",
 "MATERIAL-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
 "Couldn't find 'MATERIAL-DISPLAY' in",
 "@s3d1drive:@s3d1dir\\3DS.SET")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@else
@display
@cls
@windmsg(11,46,"The file @s3d1drive:@s3d1dir\\3DS.SET for version 1.0 has been updated")





@pause
@enddisplay
@endif
@endif
@endif
@if (41 [= @option) // 3D-Studio 3DS.SET changes
@if (!(@exists "@s3d2drive:@s3d2dir\\3DS.SET"))
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
 "3DS.SET was not found in the 3D-Studio 2.0 directory:",
 "@s3d2drive:@s3d2dir")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (400 [= @option || (!(@exists "@s3d2drive:@s3d2dir\\3DS.SET")))
@display
@cls
@windmsg(2,14,"--- I M P O R T A N T ---")






     For 3D-Studio 2.0 to utilize the new driver, the 3DS.SET file needs
     several changes.  Note that any text that appears on a line after
     a semi-colon (";") will be ignored by 3D Studio 2.0.  The default
     has some lines 'commented-out' by starting with a semi-colon.  The
     semi-colon's should be removed in the following lines:

	 The line containing 'RENDER-DISPLAY' should be replaced with
	     'RENDER-DISPLAY = RCPADI'
	 The line containing 'MAIN-DISPLAY' should be replaced with
	     'MAIN-DISPLAY = RCPADI'
	 The line containing 'MATERIAL-DISPLAY' should be replaced with
	     'MATERIAL-DISPLAY = RCPADI'

@pause
@enddisplay
@elseif (401 [= @option && (@exists "@s3d2drive:@s3d2dir\\3DS.SET"))
@copy("@s3d2drive:@s3d2dir\\3DS.SET","@s3d2drive:@s3d2dir\\3DS.NEW")
@if (@filesar("@s3d2drive:@s3d2dir\\3DS.NEW","RENDER-DISPLAY",
 "RENDER-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(2,79,"--- W A R N I N G ! ---",
 "Couldn't find 'RENDER-DISPLAY' in",
 "@s3d2drive:@s3d2dir\\3DS.SET")











   For 3D Studio 2.0 to work properly, several lines in 3DS.SET should be
   changed.  Note that any text that appears on a line after a semi-colon
   (";") will be ignored by 3D Studio 2.0.  The default has some lines
   'commented-out' by starting with a semi-colon.

   A line containing 'RENDER-DISPLAY' could not be found.  Add the line
       'RENDER-DISPLAY = RCPADI' to the file!
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@localwindow(11,40)
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (@filesar("@s3d2drive:@s3d2dir\\3DS.NEW","MAIN-DISPLAY",
 "MAIN-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(2,79,"--- W A R N I N G ! ---",
 "Couldn't find 'MAIN-DISPLAY' in",
 "@s3d2drive:@s3d2dir\\3DS.SET")












   For 3D Studio 2.0 to work properly, several lines in 3DS.SET should be
   changed.  Note that any text that appears on a line after a semi-colon
   (";") will be ignored by 3D Studio 2.0.  The default has some lines
   'commented-out' by starting with a semi-colon.

   A line containing 'MAIN-DISPLAY' could not be found.  Add the line
       'MAIN-DISPLAY = RCPADI' to the file!
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@localwindow(11,40)
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (@filesar("@s3d2drive:@s3d2dir\\3DS.NEW","MATERIAL-DISPLAY",
 "MATERIAL-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
 "Couldn't find 'MATERIAL-DISPLAY' in",
 "@s3d2drive:@s3d2dir\\3DS.SET")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@display
@cls
@windmsg(11,46,"The file @s3d2drive:@s3d2dir\\3DS.NEW, which contains",
 "the prototype of 3DS.SET for version 2.0, has been written to disk",
 "Incorporate the changes before running @name.")





@pause
@enddisplay
@elseif (402 [= @option)
@if (!(@exists "@s3d2drive:@s3d2dir\\3DS.OLD"))
@copy("@s3d2drive:@s3d2dir\\3DS.SET","@s3d2drive:@s3d2dir\\3DS.OLD")
@else
@copy("@s3d2drive:@s3d2dir\\3DS.SET","@s3d2drive:@s3d2dir\\3DS.BAK")
@endif
@if (@filesar("@s3d2drive:@s3d2dir\\3DS.SET","RENDER-DISPLAY",
 "RENDER-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(2,79,"--- W A R N I N G ! ---",
 "Couldn't find 'RENDER-DISPLAY' in",
 "@s3d2drive:@s3d2dir\\3DS.SET")











   For 3D Studio 2.0 to work properly, several lines in 3DS.SET should be
   changed.  Note that any text that appears on a line after a semi-colon
   (";") will be ignored by 3D Studio 2.0.  The default has some lines
   'commented-out' by starting with a semi-colon.

   A line containing 'RENDER-DISPLAY' could not be found.  Add the line
       'RENDER-DISPLAY = RCPADI' to the file!
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@localwindow(11,40)
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (@filesar("@s3d2drive:@s3d2dir\\3DS.SET","MAIN-DISPLAY",
 "MAIN-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(2,79,"--- W A R N I N G ! ---",
 "Couldn't find 'MAIN-DISPLAY' in",
 "@s3d2drive:@s3d2dir\\3DS.SET")












   For 3D Studio 2.0 to work properly, several lines in 3DS.SET should be
   changed.  Note that any text that appears on a line after a semi-colon
   (";") will be ignored by 3D Studio 2.0.  The default has some lines
   'commented-out' by starting with a semi-colon.

   A line containing 'MAIN-DISPLAY' could not be found.  Add the line
       'MAIN-DISPLAY = RCPADI' to the file!
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@localwindow(11,40)
@endoption
@if (10000 [= @option)	@abort	@endif
@endif
@if (@filesar("@s3d2drive:@s3d2dir\\3DS.SET","MATERIAL-DISPLAY",
 "MATERIAL-DISPLAY = RCPADI",,,,,1)==0)
@getoption
@cls
@windmsg(3,79,"--- W A R N I N G ! ---",
 "Couldn't find 'MATERIAL-DISPLAY' in",
 "@s3d2drive:@s3d2dir\\3DS.SET")
@writeat("NO FILES WILL BE INSTALLED IF YOU DO NOT CONTINUE",148,19,100)
@writeat("Use the <UP> <DOWN> arrow keys to move and <ENTER> to select.",,21,100)
@localwindow(13,40)
@option 10000 = "Quit installation!"
@option 10001 = "Continue"
@endoption
@if (10000 [= @option)	@abort	@endif
@else
@display
@cls
@windmsg(11,46,"The file @s3d2drive:@s3d2dir\\3DS.SET for version 2.0 has been updated")





@pause
@enddisplay
@endif
@endif
@endif
@definedisk
@label = "Distribution Disk"
@beginlib @rootfn.RED
@if (20 [= @option)
@file @expfn.EXP @out @acad10drive:@acad10dir\\ADIDISP.EXP
@file @resfn.RES @out @acad10drive:@acad10dir\\*.*
@endif
@if (21 [= @option)
@file @expfn.EXP @out @acad11drive:@acad11dir\\ADIDISP.EXP
@file @resfn.RES @out @acad11drive:@acad11dir\\*.*
@endif
@if (22 [= @option)
@file @expfn.EXP @out @acad12drive:@acad12dir\\DRV\\*.*
@file @resfn.RES @out @acad12drive:@acad12dir\\DRV\\*.*
@endif
@if (30 [= @option || 31 [= @option || 32 [= @option || 40 [= @option ||
 41 [= @option || 50 [= @option )
@file @expfn.EXP
@file @resfn.RES
@endif
@if (300 [= @option)
@file APATCH.EXE
@file APATCH.DOC
@endif
@endlib
@enddisk
@finish
@if (30 [= @option || 31 [= @option || 32 [= @option)
@if (@exists "@acad10drive:@acad10dir\\@cfgfn.CFG")
@copy("@acad10drive:@acad10dir\\@cfgfn.CFG",
"@outdrive:@subdir\\@cfgfn.CFG")
@delete("@acad10drive:@acad10dir\\@cfgfn.CFG") @endif
@if (@exists "@acad11drive:@acad11dir\\@cfgfn.CFG")
@copy("@acad11drive:@acad11dir\\@cfgfn.CFG",
"@outdrive:@subdir\\@cfgfn.CFG")
@delete("@acad11drive:@acad11dir\\@cfgfn.CFG") @endif
@if (@exists "@acad12drive:@acad12dir\\@cfgfn.CFG")
@copy("@acad12drive:@acad12dir\\@cfgfn.CFG",
"@outdrive:@subdir\\@cfgfn.CFG")
@delete("@acad12drive:@acad12dir\\@cfgfn.CFG") @endif
@endif
@if (40 [= @option)
@if (@exists "@s3D1drive:@s3D1dir\\3DADI.CFG")
@delete("@s3D1drive:@s3D1dir\\3DADI.CFG") @endif @endif
@if (41 [= @option)
@if (@exists "@s3D2drive:@s3D2dir\\3DADI.CFG")
@delete("@s3D2drive:@s3D2dir\\3DADI.CFG") @endif @endif
@if (20 [= @option || 21 [= @option || 22 [= @option ||
     30 [= @option || 31 [= @option || 32 [= @option ||
     40 [= @option || 41 [= @option || 50 [= @option)
    The installation of @name is complete.
@else
    @name was not installed. @endif
@if (400 [= @option || 401 [= @option)
    Please make the changes to the files requested by INSTALL. @endif
@if (100 [= @option || 201 [= @option || 202 [= @option)
    Reboot your system before running the product with the new driver. @endif
@if (101 [= @option)
    Run the batch file before running the product with the new driver. @endif
@if (300 [= @option)
    AutoPatch was placed at @outdrive:@subdir.	Simply run the program and
    follow the instructions.  If you have trouble with your new driver, like
    random crashing or other conflicts, try this patch program.
    Read APATCH.DOC for instructions. @endif
@pause
@chdrive @startupdrive
@chdir "@startupdir"
@endfinish










