/* FILE: install.dat */
@DefineProject
        @Name      = "SURFCAM"
        @Version   = "4.0"   /* This line must be changed for each update */
        @Subdir    = "\\SURFCAM"
        @OutDrive  = C
@EndProject

@DefineVars
       @Dir  @OldSurfDir = "\\SURF35"
@EndVars

@Display
        @Cls
        @Name Version @Version Installation

        @Name must be installed directly from the floppy.
        Example:
          A: <Enter>
          install <Enter>

        Or
          B: <Enter>
          install <Enter>

        You may press the ESC key at any time to abort the installation.

        @Pause
@EndDisplay

@If (@NDP == 0)
        @Display
        @Cls
        An 80x87 math co-processor was not found.
        It is required to run @Name Version @Version

        @Pause
        @EndDisplay
@EndIf

@If (@CPU < 286)
        @Display
        @Cls
        All SURFCAM products require at least an AT/286
        class PC compatible computer system.

        @Pause
        @EndDisplay
@EndIf

@If (@EMMAvail < 2M && @EXTAvail < 2M)
        @Display
        @Cls
        SURFCAM requires at least 2 MB of Extended or Expanded
        memory to run.  After installing @Name Version @Version
        please change your system configuration to make at least
        2 MB of memory available to @Name.

        @Pause
        @EndDisplay
@EndIf

@If (@RAMAvail < 400K)
        @Display
        @Cls
        The Installation process requires at least 400 K of
        conventional memory to complete.  The amount of memory
        available on this machine is @RAMAvail.  Please change
        your configuration to make at least 400K of memory
        before installing @Name Version @Version.

        @Pause
        @EndDisplay
@EndIf

@GetOutDrive
        @Cls
                   On which disk drive do you wish to install
                      @Name Version @Version











                   Use the Up and Down Arrow keys to select.

        @Suppress A
        @Suppress B
@EndOutDrive

@If (@DiskFree @OutDrive < 12000000)
        @Display
        Your disk drive has only @DiskFree @OutDrive bytes free.
        SURFCAM requires about 12,000,000 bytes for a complete
        installation.

        @Pause
        @EndDisplay
@EndIf


Foo:

@GetSubdir
       @Cls
       Which directory would you like to install
           @Name Version @Version to?


       @Prompt = "Which directory (  [Enter] = @Subdir  )?"
@EndSubdir

