
@DefineProject
	@Name       = "Hammer of the Gods"
	@Subdir     = "\\HAMMER"
	@Outdrive   = C
	@Group      = ""
	@Version    = "1.00"
@EndProject

@DefineVars
		@Integer @Space = 0
@EndVars

@Display
	@Cls
	Welcome to @Name!

	This program will install @Name Version @VERSION 
	on your computer system.  You may press the [Esc] key at 
	any time to abort the installation.

	Software (C) 1994 Holistic Design, Inc.
	All other materials (c) 1994 New World Computing, Inc.
	Hammer of the Gods is a trademark of New World Computing.

	@Pause
@EndDisplay

LIST_DRIVES:

@GetOutDrive
@Suppress(0,17)
	@Cls

	On which disk drive do you wish to install @Name?
@EndOutDrive

@GetSubdir
	@CLS
	Now you need to specify the hard disk destination subdirectory.   The
	subdirectory is the location on your disk where @Name
	will be installed.  If you don't know what a "subdirectory" is, you
	probably need not worry about it, and should press enter  to accept 
	\HAMMER for this question.

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

CHOOSE_OPTION:
@ClearGroup(N)
@ClearGroup(S)
@ClearGroup(F)

@GetGroups
	@Cls
	Now you need to select the type of installation.

	@Set N = "Normal Installation (1.7 MBytes)"
	@Set S = "Slower, Using Less Hard Drive Space (30 KBytes)"
	@Set F = "Faster, Using More Hard Drive Space (10 MBytes)"

