@DefineProject
    @NAME           = "AutoVision"
    @VERSION        = "1.0"
    @Language = @EN @Endlang
    @ABANNER        = " AutoVision 1.0 Installation Utility "
    @SUBDIR         = "\\AUTOVIS"
    @OUTDRIVE       = C
    @GROUP          = "Z"
    @Requires       @HardDisk
    @UPDATE         = (0)    /* Bugfix = 1, Regular = 0 */
@EndProject

@DefineVars
    @Dir            @Subdir2        = ""    /* directory type */

/* Remember to also update the space requirements in the user messages */
    @Integer        @AVISEXE        =  3500000
    @Integer        @Temp           =        0
    @Integer        @FREE           =        0
    @Integer        @International  =        0
@EndVars

@WELCOME
    @CLS

    @if (@Language == @EN)
@DATXMSG(106,"\tThis program will install the ENGLISH version")
@DATXMSG(107,"\tof AutoVision R1.0 on your computer.")
    @endif


    @pause
    @If (@CPU < 386)
@DATXMSG(1,"\t@Name requires an 80386 or 80486 CPU.  ")
@DATXMSG(2,"\tYour computer is running on a 80@CPU CPU.")
                   

        @Pause
    @Endif

    @If ((@OSMajor * 100 + @OSMinor) < 330)
@DATXMSG(3,"\t@NAME requires DOS version 3.30 or higher.")

        @Pause
    @Endif
 
    @CLS

@DATXMSG(105,"\tThis program installs AutoVision R1.0 on your computer ")
@DATXMSG(5,"\tsystem and checks the distribution disks for errors.  ")
@DATXMSG(6,"\tYou can specify the drive and directory where you want to")
@DATXMSG(7,"\tinstall @NAME.  The program creates the directory for you.  ")
@DATXMSG(8,"\tYou can choose to copy only selected parts of the software.")

@DATXMSG(9,"\tEach screen of this program offers a choice and a default response.")
@DATXMSG(10,"\tPress the RETURN key to accept the default.  Otherwise type or ")
@DATXMSG(11,"\tselect another response and then press the RETURN key.")
@DATXMSG(12,"\tIf you make a mistake while typing, press the BACKSPACE key")
@DATXMSG(13,"\tand retype the entry.")
        
@DATXMSG(14,"\tYou can press the ESC key at any time to cancel installation     ")
@DATXMSG(15,"\tand return to the operating system.")

    @PAUSE
@EndWelcome


SelectDrv:
/* Compute amount of disk space needed to install selected files */
@Equal(@FREE = @AVISEXE)  

@GetOutDrive
    @Suppress A      /* don't display A: */
    @Suppress B      /* or B:            */
    @CLS
@DATXMSG(16,"\tOn which disk drive do you want to install @NAME?")
















@DATXMSG(17,"\tUse the up and down cursor keys to scroll through the")
@DATXMSG(18,"\tlist of disk drives.  Press the RETURN key when you have ")
@DATXMSG(19,"\tselected a drive.")

@EndOutDrive

@If (@WriteDisk @OutDrive == 1)  /* Is selected drive writeable? */
    @GetOption