@If (@Exists "@OutDrive:\\@SubDir" )

        @GetOption
            This product appears to already be installed.  Do you wish
            to write over the prior version?






            The new directory structure is different from the previous
            versions of SURFCAM.  It is highly recommended to install
            SURFCAM in a new directory.

            @Option 1002 = "No"
            @Option 1001 = "Yes"

        @EndOption

        @If (1001 [= @Option)
             @Goto Ok
        @Endif

        @Goto Foo
@Endif

Ok:

/* Got a directory path, check if PKZ204G.EXE needs to be copied */
@If (@Exists "@OutDrive:\\@Subdir\\Zip\\Pkunzip.exe")
    @DefineVars
        @Integer @CopyZip = 0
    @EndVars
@Else
    @DefineVars
        @Integer @CopyZip = 1
    @EndVars
@Endif

@GetOption
               Is this a new SURFCAM installation or an update ?







               Select  Update only if SURFCAM ver. 3.5 is installed
               on your machine and you want to copy existing
               configuration files from that directory.

               DO NOT select Update if you have SURFCAM ver. 4.0
               partially installed and you are installing another
               portion of it.

               Use the arrow keys to highlight your selection and
               then press ENTER or press ESC to abort.

    @Option 4001 = "New Installation"
    @Option 4002 = "     Update"
@EndOption

@If (4002 [= @Option)
    @GetSubdir @OldSurfDir
            Which directory is SURFCAM version 3.5 installed in ?
            @Prompt = "SURFCAM directory "
    @EndSubdir

    @Display
     For updating, you will be asked which version of the following files
     you would like to use.

        SURFCAM.CFG  SURFCAM.PST  SURFCAM.SET  POSTFORM.M
        SURFCAM.TOL  SURFCAM.MAT  POSTFORM.E

     NOTE : If you choose to use the currently installed version of these
     files, the install program will just copy the files to the new
     directory.  No modifications will be made.  Some of these files are
     no longer compatible with the new version and the system may not run
     until these files have been updated.  A copy of the new version of the
     files will be installed in the "DEF" directory to help in making changes
     to your files.

     Please look at the update document that describes in detail the changes
     that must be made to these files.

     Using the new version of the files will require you to customize these
     files as per your needs.

    @Pause
    @EndDisplay
    @GetOption
            Which version of SURFCAM's configuration file (SURFCAM.CFG)
            would you like to use ?






    The SURFCAM configuration file includes new parameters and changes
    to some old ones.  Among the new parameters are 
       Plot, CSFPath, DESPath, FSTPath, NCALPath, SPACPath, VDAPath,
       PLTPath, Plotter, pen.., LatheView, LatheInput, LatheViewDia,
       LatheDiaInput, Rot5Axis, ToolWait

    Changes have been made to the following parameters
       Graphics Drivers, Mouse Drivers, Tool, Material, DataRAM,
       DisplayRAM, ToolDisplayRAM, Rot4Axis, MenuColors

    Also changes must be made to the new directories for the DSN, INC and
    other files.

            @Option 4030 = "Currently installed version (CONFIG.SC)"
            @Option 4040 = "             New version"
    @EndOption
    @GetOption
              Which version of SURFCAM's Tool file (SURFCAM.TOL)
              would you like to use ?






   The mill and drill tool formats have not changed.  The new version comes
   with over 400 predefined tools.  The user defined tool display files have
   extension ".TLE" for english tool files and ".TLM" for metric tool files.

   There are two new sections in the tool library corresponding to Lathe
   tools and Lathe Drill tools.  The Lathe tools and Lathe drill tools have
   some different parameters from the milling tools.

   The file also has been reformatted to make it more readable and editable.
   The tool numbers have been changed and this can affect backplotting of
   INC files (the incorrect tool may be picked from the library).  The
   SetupSheet will pick the tools corresponding to the new tool libraries
   and that may not be correct.  The output NC code should be the same
   though.
            @Option 4031 = "Currently installed version"
            @Option 4041 = "       New version"
    @EndOption
    @GetOption
            Which version of SURFCAM's Material file (SURFCAM.MAT)
            would you like to use ?






   The SURFCAM material file cutting parameters have been updated and more
   materials added to the material library.  It has also been reformatted
   to make it more readable and editable.


            @Option 4032 = "Currently installed version"
            @Option 4042 = "       New version"
    @EndOption
    @GetOption
            Which version of SURFCAM's Post Menu file (SURFCAM.PST)
            would you like to use ?






   SURFCAM now supports different NC-Post menus for each of the different
   cutting modes (Lathe, 2_Axis, 3_Axis, 4_Axis, 5_Axis).  This is done
   by organizing the PST file into sections.  Each section begins with
   "begin SECTION" where SECTION is from the above list.  The end of the
   section is marked by a line containing the word "end" by itself.

   If the identical menu is desired for two different NC modes, it can
   be done by placing two "begin SECTION" followed by the menus and
   followed by one "end" line.

   The new file format is not compatible with the previous version.

            @Option 4033 = "Currently installed version"
            @Option 4043 = "       New version"
    @EndOption
    @GetOption
            Which version of SURFCAM's Setup Sheet file (SURFCAM.SET)
            would you like to use ?






   INCSETUP supports both lathe and mill INC files.  The file is now
   organized in different sections corresponding to milling information
   and lathe information.  There is no output of the mill section for lathe
   INC files and no output of lathe section for milling INC files.  The
   sections are marked by "begin SECTION" and "end SECTION", where SECTION
   is either "mill" or "lathe".

   New output variables have been added for milling mode and a whole
   set for lathe INC files.

            @Option 4034 = "Currently installed version"
            @Option 4044 = "       New version"
    @EndOption
    @GetOption
              Which version of SURFCAM's Postform file (POSTFORM.M)
              would you like to use ?






   MPOST has a lot of new features which are documented in detail in the
   manual.  The old versions of posts are compatible with the new except
   for one line which is as follows.

     Inc/Abs 91 90

         has been changed to

     Inc/Abs G 91 90

   The letter code corresponding to switch from incremental to absolute
   modes must be added else MPOST will complain about it at runtime.

            @Option 4035 = "Currently installed version"
            @Option 4045 = "       New version"
    @EndOption
    @GetOption
         Which version of SURFCAM's Wire EDM Postform file (POSTFORM.E)
         would you like to use ?






   EPOST has a lot of new features which are documented in detail in the
   manual.  The old versions of posts are compatible with the new except
   for one line which is as follows.

     Inc/Abs 91 90

         has been changed to

     Inc/Abs G 91 90

   The letter code corresponding to switch from incremental to absolute
   modes must be added else EPOST will complain about it at runtime.

            @Option 4036 = "Currently installed version"
            @Option 4046 = "       New version"
    @EndOption
@Endif

@GetOption
            SURFCAM can be installed for working in metric units or
            inch units.  Which one would you like to install?








            Use the arrow keys to highlight your selection and
            then press ENTER or press ESC to abort.


    @Option 3001 = "Inch Units"
    @Option 3002 = "Metric Units"

@EndOption

@SetOption(2001)

Foo2:
@GetOption
               Which of the following would you like to install ?














               Use the arrow keys to highlight your selection.
               Press the Spacebar to toggle Yes/No.
               When the choices are as desired press ENTER.

          @CheckBox
          @Option 2001 = "Complete SURFCAM system and sample files"
          @Option 2002 = "SURFCAM system only"
          @Option 2003 = "Sample part files"
          @Option 2004 = "Sample tool path motion files"
          @Option 2005 = "Milling tool display files"
          @Option 2006 = "Lathe tool display files"
          @Option 2007 = "Sample mill posts"
          @Option 2008 = "Sample lathe posts"
          @Option 2009 = "Sample Wire EDM posts"

@EndOption

@If (!(2001 [= @Option || 2002 [= @Option || 2003 [= @Option ||
       2004 [= @Option || 2005 [= @Option || 2006 [= @Option ||
       2007 [= @Option || 2008 [= @Option || 2009 [= @Option))
      @Goto Foo2
@Endif

@If (2001 [= @Option)
    @SetOption(2002)
    @SetOption(2003)
    @SetOption(2004)
    @SetOption(2005)
    @SetOption(2006)
    @SetOption(2007)
    @SetOption(2008)
    @SetOption(2009)
@Endif

/* If updating check which files to install */
@If (4002 [= @Option)
        @If (!(@Exists "@Outdrive:@OldSurfDir\\CONFIG.SC"))
            @SetOption(4040)   /* use new config file */
        @Endif
        @If (!(@Exists "@Outdrive:@OldSurfDir\\SURFCAM.TOL"))
            @SetOption(4041)   /* use new surfcam.tol file */
        @Endif
        @If (!(@Exists "@Outdrive:@OldSurfDir\\SURFCAM.MAT"))
            @SetOption(4042)   /* use new surfcam.mat file */
        @Endif
        @If (!(@Exists "@Outdrive:@OldSurfDir\\SURFCAM.PST"))
            @SetOption(4043)   /* use new surfcam.pst file */
        @Endif
        @If (!(@Exists "@Outdrive:@OldSurfDir\\SURFCAM.SET"))
            @SetOption(4044)   /* use new surfcam.set file */
        @Endif
        @If (!(@Exists "@Outdrive:@OldSurfDir\\POSTFORM.M"))
            @SetOption(4045)   /* use new postform.m file */
        @Endif
        @If (!(@Exists "@Outdrive:@OldSurfDir\\POSTFORM.E"))
            @SetOption(4046)   /* use new postform.e file */
        @Endif
@Endif

@SetConfig
        @AskOverWrite
        @Files = 20
@EndConfig

@SetAutoexec
        @AskOverWrite
        @SetReplace("SURFCAM","@OutDrive:\\@Subdir\\SURF40D")
@EndAutoexec

@If (2002 [= @Option || 4002 [= @Option)
    @GetOption
        @Cls
             Select the appropriate graphics card to be used with
                              @Name.
















              Use the arrow keys to highlight your selection and
              then press ENTER or press ESC to abort.

        @Option   1  = "EGA                    (640x350 res.) 16 Colors"
        @Option   2  = "VGA                    (640x480 res.) 16 Colors"
        @Option  88  = "ACER (Built in VGA)    (800x600 res.) 16 Colors"
        @Option  41  = "Amdek SmartVision      (800x600 res.) 16 Colors"
        @Option  84  = "ATI VGA Wonder         (800x600 res.) 16 Colors"
        @Option  84  = "ATI VGA Wonder XL24    (800x600 res.) 16 Colors"
        @Option 106  = "ATI Ultra Pro          (800x600 res.) 16 Colors"
        @Option  41  = "Boca SuperVGA 16       (800x600 res.) 16 Colors"
        @Option  82  = "Beaver VGA 16          (800x600 res.) 16 Colors"
        @Option 106  = "Cardinal 600           (800x600 res.) 16 Colors"
        @Option  41  = "Cardinal 700/732/742   (800x600 res.) 16 Colors"
        @Option  41  = "Diamond SpeedSTAR 24   (800x600 res.) 16 Colors"
        @Option 106  = "Diamond SpeedSTAR 24X  (800x600 res.) 16 Colors"
        @Option 106  = "Diamond Stealth VRAM   (800x600 res.) 16 Colors"
        @Option  91  = "DFI VG-2000            (800x600 res.) 16 Colors"
        @Option  41  = "Everex VRAM            (800x600 res.) 16 Colors"
        @Option 121  = "Genoa 5400/6400        (800x600 res.) 16 Colors"
        @Option  41  = "Groundhog Shadow       (800x600 res.) 16 Colors"
        @Option  41  = "GVC-SmartVGA           (800x600 res.) 16 Colors"
        @Option  41  = "Icon Phot VGA          (800x600 res.) 16 Colors"
        @Option  91  = "Logix VGA-1000         (800x600 res.) 16 Colors"
        @Option 106  = "Metheus Premier        (800x600 res.) 16 Colors"
        @Option   5  = "Metheus series       (1024x768 to 1280x1024 res.)"
        @Option   6  = "Metheus series       (see above) 16 shades of grey"
        @Option  41  = "Micro-Labs Ultimate    (800x600 res.) 16 Colors"
        @Option  41  = "NDI AT1000             (800x600 res.) 16 Colors"
        @Option 106  = "Orchid Fahrenheit 1280 (800x600 res.) 16 colors"
        @Option  82  = "Oak OTI-067/077        (800x600 res.) 16 Colors"
        @Option  41  = "Orchid Pro Designer    (800x600 res.) 16 Colors"
        @Option  88  = "Paradise 1024/Pro      (800x600 res.) 16 Colors"
        @Option  91  = "Photon Ultima          (800x600 res.) 16 Colors"
        @Option  41  = "Pixel Eng. Ultimate    (800x600 res.) 16 Colors"
        @Option  41  = "Prism Excel/Eclipse    (800x600 res.) 16 Colors"
        @Option  91  = "Quadrex QVGA           (800x600 res.) 16 Colors"
        @Option  41  = "SigmaVGA Legend        (800x600 res.) 16 Colors"
        @Option 106  = "  S3 chip set          (800x600 res.) 16 Colors"
        @Option  41  = "Sota 1280i             (800x600 res.) 16 Colors"
        @Option  41  = "STB EM/Power/ERGO      (800x600 res.) 16 Colors"
        @Option  41  = "Swan Super VGA         (800x600 res.) 16 Colors"
        @Option  41  = "Tecmar AD              (800x600 res.) 16 Colors"
        @Option  91  = "Trident TVGA 8916      (800x600 res.) 16 Colors"
        @Option  41  = "  Tseng VGA chip set   (800x600 res.) 16 Colors"
        @Option   7  = "Video 7                (800x600 res.) 16 Colors"
        @Option  41  = "ViewSonic 1024 VGA     (800x600 res.) 16 Colors"
        @Option  41  = "VividVUE Hicolor       (800x600 res.) 16 Colors"
        @Option  16  = "VMI series            (640x480 to 1024x768 res.)"
        @Option  88  = "Western Digital        (800x600 res.) 16 Colors"
        @Option  41  = "Wyse 455/470/7500      (800x600 res.) 16 Colors"
        @Option  91  = "ZyMos POACH 51 VGA     (800x600 res.) 16 Colors"

    @EndOption
@Endif

    @DefineDisk
        @label         = "Disk 1"
        @If (2002 [= @Option || 4002 [= @Option)
            @File      edconf.bat  @Out surf40d\edconf.bat
            @File      egraph.bat  @Out surf40d\egraph.bat
            @File      sed.exe     @Out surf40d\sed.exe
            @File      n.sed       @Out surf40d\n.sed
        @Endif
        @If (@CopyZip)
             @File      PKZ204G.EXE  @Out ZIP\PKZ204G.EXE
        @Endif
        @File      SURFCAM.ZIP @Out TMP\SURFCAM.ZIP     @Option 2002 
    @EndDisk

    @DefineDisk
        @label         = "Disk 2  Utilities"
        @File  UTIL.ZIP       @Out TMP\UTIL.ZIP    @Option 2002
        @File  POSTS.ZIP      @Out TMP\POSTS.ZIP   @Option 2002
    @EndDisk

@If (3001 [= @Option)
    @DefineDisk
        @label         = "Disk 3  Tools & Posts"

        /* Auxiliary files */
        @If (2002 [= @Option || 4002 [= @Option)
            @File  AUXL.ZIP       @Out TMP\AUXL.ZIP
        @Endif

        @File  BASE.ZIP       @Out TMP\BASE.ZIP   @Option 2002

        /* Sample INC files Part 1 */
        @File  INC1.ZIP       @Out TMP\INC1.ZIP   @Option 2004

        /* Mill Tools */
        @File  EMTOOL.ZIP     @Out TMP\MTOOL.ZIP   @Option 2005

        /* Lathe Tools */
        @File  ELTOOL.ZIP     @Out TMP\LTOOL.ZIP   @Option 2006

        /* Sample Mill Posts */
        @File  POSTSM.ZIP     @Out TMP\POSTSM.ZIP  @Option 2007

        /* Sample Lathe Posts */
        @File  POSTSL.ZIP     @Out TMP\POSTSL.ZIP  @Option 2008

        /* Sample Wire EDM Posts */
        @File  POSTSE.ZIP     @Out TMP\POSTSE.ZIP  @Option 2009
    @EndDisk
@Endif

@If (3001 [= @Option)
    @DefineDisk
        @label         = "Disk 4  Sample Files"

        /* Sample DSN files */
        @File  SAMPLE.ZIP     @Out TMP\SAMPLE.ZIP  @Option 2003

        /* Sample INC Files part 2 */  
        @File  INC2.ZIP       @Out TMP\INC2.ZIP    @Option 2004

    @EndDisk
@Endif

@If (3002 [= @Option)
    @DefineDisk
        @label         = "Disk 5  Metric Tools & Posts"

        /* Auxiliary files */
        @If (2002 [= @Option || 4002 [= @Option)
            @File  MMAUXL.ZIP     @Out TMP\AUXL.ZIP
        @Endif

        @File  MMBASE.ZIP     @Out TMP\BASE.ZIP    @Option 2002

        /* Sample INC files Part 1 */
        @File  MMINC1.ZIP     @Out TMP\INC1.ZIP    @Option 2004

        /* Mill Tools */
        @File  MMTOOL.ZIP     @Out TMP\MTOOL.ZIP   @Option 2005

        /* Lathe Tools */
        @File  MLTOOL.ZIP     @Out TMP\LTOOL.ZIP   @Option 2006

        /* Sample Mill Posts */
        @File  MMPOSTSM.ZIP   @Out TMP\POSTSM.ZIP  @Option 2007

        /* Sample Lathe Posts */
        @File  MMPOSTSL.ZIP   @Out TMP\POSTSL.ZIP  @Option 2008

        /* Sample Wire EDM Posts */
        @File  MMPOSTSE.ZIP   @Out TMP\POSTSE.ZIP  @Option 2009
    @EndDisk
@Endif

@If (3002 [= @Option)
    @DefineDisk
        @label         = "Disk 6  Metric Sample Files"
        @File  MMSAMPLE.ZIP   @Out TMP\SAMPLE.ZIP  @Option 2003
        @File  MMINC2.ZIP     @Out TMP\INC2.ZIP    @Option 2004
    @EndDisk
@Endif

@Finish
        @ChDrive @OutDrive
        @ChDir "@SubDir"
        @If (@CopyZip)
            @System "ZIP\\pkz204g ZIP\\"
        @Endif
        @If (2002 [= @Option)
            @System "ZIP\\pkunzip -d TMP\\surfcam"
            @System "del TMP\\surfcam.ZIP"
            @System "ZIP\\pkunzip -d TMP\\base"
            @System "del TMP\\base.ZIP"
            @System "ZIP\\pkunzip -d TMP\\util"
            @System "del TMP\\util.zip"
            @System "ZIP\\pkunzip -d TMP\\posts"
            @System "del TMP\\posts.zip"
        @Endif
        @If (4001 [= @Option)         /* New installation */
            @If (2002 [= @Option)     /* Installing Base system */
                @System "ZIP\\pkunzip -d TMP\\auxl"
                @System "del TMP\\auxl.ZIP"
            @Endif
        @Else
            @If (4040 [= @Option)
                @System "ZIP\\pkunzip -d tmp\\auxl surf40d\\surfcam.cfg"
            @Else
                @System "copy @Outdrive:\\@OldSurfDir\\CONFIG.SC SURF40D\\SURFCAM.CFG"
            @Endif
            @If (4041 [= @Option)
                @System "ZIP\\pkunzip -d tmp\\auxl tool\\surfcam.tol"
            @Else
                @System "copy @Outdrive:\\@OldSurfDir\\SURFCAM.TOL TOOL\\SURFCAM.TOL"
            @Endif
            @If (4042 [= @Option)
                @System "ZIP\\pkunzip -d tmp\\auxl tool\\surfcam.mat"
            @Else
                @System "copy @Outdrive:\\@OldSurfDir\\SURFCAM.MAT TOOL\\SURFCAM.MAT"
            @Endif
            @If (4043 [= @Option)
                @System "ZIP\\pkunzip -d tmp\\auxl surf40d\\surfcam.pst"
            @Else
                @System "copy @Outdrive:\\@OldSurfDir\\SURFCAM.PST SURF40D\\SURFCAM.PST"
            @Endif
            @If (4044 [= @Option)
                @System "ZIP\\pkunzip -d tmp\\auxl surf40d\\surfcam.set"
            @Else
                @System "copy @Outdrive:\\@OldSurfDir\\SURFCAM.SET SURF40D\\SURFCAM.SET"
            @Endif
            @If (4045 [= @Option)
                @System "ZIP\\pkunzip -d tmp\\auxl surf40d\\postform.m"
            @Else
                @System "copy @Outdrive:\\@OldSurfDir\\POSTFORM.M SURF40D\\POSTFORM.M"
            @Endif
            @If (4046 [= @Option)
                @System "ZIP\\pkunzip -d tmp\\auxl surf40d\\postform.e"
            @Else
                @System "copy @Outdrive:\\@OldSurfDir\\POSTFORM.E SURF40D\\POSTFORM.E"
            @Endif
            @System "ZIP\\pkunzip -d tmp\\auxl surf40d\\postform.l"
            @System "del TMP\\auxl.ZIP"
        @Endif
        @If (2005 [= @Option)     /* Mill tool display files */
            @System "ZIP\\pkunzip -d TMP\\mtool"
            @System "del TMP\\mtool.ZIP"
        @Endif
        @If (2006 [= @Option)     /* Lathe tool display files */ 
            @System "ZIP\\pkunzip -d TMP\\ltool"
            @System "del TMP\\ltool.zip"
        @Endif
        @If (2007 [= @Option)     /* Sample Mill posts */ 
            @System "ZIP\\pkunzip -d TMP\\postsm"
            @System "del TMP\\postsm.zip"
        @Endif
        @If (2008 [= @Option)     /* Sample Lathe posts */ 
            @System "ZIP\\pkunzip -d TMP\\postsl"
            @System "del TMP\\postsl.zip"
        @Endif
        @If (2009 [= @Option)     /* Sample Wire EDM posts */ 
            @System "ZIP\\pkunzip -d TMP\\postse"
            @System "del TMP\\postse.zip"
        @Endif
        @If (2004 [= @option)    /* Sample INC files */
            @System "ZIP\\pkunzip -d TMP\\inc1"
            @System "del TMP\\inc1.zip"
            @System "ZIP\\pkunzip -d TMP\\inc2"
            @System "del TMP\\inc2.zip"
        @Endif
        @If (2003 [= @option)    /* Sample DSN files */
            @System "ZIP\\pkunzip -d TMP\\sample"
            @System "del TMP\\sample.zip"
        @Endif
        @System "cd \\"
        @System "cd @Subdir"
        @System "cd surf40d"
        @If ((2002 [= @Option && !(4002 [= @Option)) || (4040 [= @Option))
            @If (1 [= @option)
                @System "egraph surfcam.cfg   1  surfcam.cfg"
            @Endif
            @If (5 [= @option)
                @System "egraph surfcam.cfg   5  surfcam.cfg"
            @Endif
            @If (6 [= @option)
                @System "egraph surfcam.cfg   6  surfcam.cfg"
            @Endif
            @If (7 [= @option)
                @System "egraph surfcam.cfg   7  surfcam.cfg"
            @Endif
            @If (16 [= @option)
                @System "egraph surfcam.cfg  16  surfcam.cfg"
            @Endif
            @If (41 [= @option)
                @System "egraph surfcam.cfg  41  surfcam.cfg"
            @Endif
            @If (82 [= @option)
                @System "egraph surfcam.cfg  82  surfcam.cfg"
            @Endif
            @If (84 [= @option)
                @System "egraph surfcam.cfg  84  surfcam.cfg"
            @Endif
            @If (88 [= @option)
                @System "egraph surfcam.cfg  88  surfcam.cfg"
            @Endif
            @If (91 [= @option)
                @System "egraph surfcam.cfg  91  surfcam.cfg"
            @Endif
            @If (106 [= @option)
                @System "egraph surfcam.cfg 106  surfcam.cfg"
            @Endif
            @If (121 [= @option)
                @System "egraph surfcam.cfg 121  surfcam.cfg"
            @Endif
            @System "edconf surfcam.cfg @Subdir surfcam.cfg"
        @Endif
        @If ((2002 [= @Option && !(4002 [= @Option)) || (4043 [= @Option))
            @System "edconf surfcam.pst @Subdir surfcam.pst"
        @Endif
        @If (2002 [= @Option || 4002 [= @Option)
            @System "del edconf.bat"
            @System "del egraph.bat"
            @System "del sed.exe"
            @System "del n.sed"
            @System "del edc1.bat"
        @Endif
        @Cls
        @If (2002 [= @Option)

        @Name Version @Version has been successfully installed
        on your disk drive.  Type SURFCAM to start the system.

        If SURFCAM was previously installed in the \SURF35  directory
        to move any existing *.DSN or *.INC files to the new version type:

        CD \SURF35\DSN
        MV *.DSN @OutDrive:@SubDir\DSN
        CD \SURF35\INC
        MV *.INC @OutDrive:@SubDir\INC

        @Else

        Option successfully installed.

        @Endif

        @Pause
@EndFinish
