home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC/CD Gamer UK 42
/
PCGAMER42.bin
/
games
/
settler2.mis
/
install.scr
< prev
next >
Wrap
Text File
|
1997-01-23
|
4KB
|
205 lines
// Install script for the Settlers II Demo V2
// (c) 1995-7 Blue Byte Software GmbH
// Set language
SET_LANGUAGE 2
// Load background image
LOAD_BACKGROUND "gfx\pics\install.lbm"
// Install main menu
MENU_START
MENU_ENTRY "Settlers II Demo Installation"
MENU_ENTRY "Install Settlers II" InstallGame
MENU_ENTRY "Quit program" ExitInstallFromInstall
MENU_END
// Install the game
:InstallGame
// Select a target drive
SELECT_TARGET_DRIVE 28000 ExitInstallFromInstall
// Select target path
SELECT_TARGET_PATH BLUEBYTE\SETTLER2.DEM
// Inform the user that installation has started
PRINT "Preparing installation"
// Change to target directory
CD_TARGET
// Delete everything that may already be here
DELETE *.*
DELETE DRIVERS
DELETE DATA\MASKS
DELETE DATA\BOBS
DELETE DATA\IO
DELETE DATA\TXT
DELETE DATA\ANIMDAT
DELETE DATA\SOUNDDAT\SAM
DELETE DATA\SOUNDDAT
DELETE DATA\TEXTURES
DELETE DATA\MBOB
DELETE DATA\CBOB
DELETE DATA\TXT2
DELETE DATA\TXT3
DELETE DATA\MISSIONS
DELETE DATA\MAPS
DELETE DATA\MAPS3
DELETE DATA\ONLINE
DELETE DATA
DELETE GFX\PALETTE
DELETE GFX\PICS
DELETE GFX\TEXTURES
DELETE GFX
DELETE SAVE
DELETE WORLDS
// Create directories
MD DRIVERS
MD DATA
MD DATA\MASKS
MD DATA\BOBS
MD DATA\IO
MD DATA\TXT
MD DATA\ANIMDAT
MD DATA\SOUNDDAT
MD DATA\SOUNDDAT\SNG
MD DATA\TEXTURES
MD DATA\MBOB
MD DATA\CBOB
MD DATA\TXT2
MD DATA\TXT3
MD DATA\MISSIONS
MD DATA\MAPS
MD DATA\MAPS3
MD DATA\ONLINE
MD GFX
MD GFX\PALETTE
MD GFX\PICS
MD GFX\TEXTURES
MD SAVE
MD WORLDS
// Change to source directory
CD_SOURCE
// Inform the user that installation has started
PRINT "Installing Settlers II"
// Copy AIL drivers
INSTALL DRIVERS\*.* DRIVERS\*.*
// Copy stuff
INSTALL SETUP.EXE SETUP.EXE
INSTALL DOS4GW.EXE DOS4GW.EXE
INSTALL README.TXT README.TXT
INSTALL ROOT\S2.exe S2.exe
INSTALL ROOT\S2EDIT.exe S2EDIT.exe
INSTALL ROOT\START.BAT START.BAT
INSTALL ROOT\SETTLER2.BAT SETTLER2.BAT
INSTALL ROOT\NOSOUND.BAT NOSOUND.BAT
INSTALL ROOT\INSTALL.SCR INSTALL.SCR
INSTALL DATA\*.* DATA\*.*
INSTALL DATA\MASKS\*.* DATA\MASKS\*.*
INSTALL DATA\BOBS\*.* DATA\BOBS\*.*
INSTALL DATA\IO\*.* DATA\IO\*.*
INSTALL DATA\TXT\*.* DATA\TXT\*.*
INSTALL DATA\ANIMDAT\*.* DATA\ANIMDAT\*.*
INSTALL DATA\SOUNDDAT\*.* DATA\SOUNDDAT\*.*
INSTALL DATA\SOUNDDAT\SNG\*.* DATA\SOUNDDAT\SNG\*.*
INSTALL DATA\TEXTURES\*.* DATA\TEXTURES\*.*
INSTALL DATA\MBOB\*.* DATA\MBOB\*.*
INSTALL DATA\CBOB\*.* DATA\CBOB\*.*
INSTALL DATA\TXT2\*.* DATA\TXT2\*.*
INSTALL DATA\TXT3\*.* DATA\TXT3\*.*
INSTALL DATA\MISSIONS\*.* DATA\MISSIONS\*.*
INSTALL DATA\MAPS\*.* DATA\MAPS\*.*
INSTALL DATA\MAPS3\*.* DATA\MAPS3\*.*
INSTALL DATA\ONLINE\*.* DATA\ONLINE\*.*
INSTALL GFX\*.* GFX\*.*
INSTALL GFX\PALETTE\*.* GFX\PALETTE\*.*
INSTALL GFX\PICS\*.* GFX\PICS\*.*
INSTALL GFX\TEXTURES\*.* GFX\TEXTURES\*.*
INSTALL SAVE\*.* SAVE\*.*
INSTALL WORLDS\*.* WORLDS\*.*
CD_TARGET
// Create and update setup file
CREATE SETUP.INI
UPDATE_INI
// Inform the user that installation has been completed successfully
INFO "Settlers II demo has been installed successfully"
// Install main menu
:InstallMainMenu
MENU_START
MENU_ENTRY "Settlers II Mission Disk"
MENU_ENTRY "Setup soundcard" SetupSound
MENU_ENTRY "Additional information" ReadDoc
MENU_ENTRY "Change editor-screen-resolution" ChangeScreen
MENU_ENTRY "Exit" ExitInstallFromInstall
MENU_END
:SetupSound
CD DRIVERS
EXECUTE_OWN_SCREEN SETSOUND.EXE
CD ..
GOTO InstallMainMenu
// change resolution
:ChangeScreen
MENU_START
MENU_ENTRY "Screen resolution"
MENU_ENTRY "640x480" ChangeTo640
MENU_ENTRY "800x600" ChangeTo800
MENU_ENTRY "1024x768" ChangeTo1024
MENU_END
// resolutions
:ChangeTo640
WRITE_INI_ENTRY EDIT_SCREEN 0
GOTO InstallMainMenu
:ChangeTo800
WRITE_INI_ENTRY EDIT_SCREEN 1
GOTO InstallMainMenu
:ChangeTo1024
WRITE_INI_ENTRY EDIT_SCREEN 2
GOTO InstallMainMenu
:ReadDoc
TEXT README.TXT
GOTO InstallMainMenu
:ExitInstallFromInstall
END
:ExitInstallFromInstall
END