# Start Installer script
import installer
from installer import *
import amiga                # Amiga specifics
import os

# Welcome message
welcome_message = "Welcome to Doom3 for AmigaOS4 installation."

#Complete Text
complete_message = "Installation complete.\n\n Click 'Finish' to refresh your installation.\n\n\n Enjoy your game now!!' "

# Welcome page
WelcomePage = NewPage(WELCOME)
SetString(WelcomePage, "message", welcome_message)

# License page.
licensePage = NewPage(LICENSE)

# Get location
InstallPage = NewPage(DESTINATION)
SetString(InstallPage, "message", "This installer will copy Doom3 to the following locations (Files will be overwritten):\n  - choose your destination   : <dest>Dhewm3-OS4/\n \n")
SetString(InstallPage, "destination", "SYS:")


# Configure file to be copied
filePack1 = AddPackage (FILEPACKAGE,
	                                name = "Doom3 (Dhewm3) for AmigaOS4",
	                                description = "Destination",
	                                files = ["Dhewm3-OS4","Dhewm3-OS4.info"],
	                                optional = False
	                                )


#-------------------------------------------------------------------------------------


#Install Docky
installPage = NewPage(INSTALL)

# Create a "finish" page.
finalPage = NewPage(FINISH)
SetString(finalPage, "message", complete_message)

# Finally, this runs the installation.
RunInstaller()
