/*
 * INSTALL.DAT
 *
 * Project: NDP Compilers 386|486
 * Version: 4.4.0 for DOS
 *
 * This INSTALL.DAT was automatically generated by DDB
 */

@DefineDisk
	@Label = "Verify #1"
	@BeginLib NDP.001
                @File NDPTOG.TXT @Size 9186 @Out HELP\NDPTOG.TXT   @Option 1000
                @File DIRENT.H @Size 2078 @Out INC\SYS\DIRENT.H    @Option 1300
                @File LOCKING.H @Size 910 @Out INC\SYS\LOCKING.H   @Option 1300
                @File STAT.H @Size 3755 @Out INC\SYS\STAT.H        @Option 1300
                @File TIMEB.H @Size 1265 @Out INC\SYS\TIMEB.H      @Option 1300
                @File TIMES.H @Size 1096 @Out INC\SYS\TIMES.H      @Option 1300
                @File TYPES.H @Size 1193 @Out INC\SYS\TYPES.H      @Option 1300
                @File UTIME.H @Size 1241 @Out INC\SYS\UTIME.H      @Option 1300
                @File VM.H @Size 1740 @Out INC\SYS\VM.H            @Option 1300
                @File ASSERT.H @Size 1270 @Out INC\ASSERT.H        @Option 1300
                @File BIOS.H @Size 5547 @Out INC\BIOS.H            @Option 1300
                @File COMPLEX.H @Size 5996 @Out INC\COMPLEX.H      @Option 1300
                @File CONIO.H @Size 2012 @Out INC\CONIO.H          @Option 1300
                @File CTYPE.H @Size 2978 @Out INC\CTYPE.H          @Option 1300
                @File CXSTDIO.H @Size 2720 @Out INC\CXSTDIO.H      @Option 1300
                @File CXSTRING.H @Size 9731 @Out INC\CXSTRING.H    @Option 1300
                @File DIRECT.H @Size 1269 @Out INC\DIRECT.H        @Option 1300
                @File ERRNO.FH @Size 3263 @Out INC\ERRNO.FH        @Option 1100
                @File ERRNO.H @Size 1865 @Out INC\ERRNO.H          @Option 1300
                @File EXTERR.H @Size 4373 @Out INC\EXTERR.H        @Option 1300
                @File FCNTL.H @Size 1533 @Out INC\FCNTL.H          @Option 1300
                @File FLOAT.H @Size 2408 @Out INC\FLOAT.H          @Option 1300
                @File FSTREAM.H @Size 5732 @Out INC\FSTREAM.H      @Option 1300
                @File GENERIC.H @Size 1284 @Out INC\GENERIC.H      @Option 1300
                @File GREX.FH @Size 4032 @Out INC\GREX.FH          @Option 1100
                @File GREX.H @Size 17087 @Out INC\GREX.H           @Option 1300
                @File GREX.PH @Size 12773 @Out INC\GREX.PH         @Option 1200
                @File IO.H @Size 2342 @Out INC\IO.H                @Option 1300
                @File IOMANIP.H @Size 5473 @Out INC\IOMANIP.H      @Option 1300
                @File IOSTREAM.H @Size 13269 @Out INC\IOSTREAM.H   @Option 1300
                @File LIMITS.H @Size 1207 @Out INC\LIMITS.H        @Option 1300
                @File LOCALE.H @Size 2355 @Out INC\LOCALE.H        @Option 1300
                @File MALLOC.H @Size 2734 @Out INC\MALLOC.H        @Option 1300
                @File MATH.H @Size 3351 @Out INC\MATH.H            @Option 1300
                @File MEMORY.H @Size 2029 @Out INC\MEMORY.H        @Option 1300
                @File NEW.H @Size 910 @Out INC\NEW.H               @Option 1300
                @File OS.FH @Size 12076 @Out INC\OS.FH             @Option 1100
                @File OS.H @Size 40128 @Out INC\OS.H               @Option 1300
                @File OS.PH @Size 16852 @Out INC\OS.PH             @Option 1200
                @File PROCESS.H @Size 2136 @Out INC\PROCESS.H      @Option 1300
                @File RATIONAL.H @Size 6363 @Out INC\RATIONAL.H    @Option 1300
                @File SEARCH.H @Size 1765 @Out INC\SEARCH.H        @Option 1300
                @File SETJMP.H @Size 1499 @Out INC\SETJMP.H        @Option 1300
                @File SHARE.H @Size 1052 @Out INC\SHARE.H          @Option 1300
                @File SIGNAL.H @Size 3277 @Out INC\SIGNAL.H        @Option 1300
                @File SSTREAM.H @Size 3089 @Out INC\SSTREAM.H      @Option 1300
                @File STDARG.H @Size 1676 @Out INC\STDARG.H        @Option 1300
                @File STDDEF.H @Size 1168 @Out INC\STDDEF.H        @Option 1300
                @File STDIO.H @Size 6721 @Out INC\STDIO.H          @Option 1300
                @File STDLIB.H @Size 3717 @Out INC\STDLIB.H        @Option 1300
                @File STREAM.H @Size 10565 @Out INC\STREAM.H       @Option 1300
                @File STRING.H @Size 2840 @Out INC\STRING.H        @Option 1300
                @File STSTREAM.H @Size 2251 @Out INC\STSTREAM.H    @Option 1300
                @File TIME.H @Size 2554 @Out INC\TIME.H            @Option 1300
                @File VARARGS.H @Size 1120 @Out INC\VARARGS.H      @Option 1300
                @File VECTOR.H @Size 8374 @Out INC\VECTOR.H        @Option 1300
                @File LIBRARY.DOC @Size 6099 @Out LIB\LIBRARY.DOC  @Option 2000
                @File HI.C @Size 595 @Out SRC\HI.C                 @Option 1300
                @File HI.CXX @Size 638 @Out SRC\HI.CXX             @Option 1300
                @File HI.F @Size 688 @Out SRC\HI.F                 @Option 1100
                @File HI.P @Size 702 @Out SRC\HI.P                 @Option 1200
                @File MF386T.BAT @Size 396 @Out SRC\MF386T.BAT     @Option 1110
                @File MF486T.BAT @Size 396 @Out SRC\MF486T.BAT     @Option 1120
                @File MP386T.BAT @Size 222 @Out SRC\MP386T.BAT     @Option 1210
                @File MP486T.BAT @Size 222 @Out SRC\MP486T.BAT     @Option 1220
                @File MX386T.BAT @Size 226 @Out SRC\MX386T.BAT     @Option 1310
                @File MX486T.BAT @Size 226 @Out SRC\MX486T.BAT     @Option 1320
                @File TOOLS.DOC @Size 3818 @Out TOOLS\TOOLS.DOC    @Option 4100
	@EndLib