@DATXMSG(111,"\tThe selected output disk drive is read only.")
@DATXMSG(112,"\tDo you want to select another drive?")
    @LocalWindow(12,40)
        @Option  20 = "@DATXMSG(113,"Abort Install")"
        @option  21 = "@DATXMSG(77,"Select another drive")"
    @EndOption

    @If(21 [= @Option)
        @ClearOption(21)
        @GoTO SelectDRV
    @Else
        @Abort
    @Endif
@EndIf
    
@If (@update == 0)   /* Can't check space avaiable on updates */

    @If (@DiskFree  @OutDrive < @FREE) 
        @GetOption

@DATXMSG(72,"\tThe selected output disk drive only has @DiskFree @OutDrive bytes free.")
@DATXMSG(73,"\tTo install the files you have selected, @FREE bytes are ")
@DATXMSG(74,"\trequired.")

@DATXMSG(75,"\tDo you want to install on this drive anyway or select another drive?")
        @LocalWindow(12,40)
            @Option  10 = "@DATXMSG(76,"Continue")"
            @Option  11 = "@DATXMSG(77,"Select another drive")"
        @EndOption
    @EndIf

    @If(11 [= @Option)
        @ClearOption(11)
        @GoTO SelectDRV
    @Endif
@Endif

Selectsubdir:
@GetSubdir
    @CLS

@DATXMSG(20,"\tHere you specify the name of the directory where @NAME")
@DATXMSG(21,"\twill be installed.  By default, the name of this directory is:")
            @SUBDIR.  
@DATXMSG(22,"\tThe program locates it below the root directory of the disk")
@DATXMSG(23,"\tdrive you selected.  If you have no preference, choose the")
@DATXMSG(24,"\tdefault by pressing the RETURN key.")

@DATXMSG(25,"\tTo change the directory name, backspace over the directory name")
@DATXMSG(26,"\tand type a new name.  Press the RETURN key when you have finished ")
@DATXMSG(27,"\ttyping the name.")






    @PROMPT = "@DATXMSG(28," Which subdirectory ? ")"
@EndSubdir

    @IF (@Exists "@OutDrive:@SubDir")
            @GetOption
    @DATXMSG(39,"\tApparently there is already a directory called:")
          @OutDrive:@SubDir.

    @DATXMSG(40,"\tDo you want to continue installing over the files in this")
    @DATXMSG(41,"\tdirectory?")

            @LocalWindow(12,40)
            @Option 1 = "@DATXMSG(42,"Yes")"
            @Option 2 = "@DATXMSG(43,"No")"


            @EndOption

    @Endif
    @Display
       @If(2 [= @Option)
    @DATXMSG(44,"\tSelect another directory.")
            @ClearOption(2)
            @Pause
            @GoTo Selectsubdir
       @Endif
    @EndDisplay


        /*AVIS Disk 1*/
@DefineDisk    
        @LABEL = "AUTOVIS_1"
        @File autovis.exp    @Packed @Out ACAD\*.*
        @File autovis.xmx    @Packed @Out ACAD\*.*
        @File readme.ave     @Packed
        @File autovis.mli    @Packed @Out ACAD\*.*
        @File ave.dcl        @Packed @Out SUPPORT\*.*
        @File acadr12.lsp    @Packed @Out SUPPORT\*.*
        @File acad.mnu       @Packed @Out SUPPORT\*.*
        @File acad.mnl       @Packed @Out SUPPORT\*.*
@EndDisk

        /*AVIS Disk 2*/
@DefineDisk    
        @LABEL = "AUTOVIS_2"
        @File autovis.hlp        @Packed @Out SUPPORT\*.*
        @File africa.map         @Packed @Out SUPPORT\*.*
        @File asia.map           @Packed @Out SUPPORT\*.*
        @File aust.map           @Packed @Out SUPPORT\*.*
        @File europe.map         @Packed @Out SUPPORT\*.*
        @File india.map          @Packed @Out SUPPORT\*.*
        @File namer.map          @Packed @Out SUPPORT\*.*
        @File samer.map          @Packed @Out SUPPORT\*.*
        @File sitename.txt       @Packed @Out SUPPORT\*.*
        @File camera.dwg         @Packed @Out SUPPORT\*.*
        @File direct.dwg         @Packed @Out SUPPORT\*.*
        @File overhead.dwg       @Packed @Out SUPPORT\*.*
        @File rm_sdb.dwg         @Packed @Out SUPPORT\*.*
        @File sh_spot.dwg        @Packed @Out SUPPORT\*.*
        @File avtut-1.dwg        @Packed @Out TUTORIAL\*.*
        @File avtut-2.dwg        @Packed @Out TUTORIAL\*.*
        @File avtut-3.dwg        @Packed @Out TUTORIAL\*.*
        @File avtut-4.dwg        @Packed @Out TUTORIAL\*.*
        @File avtut-5.dwg        @Packed @Out TUTORIAL\*.*
        @File winmask.tga        @Packed @Out TUTORIAL\*.*
        @File marbpale.tga       @Packed @Out MAPS\*.*
        @File marbteal.tga       @Packed @Out MAPS\*.*
        @File oak_bed1.tga       @Packed @Out MAPS\*.*
        @File oak_bed2.tga       @Packed @Out MAPS\*.*
        @File sky.tga            @Packed @Out MAPS\*.*
@EndDisk

        /*AVIS Disk 3*/
@DefineDisk    
        @LABEL = "AUTOVIS_3"
        @BeginLib MAPS.001           
           @File 3d.tga             @Packed @Out MAPS\*.*
           @File 3ds.tga            @Packed @Out MAPS\*.*
           @File adesk2.tga         @Packed @Out MAPS\*.*
           @File ape.tga            @Packed @Out MAPS\*.*
           @File aqurfrnt.tga       @Packed @Out MAPS\*.*
           @File aqurside.tga       @Packed @Out MAPS\*.*
           @File ashsen.tga         @Packed @Out MAPS\*.*
           @File asign.tga          @Packed @Out MAPS\*.*
           @File bbody.tga          @Packed @Out MAPS\*.*
           @File bbody2.tga         @Packed @Out MAPS\*.*
           @File benediti.tga       @Packed @Out MAPS\*.*
           @File biglake.tga        @Packed @Out MAPS\*.*
           @File blplanet.tga       @Packed @Out MAPS\*.*
           @File bluchina.tga       @Packed @Out MAPS\*.*
           @File bmps.tga           @Packed @Out MAPS\*.*
           @File brnbricb.tga       @Packed @Out MAPS\*.*
           @File brnbrick.tga       @Packed @Out MAPS\*.*
           @File brnmarop.tga       @Packed @Out MAPS\*.*
           @File brwmmarb.tga       @Packed @Out MAPS\*.*
           @File bubinga.tga        @Packed @Out MAPS\*.*
           @File buttons.tga        @Packed @Out MAPS\*.*
           @File bwcheckr.tga       @Packed @Out MAPS\*.*
           @File camoflab.tga       @Packed @Out MAPS\*.*
           @File camoflag.tga       @Packed @Out MAPS\*.*
           @File canada.tga         @Packed @Out MAPS\*.*
           @File cement.tga         @Packed @Out MAPS\*.*
           @File checker.tga        @Packed @Out MAPS\*.*
           @File checkers.tga       @Packed @Out MAPS\*.*
           @File clock.tga          @Packed @Out MAPS\*.*
           @File cloud.tga          @Packed @Out MAPS\*.*
           @File conctile.tga       @Packed @Out MAPS\*.*
           @File cruiser.tga        @Packed @Out MAPS\*.*
           @File dash.tga           @Packed @Out MAPS\*.*
           @File dimple.tga         @Packed @Out MAPS\*.*
           @File earthmap.tga               @Out MAPS\*.*
           @File eye_iris.tga       @Packed @Out MAPS\*.*
           @File fence.tga          @Packed @Out MAPS\*.*
           @File gold.tga           @Packed @Out MAPS\*.*
           @File granite.tga        @Packed @Out MAPS\*.*
           @File gravel1.tga        @Packed @Out MAPS\*.*
           @File graymarb.tga       @Packed @Out MAPS\*.*
           @File grid.tga           @Packed @Out MAPS\*.*
           @File grill.tga          @Packed @Out MAPS\*.*
           @File grybrick.tga       @Packed @Out MAPS\*.*
           @File house2_l.tga       @Packed @Out MAPS\*.*
           @File idkwood.tga        @Packed @Out MAPS\*.*
           @File ildwood1.tga       @Packed @Out MAPS\*.*
           @File imarble.tga        @Packed @Out MAPS\*.*
           @File imetal.tga         @Packed @Out MAPS\*.*
           @File imetalb.tga        @Packed @Out MAPS\*.*
           @File inlay3.tga         @Packed @Out MAPS\*.*
           @File inlay4.tga         @Packed @Out MAPS\*.*
           @File ipavers.tga        @Packed @Out MAPS\*.*
           @File ishingl2.tga       @Packed @Out MAPS\*.*
           @File istone2.tga        @Packed @Out MAPS\*.*
           @File ivines1.tga        @Packed @Out MAPS\*.*
           @File jfish.tga          @Packed @Out MAPS\*.*
        @EndLib
@EndDisk

        /*AVIS Disk 4*/
@DefineDisk    
        @LABEL = "AUTOVIS_4"
        @BeginLib MAPS.002           
           @File jupiter.tga        @Packed @Out MAPS\*.*
           @File lattic1.tga        @Packed @Out MAPS\*.*
           @File lattic2.tga        @Packed @Out MAPS\*.*
           @File leaf.tga           @Packed @Out MAPS\*.*
           @File mum.tga            @Packed @Out MAPS\*.*
           @File palmfrnd.tga       @Packed @Out MAPS\*.*
           @File pat0003.tga        @Packed @Out MAPS\*.*
           @File pat0006.tga        @Packed @Out MAPS\*.*
           @File pat0007.tga        @Packed @Out MAPS\*.*
           @File pat0016.tga        @Packed @Out MAPS\*.*
           @File pat0019.tga        @Packed @Out MAPS\*.*
           @File pat0027.tga        @Packed @Out MAPS\*.*
           @File pat0035.tga        @Packed @Out MAPS\*.*
           @File pat0039.tga        @Packed @Out MAPS\*.*
           @File pat0084.tga        @Packed @Out MAPS\*.*
           @File pat0094.tga        @Packed @Out MAPS\*.*
           @File pat0106.tga        @Packed @Out MAPS\*.*
           @File pat0107.tga        @Packed @Out MAPS\*.*
           @File pat0110.tga        @Packed @Out MAPS\*.*
           @File pat0111.tga        @Packed @Out MAPS\*.*
           @File pat0127.tga        @Packed @Out MAPS\*.*
           @File pat0134.tga        @Packed @Out MAPS\*.*
           @File pat0148.tga        @Packed @Out MAPS\*.*
           @File pat0149.tga        @Packed @Out MAPS\*.*
           @File pat0150.tga        @Packed @Out MAPS\*.*
           @File pat0153.tga        @Packed @Out MAPS\*.*
           @File pat0155.tga        @Packed @Out MAPS\*.*
           @File pat0158.tga        @Packed @Out MAPS\*.*
           @File pinkmarb.tga       @Packed @Out MAPS\*.*
           @File racebutt.tga       @Packed @Out MAPS\*.*
           @File racecar.tga        @Packed @Out MAPS\*.*
           @File rad0p.tga          @Packed @Out MAPS\*.*
           @File radio03.tga        @Packed @Out MAPS\*.*
           @File refmap.tga         @Packed @Out MAPS\*.*
           @File ringopac.tga       @Packed @Out MAPS\*.*
           @File ringtex.tga        @Packed @Out MAPS\*.*
           @File sand.tga           @Packed @Out MAPS\*.*
           @File squig.tga          @Packed @Out MAPS\*.*
           @File stereo.tga         @Packed @Out MAPS\*.*
           @File stereobp.tga       @Packed @Out MAPS\*.*
           @File sunset.tga         @Packed @Out MAPS\*.*
           @File teak.tga           @Packed @Out MAPS\*.*
           @File tile0003.tga       @Packed @Out MAPS\*.*
           @File tile0009.tga       @Packed @Out MAPS\*.*
           @File tile0011.tga       @Packed @Out MAPS\*.*
           @File tile0016.tga       @Packed @Out MAPS\*.*
           @File tile0020.tga       @Packed @Out MAPS\*.*
           @File treetrnk.tga       @Packed @Out MAPS\*.*
           @File tv.tga             @Packed @Out MAPS\*.*
           @File tv_bmp.tga         @Packed @Out MAPS\*.*
           @File usflag.tga         @Packed @Out MAPS\*.*
           @File valley_l.tga               @Out MAPS\*.*
           @File w6bkgnd.tga        @Packed @Out MAPS\*.*
           @File wheelmap.tga       @Packed @Out MAPS\*.*
           @File whiteash.tga       @Packed @Out MAPS\*.*
           @File window.tga         @Packed @Out MAPS\*.*
           @File window1.tga        @Packed @Out MAPS\*.*
           @File window2.tga        @Packed @Out MAPS\*.*
           @File window3.tga        @Packed @Out MAPS\*.*
           @File window4.tga        @Packed @Out MAPS\*.*
           @File window5.tga        @Packed @Out MAPS\*.*
           @File window6.tga        @Packed @Out MAPS\*.*
           @File x29decal.tga       @Packed @Out MAPS\*.*
           @File x29decl2.tga       @Packed @Out MAPS\*.*
        @EndLib
@EndDisk

@Finish
    @CLS
    @ChDrive @OutDrive
    @ChDir "\\"
    @ChDir "@SUBDIR"

    @SYSTEM "echo SET ACAD=@OutDrive:\\@SUBDIR\\ACAD;@OutDrive:\\@SUBDIR\\SUPPORT;$(ACAD) > acadavis.bat"
    @SYSTEM "echo SET AVEMAPS=@OutDrive:\\@SUBDIR\\MAPS; >> acadavis.bat"

    A batch file acadavis.bat has been created with the appropriate
    environment variables setup for your machine.  Use it as a reference
    to set your ACAD environment variable.  The AutoVision ACAD and SUPPORT
    directories must be placed before existing AutoCAD menu files as in:

          "SET ACAD=@OutDrive:@SUBDIR\ACAD;@OutDrive:@SUBDIR\SUPPORT;$(ACAD)"

    The environment variable AVEMAPS is set to the texture map directory

          "SET AVEMAPS=@OutDrive:@SUBDIR\MAPS;"




    @Pause
@EndFinish
