@DefineProject
        @Name       = "KA-50 HOKUM"
        @Version    = "1.0"
        @Subdir     = "\\KA50"
	@Outdrive   = C
	@Requires   @HardDisk
	@InDiskBell=@TRUE
	@Terse
	@Immediate =@TRUE
@EndProject

@Display

@If (@RamAvail < 500000)
	@Cls
	Not enough free base memory (@RamAvail Bytes).
	This install program requires at least 500 Kb.
	@Pause
	@Abort
@EndIf

@If (@ExtTotal < 3400000)
	@Cls
	Not enough extended memory (@ExtTotal Bytes).
	KA-50 HOKUM requires 3.4 Mb.
	@Pause
	@Abort
@EndIf


	@Cls

			       KA-50 HOKUM


                      Hard Disk Installation Program




	You may press the [Esc] key at any time to abort the installation.
	Use Up and Down Arrow keys to select options and Enter to accept.



	@Pause
@EndDisplay

@GetOutDrive
	@Suppress A
	@Suppress B
	@Cls
	Which drive would you like to install @Name onto?
@EndOutDrive

@Display
@If (!@DriveExists(@OutDrive))
		Drive @OutDrive is not accessable!
		@Pause
		@Abort
@EndIf

@If (@Removable)
		You can't install @Name onto a floppy drive!
		@Pause
		@Abort
@EndIf

	@If (@DiskFree @OutDrive < 14500000)
		The selected output disk drive only has
		@DiskFree @OutDrive bytes. KA-50 HOKUM requires
		14.5 MBytes free for installation.
		@Pause
		@Abort
	@EndIf
	@If (@CPU <= 286)
		KA-50 requires a 386 PC or better.
		@Pause
		@Abort
	@Endif
@EndDisplay

@GetSubdir
	Which directory would you like to install @Name into?
	@Prompt = "(Default [Enter] is @Subdir)"
@EndSubdir

@DefineDisk
	@Label = "Disk 1"
	@File LHA.EXE
	@File KA50.LZH
	@File D1.LZH
@EndDisk

@DefineDisk
	@Label = "Disk 2"
	@File HD.LZH
	@File HD1.LZH
	@File DG_2.LZH
@EndDisk

@DefineDisk
	@Label = "Disk 3"
	@File TEXTURE.LZH
	@File D.LZH
	@File D2.LZH
	@File DC.LZH
	@File HD2.LZH
	@File DATA.LZH
@EndDisk

@DefineDisk
	@Label = "Disk 4"
	@File DG_1.LZH
@EndDisk

@Finish
	Files copied from floppy disks
	Starting decompression ...
        @MkDir("@OutDrive:\\@Subdir\\D")
        @MkDir("@OutDrive:\\@Subdir\\D1")
        @MkDir("@OutDrive:\\@Subdir\\D2")
        @MkDir("@OutDrive:\\@Subdir\\DC")
        @MkDir("@OutDrive:\\@Subdir\\DG")
        @MkDir("@OutDrive:\\@Subdir\\HD")
        @MkDir("@OutDrive:\\@Subdir\\HD1")
        @MkDir("@OutDrive:\\@Subdir\\HD2")
        @MkDir("@OutDrive:\\@Subdir\\DATA")
        @MkDir("@OutDrive:\\@Subdir\\TEXTURE")

	@ChDrive @OutDrive
	@ChDir "@Subdir"

	@Spawn("LHA e KA50.LZH")
	@Spawn("LHA e D.LZH D\\")
	@Spawn("LHA e D1.LZH D1\\")
	@Spawn("LHA e D2.LZH D2\\")
	@Spawn("LHA e DC.LZH DC\\")
	@Spawn("LHA e DG_1.LZH DG\\")
	@Spawn("LHA e DG_2.LZH DG\\")
	@Spawn("LHA e HD.LZH HD\\")
	@Spawn("LHA e HD1.LZH HD1\\")
	@Spawn("LHA e HD2.LZH HD2\\")
	@Spawn("LHA e DATA.LZH DATA\\")
	@Spawn("LHA e TEXTURE.LZH TEXTURE\\")

	@Delete("LHA.EXE")
	@Delete("*.LZH")
	@Cls

Installation of @Name is finished.

To run hokum change to the game directory and type HOKUM
C:\KA50> HOKUM <return>

@pause
@EndFinish