@EndDisk

@DefineVars
    @Drive @PLDrive = @OutDrive
    @Dir @PLTOOLS = "@Subdir\\TOOLS"
@EndVars

@If( 2900 [= @Option )
@GetOutDrive @PLDrive
    @Cls
    You have installed libraries for use with the Phar Lap SDK. Should
    you decide to install the Phar Lap SDK in a different directory
    than the one in which you installed the NDP Tools, you will need to set
    the PLTOOLS environment variable. You will be asked which drive and
    directory you plan to install the Phar Lap SDK in. This install
    procedure will use that information to set PLTOOLS in the test files
    that will be created, and in your AUTOEXEC.BAT, if you so choose.

    On which disk drive will you install the Phar Lap SDK?





           



    Use the [], [], [PgUp] and [PgDn] keys to highlight your choice,
    then press [Enter] to continue.
    @LocalWindow(14,39)
@EndOutDrive

@GetSubdir @PLTOOLS
        @LocalWindow(14,39)
        @Cls
        By default, this installation will assume you want to install
        the Phar Lap SDK in the same directory as the NDP Tools.

        To specify a different location on drive @PLDrive, press [Esc] and
        type the new directory name.  Do not include the drive letter.


        @LocalWindow(20,40)
        @Prompt = "Phar Lap SDK ([Enter] = @PLTOOLS) ?"
@Endsubdir

@EndIf

@Display


        @Cls

        As a final step, INSTALL can examine your AUTOEXEC.BAT file    @If( 4200 [= @Option )
        to determine whether your PATH string, NDP, CLRVIEWENV and
        CLRVIEWHELP environment variables require updating.            @ElseIf( 2290 [= @Option)
        to determine whether your PATH string and NDP, and PLTOOLS
        environment variables require updating.                        @Else
        to determine whether your PATH string and NDP environment
        variable require updating.
                                                                       @Endif

        INSTALL can edit AUTOEXEC.BAT safely and backup the original.

    @If( 1000 [= @Option)
        As a default, INSTALL will also create a batch file called
        SETNDP.BAT in the SRC directory, which can be called by the user
        to set the NDP environment manually for future compiler use.
    @EndIf



        @PAUSE

@EndDisplay
        
@SetAutoexec
            @AskOverwrite
            @Path = "@OutDrive:\\@Subdir\\BIN;@OutDrive:\\@Subdir\\TOOLS;"
            @SetReplace("NDP", "@OutDrive:\\@Subdir")
    @If( 4200 [= @Option )
            @SetReplace("CLRVIEWENV", "@OutDrive:\\@Subdir\\TOOLS\\clrview.env")
            @SetReplace("CLRVIEWHELP", "@OutDrive:\\@Subdir\\TOOLS")
    @Endif
    @If( 2900 [= @Option )
            @SetReplace("PLTOOLS", "@PLDrive:\\@PLTOOLS")
    @Endif
@EndAutoexec





@Finish

    @If( 1000 [= @Option)
        Creating: @Outdrive:@Subdir\SRC\SETNDP.BAT
	@ChDrive @OutDrive
	@ChDir "@SubDir\\SRC"
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "wt", "@@rem  Set NDP to the compiler's home directory\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "SET NDP=@OutDrive:\\@Subdir\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "@@rem  Set PATH to find the compiler driver\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "SET PATH=%NDP%\\BIN;%NDP%\\TOOLS;%PATH%\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "@@rem  Revise INC\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "IF NOT A%INC%==A SET INC=%NDP%\\INC;%INC%\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "@@rem  Revise LIB\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "IF NOT A%LIB%==A SET LIB=%NDP%\\LIB;%LIB%\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "@@rem  Remove TOOLS\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "SET TOOLS=\n")
    @If( 4200 [= @Option )
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "@@rem  Set CLRVIEWENV to find clrview.env\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "SET CLRVIEWENV=%NDP%\\TOOLS\\clrview.env\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "@@rem  Set CLRVIEWHELP to find clrview.hlp\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "SET CLRVIEWHELP=%NDP%\\TOOLS\n")
    @Endif
    @If( 2900 [= @Option)
        @Write("@PLDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "@@rem  Set PLTOOLS to the Phar Lap SDK directory\n")
        @Write("@OutDrive:\\@Subdir\\SRC\\SETNDP.BAT", "at", "SET PLTOOLS=@PLDrive:\\@PLTOOLS\n")
    @Endif
    @Else

        @ChDrive (@OutDrive)
        @ChDir ("@Subdir")
    @Endif

        @CLS


        Installation of @CompilerName is now finished.

        Please remember to register your software. Failure to do so
        will void your rights to:

             - Technical Support
             - Compiler updates
             - NDP Journal

        These services are generally available for registered owners
        free of charge for a period of one year from the purchase date.
        



                                                           @Pause

        @Cls


@If(1000 [= @Option)

        To test your installation:

        (1) Make @Outdrive:@Subdir\SRC the current DOS directory.

        (2) From the DOS command line, type @BatchName to run the @BatchName.BAT
            batch file.  This will set the environment variables by calling
            SETNDP.BAT, compile, link, and run the HI test program.




                                                            @Pause
@Endif
@EndFinish

/* end-of-file */
