; $VER: InstallGIF 1.0
; Installer Script for the "personal_gif_io.library" (the library is public domain)
; This script Copyright  1994, 1995 Cloanto Italia srl
; Cloanto is a registered trademark of Cloanto Italia srl
; "Installer and Installer project icon Copyright  1991-1993 Commodore-Amiga, Inc. All Rights Reserved
;  Reproduced and distributed under license from Commodore"
; New installer icon design Copyright  1994 Cloanto Italia srl

(working "\nGIF I/O Library Installer -  Cloanto  1994, 1995")

(if (<> (getassign "PPAINT" "a") "") (set gif_dest "PPaint:libs") (set gif_dest "LIBS:"))

(copylib
	(prompt "\nCopying Personal GIF I/O library")
	(help @copylib-help)
	(source "Libs/personal_gif_io.library")
	(dest gif_dest)
	(optional "nofail" "force")
	(confirm)
	)

(if (AND (= (exists (tackon gif_dest "Personal_GIF24_IO.library")) 1) (= (exists (tackon gif_dest "personal_gif_io.library")) 1)) (
	(working "\nRemoving old \"GIF24\" I/O library")
	(delete
		(tackon gif_dest "Personal_GIF24_IO.library")
		(prompt "\nRemoving old \"GIF24\" I/O library")
		(help "\nAn old \"Personal_GIF24_IO.library\" was found. All functionalities of this library are included in the \"personal_gif_io.library\". Since both libraries are installed, the old library can be deleted.\n\nThe GIF24 project evolved into the PNG specification.")
		(confirm)
		(optional "force"))
	))

(message "\nInstallation complete.\n\nCloanto recommends using PNG instead of GIF.\n\nPersonal Paint (the first paint program worldwide to support PNG), a PNG developer's kit and a PNG DataType are also available from Cloanto.\n\nFor more information: E-mail <info@cloanto.it>")

(exit (quiet))
