.key cent,param2
.bra {
.ket }

if "{cent}" eq ""
	echo "Install cancelled."
	skip cancel
endif

if not "{param2}" eq ""
	echo "Path names with spaces must be enclosed in double quotes."
	skip cancel
endif

echo "*NInstalling Centurion to *"{cent}*"."


if not exists "{cent}"
	echo "*NCreating directory..."
	makedir "{cent}"
	copy Centurion1:EmptyInfo "{cent}.info"	
else
	echo "The directory *"{cent}*" already exists."
	ask "Do you wish to install to this directory? (Y to install, N to quit) :"
	if not warn 
		echo "Installation cancelled*N"
		skip cancel
	endif	
endif

copy Centurion1:Centurion#? "{cent}"
copy Centurion1:#?.cat "{cent}"
copy Centurion1:New#? "{cent}"
copy Centurion1:Fonts/centurion.#? FONTS:
copy Centurion1:Fonts/centurion/#? FONTS:centurion
copy Centurion2:#?.cat "{cent}"

echo "*N    Centurion installation finished."

lab cancel

