;  *** ds.library installation scipt ***


; *** Set some useful messages ***

	(set #install-msg (cat	"\n\nGallery installation script.\n"
											"This script installs Gallery on your Amiga.\n\n"
											"Read the documentation for\n"
											"more information on the distribution\n"
											"and commercial usage.\n\n"
											"Gallery © 1996,97 by Markus Hillenbrand\n"
											"All rights reserved."))
	(set #welcome-msg  	"Welcome to the Gallery installation!")
	(set #bad-kick        	"You must be using Kickstart 37 to use this program!")
	(set #bad-installer			"You must be using Installer 43.x to install GUICreator!")
	(set #ask-prog-dir			"Where shall I install Gallery ?\n(A drawer will NOT be created)")
	(set #ask-gfx-dir			"Where shall I install GfxCon ?\n(A drawer will NOT be created)\nRemember: this must be in your path!")

; *** Welcome the user to the installation

	(message #install-msg)

; *** Check for Kickstart version ***

	(if (< (/ (getversion) 65536) 37)
		((abort #bad-kick))
	)

; *** Check for Installer-Version ***

	(if (< (/ @installer-version 65536) 43)
		((abort #bad-installer))
	)


; *** Ask the user for the default-destinations ***

	(set #prog-dest	(askdir 	(prompt #ask-prog-dir)
                      			(help @askdir-help)
                      			(default "C:")
						)
	)

	(set #gfx-dest	(askdir 	(prompt #ask-gfx-dir)
                      			(help @askdir-help)
                      			(default "C:")
						)
	)

; *** Copy the programs ***

	(copyfiles (prompt "Copying Gallery to" #lib-dest)
				(help @copyfiles-help)
				(source "Gallery")
				(dest   #prog-dest)
	)

	(copyfiles (prompt "Copying GfxCon to" #gfx-dest)
				(help @copyfiles-help)
				(source "GfxCon_68020")
				(dest   #gfx-dest)
				(confirm)
	)