@EndGroups


	@If ('S' [= @Group) @Space = 30000 @EndIf
	@If ('N' [= @Group) @Space = 1700000 @EndIf
	@If ('F' [= @Group) @Space = 10000000 @EndIf

Check_Free_Space:

@If (@DiskFree(@OutDrive) < @Space) 
  @GetOption
	@LocalWindow(9,40)
	The selection needs at least @Space of free disk space to
	install.  You only have @DiskFree(@OutDrive) bytes available on drive @outdrive.
	What would you like to do at this time?


	@Option 1 = "Choose another drive"
	@Option 2 = "Choose another installation type"
	@Option 3 = "Abort the installation"
  @EndOption   

	@If (1 [= @Option)
		@ClearOption(1)
		@Goto LIST_DRIVES
	@Elseif (2 [= @Option)
		@ClearOption(2)
		@Goto CHOOSE_OPTION
	@Else
		@Exit
	@EndIf
@EndIf


@DefineDisk
	@Label = "CDROM"
@File CDROM.EXE      @Group SNF
@File YNYNG8.BIN     @Group NF
@File DNARW8.BIN     @Group NF
@File UPARW16.BIN    @Group NF
@File DNARW16.BIN    @Group NF
@File YNYNG16.BIN    @Group NF
@File V_BORD.BIN     @Group NF
@File S_BORD.BIN     @Group NF
@File RTARW8.BIN     @Group NF
@File LTARW8.BIN     @Group NF
@File RTARW16.BIN    @Group NF
@File LTARW16.BIN    @Group NF
@File UPARW8.BIN     @Group NF
@File SVGATILE.BIN   @Group F
@File VVGATILE.BIN   @Group F
@File VQUEST.BIN     @Group F
@File SQUEST.BIN     @Group F
@File CHAR68.FNT     @Group NF
@File CHAR610.FNT    @Group NF
@File CHAR35.FNT     @Group NF
@File CHAR1216.FNT   @Group NF
@File ST0.PCX        @Group NF
@File ST1.PCX        @Group NF
@File VMOUSE.MSK     @Group NF
@File SMOUSE.MSK     @Group NF
@File WORLD.MAP      @Group SNF
@File HAMMENU.RES    @Group NF
@File HAMMER.PAL     @Group NF
@File HMIDET.386     @Group F
@File HMIDRV.386     @Group F
@File HMIMDRV.386    @Group F
@File MCGA.386       @Group F
@File S3.386         @Group F
@File VESA.386       @Group F
@File VESA480.386    @Group F
@File ATI.386        @Group F
@File HEADLAND.386   @Group F
@File TRIDENT.386    @Group F
@File TSENG.386      @Group F
@File TSENG4K.386    @Group F
@File WD.386         @Group F
@File CIRR5410.386   @Group F
@File CIRR542X.386   @Group F
@File VSHOVEL.MSK    @Group F
@File SSHOVEL.MSK    @Group F
@File HAMGAM.EXE     @Group NF
@File SETSOUND.EXE   @Group NF
@File BIN\VICONS.BIN       @Group F
@File BIN\SICONS.BIN       @Group F
@File BIN\VPICTS.BIN       @Group F
@File BIN\SPICTS.BIN       @Group F
@File BIN\VCHECKS.BIN      @Group NF
@File BIN\SCHECKS.BIN      @Group NF
@File BIN\VITEM.BIN        @Group F
@File BIN\SITEM.BIN        @Group F
@File BIN\VPLYTYPE.BIN     @Group F
@File BIN\SPLYTYPE.BIN     @Group F
@File BIN\VSHOVEL.MSK      @Group F
@File BIN\SSHOVEL.MSK      @Group F
@File BIN\VMOVICON.BIN     @Group NF
@File BIN\SMOVICON.BIN     @Group NF
@File BIN\VSTORM.BIN       @Group F
@File BIN\SSTORM.BIN       @Group F
@File BIN\VSHIPS.BIN       @Group F
@File BIN\SSHIPS.BIN       @Group F
@File BIN\VBANNER.BIN      @Group NF
@File BIN\SBANNER.BIN      @Group NF
@File CBG\SCBG1.BIN        @Group F
@File CBG\SCBG2.BIN        @Group F
@File CBG\SCBG3.BIN        @Group F
@File CBG\VCBG1.BIN        @Group F
@File CBG\VCBG2.BIN        @Group F
@File CBG\VCBG3.BIN        @Group F
@File CBG\VICEICON.BIN     @Group F
@File CBG\SICEICON.BIN     @Group F
@File CBG\SCBG6.BIN        @Group F
@File CBG\VCBG6.BIN        @Group F
@File CBG\BCK06.MAP        @Group NF
@File CBG\CBG2.PAL         @Group NF
@File CBG\CBG6.PAL         @Group NF
@File CBG\VCBG0.BIN        @Group F
@File CBG\SCBG0.BIN        @Group F
@File CBG\CBG1.PAL         @Group NF
@File CBG\CBG3.PAL         @Group NF
@File CBG\CBG0.PAL         @Group NF
@File CBG\SCBG5.BIN        @Group F
@File CBG\VCBG5.BIN        @Group F
@File CBG\CBG5.PAL         @Group NF
@File CBG\BCK05.MAP        @Group NF
@File CBG\BCK04.MAP        @Group NF
@File CBG\VCBG4.BIN        @Group F
@File CBG\SCBG4.BIN        @Group F
@File CBG\CBG4.PAL         @Group NF
@File FILM\SET10.BIN       @Group NF
@File FILM\SET12.BIN       @Group NF
@File FILM\SET1.BIN        @Group NF
@File FILM\SET2.BIN        @Group NF
@File FILM\SET3.BIN        @Group NF
@File FILM\SET4.BIN        @Group NF
@File FILM\SET6.BIN        @Group NF
@File FILM\SET9.BIN        @Group NF
@File FILM\SET11.BIN       @Group NF
@File FILM\SET13.BIN       @Group NF
@File FILM\SET14.BIN       @Group NF
@File FILM\SET15.BIN       @Group NF
@File FILM\SET16.BIN       @Group NF
@File FILM\SET17.BIN       @Group NF
@File FILM\SET23.BIN       @Group NF
@File FILM\SET24.BIN       @Group NF
@File FILM\SET27.BIN       @Group NF
@File FILM\SET28.BIN       @Group NF
@File FILM\SET5.BIN        @Group NF
@File FILM\SET7.BIN        @Group NF
@File FILM\SET8.BIN        @Group NF
@File FILM\SET18.BIN       @Group NF
@File FILM\SET19.BIN       @Group NF
@File FILM\SET20.BIN       @Group NF
@File FILM\SET21.BIN       @Group NF
@File FILM\SET22.BIN       @Group NF
@File FILM\SET25.BIN       @Group NF
@File FILM\SET26.BIN       @Group NF
@File FILM\SET29.BIN       @Group NF
@File FILM\SET40.BIN       @Group NF
@File INTRO\HAMINT.EXE     @Group NF   @Out HAMINT.EXE
@File S\GRATE2.SND         @Group F
@File S\GRATE1.SND         @Group F
@File S\CLICK1.SND         @Group F
@File S\CLICK2.SND         @Group F
@File S\START1.SND         @Group F
@File S\WHOSH.SND          @Group F
@File S\PRYMT-WD.SND       @Group F
@File S\PRYMT-W1.SND       @Group F
@File S\PRYWD-M1.SND       @Group F
@File S\PRYWD-M2.SND       @Group F
@File S\PRYWD-W1.SND       @Group F
@File S\PRYWD-W2.SND       @Group F
@File S\PRYMT-M1.SND       @Group F
@File S\PRYMT-M2.SND       @Group F
@File S\PRYMT-W2.SND       @Group F
@File S\ARWHIT1.SND        @Group F
@File S\ARWHIT2.SND        @Group F
@File S\BLNTHIT1.SND       @Group F
@File S\SWRDHIT1.SND       @Group F
@File S\SWRDHIT2.SND       @Group F
@File S\BLNTHIT2.SND       @Group F
@File S\BONK.SND           @Group F
@File S\TINK.SND           @Group F
@File SCRN\VMAIN.PCX       @Group NF
@File SCRN\VWORLD.PCX      @Group F
@File SCRN\VSETUP.PCX      @Group F
@File SCRN\ST5.PCX         @Group F
@File SCRN\SGTREE.PCX      @Group F
@File SCRN\SWORLD.PCX      @Group F
@File SCRN\SMAIN.PCX       @Group NF
@File SCRN\VDIPLO.PCX      @Group F
@File SCRN\VGTREE.PCX      @Group F
@File SCRN\VDPLAY.PCX      @Group F
@File SCRN\VINFOC.PCX      @Group F
@File SCRN\VINFOA.PCX      @Group F
@File SCRN\VINFOU.PCX      @Group F
@File SCRN\SSETUP.PCX      @Group F
@File SCRN\SDIPLO.PCX      @Group F
@File SCRN\SDPLAY.PCX      @Group F
@File SCRN\SINFOA.PCX      @Group F
@File SCRN\SINFOC.PCX      @Group F
@File SCRN\SINFOU.PCX      @Group F
@File SCRN\VCRUIT.PCX      @Group F
@File SCRN\VRAID.PCX       @Group F
@File SCRN\VTYR.PCX        @Group F
@File SCRN\VSONG.PCX       @Group F
@File SCRN\VSAGA.PCX       @Group F
@File SCRN\VFRIGG.PCX      @Group F
@File SCRN\VODIN.PCX       @Group F
@File SCRN\VTHOR.PCX       @Group F
@File SCRN\VELF.PCX        @Group F
@File SCRN\VDWARF.PCX      @Group F
@File SCRN\VHUMAN.PCX      @Group F
@File SCRN\VHAMLG.PCX      @Group F
@File SCRN\RAID.PAL        @Group F
@File SCRN\SONG.PAL        @Group F
@File SCRN\FRIGG.PAL       @Group F
@File SCRN\TYR.PAL         @Group F
@File SCRN\SAGA.PAL        @Group F
@File SCRN\ODIN.PAL        @Group F
@File SCRN\THOR.PAL        @Group F
@File SCRN\ELF.PAL         @Group F
@File SCRN\DWARF.PAL       @Group F
@File SCRN\HUMAN.PAL       @Group F
@File SCRN\HAMLG.PAL       @Group F
@File SCRN\SSONG.PCX       @Group F
@File SCRN\STYR.PCX        @Group F
@File SCRN\SRAID.PCX       @Group F
@File SCRN\SSAGA.PCX       @Group F
@File SCRN\SFRIGG.PCX      @Group F
@File SCRN\SODIN.PCX       @Group F
@File SCRN\STHOR.PCX       @Group F
@File SCRN\SELF.PCX        @Group F
@File SCRN\SDWARF.PCX      @Group F
@File SCRN\SHUMAN.PCX      @Group F
@File SCRN\SHAMLG.PCX      @Group F
@File SCRN\XODIN.PCX       @Group F
@File SCRN\TROLL.PAL       @Group F
@File SCRN\XTYR.PCX        @Group F
@File SCRN\XTHOR.PCX       @Group F
@File SCRN\XSAGA.PCX       @Group F
@File SCRN\XFRIGG.PCX      @Group F
@File SCRN\STROLL.PCX      @Group F
@File SCRN\VTROLL.PCX      @Group F
@File SCRN\XTROLL.PCX      @Group F
@File SCRN\VQUESD.PCX      @Group F
@File SCRN\XHUMAN.PCX      @Group F
@File SCRN\XELF.PCX        @Group F
@File SCRN\XDWARF.PCX      @Group F
@File SCRN\SCRUIT.PCX      @Group F
@File SCRN\SQUESD.PCX      @Group F
@File SCRN\VTOMEU.PCX      @Group F
@File SCRN\STOMEC.PCX      @Group F
@File SCRN\STOMEU.PCX      @Group F
@File SCRN\VTOMEC.PCX      @Group F

@EndDisk

@Finish

	@If ('S' [= @Group)
		@Write("@OutDrive:\\@Subdir\\HAMMER.BAT","wt","@@ECHO OFF\n")
		@Write(,,"IF EXIST SOUNDDIG.CFG GOTO Intro\n");
		@Write(,,"CDROM.EXE\n")
		@Write(,,"if ERRORLEVEL 1 Goto Exit\n")
		@Write(,,"CD \\HAMMER\n")
		@Write(,,"SETSOUND USEEXISTING SWITCHDIR @OutDrive:\\@SubDir %1 %2 %3 %4 %5 %6 %7 %8 %9\n")
		@Write(,,":Intro\n")
		@Write(,,"CDROM.EXE\n")
		@Write(,,"if ERRORLEVEL 1 Goto Exit\n")
		@Write(,,"CD \\HAMMER\\INTRO\n")
		@Write(,,"REM HAMINT.EXE is also for the ENDGAME screen, so if the next line is\n")
		@Write(,,"REM removed, no victory screen will be given at the end of the game.\n")
		@Write(,,"REM Instead, you can run the game with HAMMER NOINTRO.\n")
		@Write(,,"HAMINT Z SWITCHDIR @OutDrive:\\@SubDir %1 %2 %3 %4 %5 %6 %7 %8 %9\n")
		@Write(,,"if ERRORLEVEL 1 Goto Done\n")
		@Write(,,"CDROM.EXE\n")
		@Write(,,"CD \\HAMMER\n")
		@Write(,,"HAMGAM Z SWITCHDIR @OutDrive:\\@SubDir %1 %2 %3 %4 %5 %6 %7 %8 %9\n")
		@Write(,,"if ERRORLEVEL 24 Goto Done\n")
		@Write(,,"if ERRORLEVEL 23 Goto Intro\n")
		@Write(,,":Done\n")
		@Write(,,"CDROM.EXE\n")
		@Write(,,"CD \\\n")
		@Write(,,"@OutDrive:\n")
		@Write(,,"CD \\@SubDir\n")
		@Write(,,":Exit\n")
	@Else
		@Write("@OutDrive:\\@Subdir\\HAMMER.BAT","wt","@@ECHO OFF\n")
		@Write(,,"IF EXIST SOUNDDIG.CFG GOTO Intro\n");
		@Write(,,"CDROM.EXE\n")
		@Write(,,"if ERRORLEVEL 1 Goto Exit\n")
		@Write(,,"CD \\HAMMER\n")
		@Write(,,"@OutDrive:\\@SubDir\\SETSOUND USEEXISTING %1 %2 %3 %4 %5 %6 %7 %8 %9\n")
		@Write(,,":Intro\n")
		@Write(,,"CDROM.EXE\n")
		@Write(,,"if ERRORLEVEL 1 Goto Exit\n")
		@Write(,,"CD \\HAMMER\\INTRO\n")
		@Write(,,"REM HAMINT.EXE is also for the ENDGAME screen, so if the next line is\n")
		@Write(,,"REM removed, no victory screen will be given at the end of the game.\n")
		@Write(,,"REM Instead, you can run the game with HAMMER NOINTRO.\n")
		@Write(,,"@OutDrive:\\@SubDir\\HAMINT Z %1 %2 %3 %4 %5 %6 %7 %8 %9\n")
		@Write(,,"if ERRORLEVEL 1 Goto Done\n")
		@Write(,,"CDROM.EXE\n")
		@Write(,,"CD \\HAMMER\n")
		@Write(,,"@OutDrive:\\@SubDir\\HAMGAM Z %1 %2 %3 %4 %5 %6 %7 %8 %9\n")
		@Write(,,"if ERRORLEVEL 24 Goto Done\n")
		@Write(,,"if ERRORLEVEL 23 Goto Intro\n")
		@Write(,,":Done\n")
		@Write(,,"CDROM.EXE\n")
		@Write(,,"CD \\\n")
		@Write(,,"@OutDrive:\n")
		@Write(,,"CD \\@SubDir\n")
		@Write(,,":Exit\n")
	@EndIf

	@Cls

	@Name Version @Version is now installed.  To run the game
	now, type HAMMER and press Enter.  In the future, to run
	the game:

	1) Type @OutDrive: and press Enter.
	2) Type CD @SubDir and press Enter.
	3) Type HAMMER and press Enter.

	Note: @Name will attempt to autodetect your
	sound card.  If you experience any sound-related problems,
	or you have an unusual sound board setup (ie, two sound
	boards), then you should run the SETSOUND progam by typing
	SETSOUND and pressing Enter between steps 2 and 3 above.

	@Pause

	@ChDrive @OutDrive
	@ChDir "@SubDir"

@EndFinish
/* end-of-file */
