// Install script for Albion English version
// 26th of June 1996
// (c) 1996 Blue Byte Software GmbH


// Set language
SET_LANGUAGE 2

// Load background image
LOAD_BACKGROUND "install.lbm"

// Go to setup if already installed, else go to install
IF_EXISTS setup.ini
	GOTO SetupMainMenu
ELSE
	GOTO InstallMainMenu
ENDIF


// Install main menu
:InstallMainMenu

MENU_START
MENU_ENTRY "Albion: Installation"
MENU_ENTRY "Install Albion" InstallGame
MENU_ENTRY "Exit program" ExitInstallFromInstall
MENU_END


// Install the game
:InstallGame

// Select a target drive
SELECT_TARGET_DRIVE 3000 InstallMainMenu

// Select target path
SELECT_TARGET_PATH ALBION

// Confirm installation
ASSERT "Continue installation?" InstallMainMenu

// Change to target directory
CD_TARGET

// Delete everything that may already be here
//DELETE *.*
DELETE DRIVERS
DELETE XLDLIBS

// Create directories
MD SAVES
MD DRIVERS
MD XLDLIBS
MD XLDLIBS\INITIAL
MD XLDLIBS\CURRENT

// Change to source directory
CD_SOURCE

// Inform the user that installation has started
PRINT "Installing Albion."

// Copy AIL drivers
INSTALL DRIVERS\*.* DRIVERS\*.*

// Copy initial position
INSTALL XLDLIBS\INITIAL\*.* XLDLIBS\INITIAL\*.*

// Copy palettes
INSTALL XLDLIBS\PALETTE.000 XLDLIBS\PALETTE.000
INSTALL XLDLIBS\PALETTE0.XLD XLDLIBS\PALETTE0.XLD

// Copy stuff
INSTALL ROOT\ALBION.EXE ALBION.EXE
INSTALL ROOT\MAIN.EXE MAIN.EXE
INSTALL ROOT\ALBION.PIF ALBION.PIF
INSTALL ROOT\ALBILOW.BAT ALBILOW.BAT
INSTALL ROOT\ALBION.VMC ALBION.VMC
INSTALL SETUP.EXE SETUP.EXE
INSTALL INSTALL.SCR INSTALL.SCR
INSTALL INSTALL.LBM INSTALL.LBM
INSTALL DOS4GW.EXE DOS4GW.EXE
INSTALL README.TXT README.TXT

CD_TARGET

// Create and update setup file
CREATE SETUP.INI
UPDATE_INI

// Inform the user that installation has been completed successfully
INFO "Albion has been installed."

GOTO SetupMainMenu


// Setup main menu
:SetupMainMenu

MENU_START
MENU_ENTRY "Albion: Setup"
MENU_ENTRY "Configure sound hardware" SetupSound
MENU_ENTRY "Additional information" ReadDoc
MENU_ENTRY "Exit program" ExitInstallFromSetup
MENU_END


:SetupSound
CD DRIVERS
EXECUTE_OWN_SCREEN SETSOUND.EXE
CD ..
GOTO SetupMainMenu


:ReadDoc
TEXT README.TXT
GOTO SetupMainMenu


:ExitInstallFromSetup
INFO "The Albion CD contains information about other Blue Byte products, including playable Settlers II and Battle Isle 2220 Demos. You can access this information using Windows."
INFO "Please start Albion from the drive you installed it on. Have fun!"
END

:ExitInstallFromInstall
INFO "The Albion CD contains information about other Blue Byte products, including playable Settlers II and Battle Isle 2220 Demos. You can access this information using Windows."
END

