(set @default-dest (askdir (prompt "Where do you want to put the XPKGuide program")
			   (help @askdir-help)
			   (default "SYS:Utilities")
))
(copylib (prompt "Copying XPKGuide")
	 (help @copylib-help)
	 (source "XPKGuide")
	 (dest @default-dest)
	 (infos)
	 (optional oknodelete askuser)
)
(tooltype (prompt "Floating XPKGuides icon")
	  (help "")
	  (dest (tackon @default-dest "XPKGuide"))
	  (noposition)
)
(if (= 1 (askbool (prompt "Do you want to install the preferences program?")
		  (help @askbool-help)
		  (default 1)))
  (
    (set prefdrawer (askdir (prompt "Where do you want to install XPKGuidePrefs?")
			    (help @askdir-help)
			    (default "SYS:Prefs")))
    (copylib (prompt "Copying XPKGuidePrefs")
	     (help @copylib-help)
	     (source "XPKGuidePrefs")
	     (dest prefdrawer)
	     (infos)
    )
    (tooltype (prompt "Floating XPKGuidePrefs icon")
	      (help "")
	      (dest (tackon prefdrawer "XPKGuidePrefs"))
	      (noposition)
    )
  )
)
(if (= 1 (askbool (prompt "Do you want to install XPKGuides AmigaGuide manual?")
		  (help @askbool-help)
		  (default 1)))
  (
    (set guidedrawer (askdir (prompt "Where do you want to install XPKGuide.guide")
			    (help @askdir-help)
			    (default @default-dest)))
    (copylib (prompt "Copying XPKGuide.guide")
	     (help @copylib-help)
	     (source "XPKGuide.guide")
	     (dest guidedrawer)
	     (infos)
    )
    (tooltype (prompt "Floating XPKGuide.guide icon")
	      (help "")
	      (dest (tackon guidedrawer "XPKGuide.guide"))
	      (noposition)
    )
  )
)
(copylib (prompt "Copying xpkmaster.library")
	 (help @copylib-help)
	 (source "libs/xpkmaster.library")
	 (dest "LIBS:")
	 (optional oknodelete askuser)
)
(copylib (prompt "Copying powerpacker.library")
	 (help @copylib-help)
	 (source "libs/powerpacker.library")
	 (dest "LIBS:")
	 (optional oknodelete askuser)
)
(copylib (prompt "Copying lh.library")
	 (help @copylib-help)
	 (source "libs/lh.library")
	 (dest "LIBS:")
	 (optional oknodelete askuser)
)
(copylib (prompt "Copying xfdmaster.library")
	 (help @copylib-help)
	 (source "libs/xfdmaster.library")
	 (dest "LIBS:")
	 (optional oknodelete askuser)
)
(copyfiles (prompt "Copying XFD external decrunchers")
	   (help @copyfiles-help)
	   (source "libs/xfd")
	   (dest "LIBS:xfd")
	   (all)
	   (optional oknodelete askuser)
)
