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

# Welcome message
welcome_message = "Welcome to Classic Doom MOD (Dhewm3) 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 Classic Doom MOD to the following locations (Files will be overwritten):\n  - choose your destination   : <dest>Dhewm3-ClassicDoom/\n \n")
SetString(InstallPage, "destination", "SYS:")


# Configure file to be copied
filePack1 = AddPackage (FILEPACKAGE,
	                                name = "Classic Doom MOD for AmigaOS4",
	                                description = "Destination",
	                                files = ["Dhewm3-ClassicDoom","Dhewm3-ClassicDoom.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()
