(
  (working "Installing DiskSqueeze v1.21")

(set @default-dest "")

(if (< (getversion "LIBS:version.library") (* 37 65536))
   (abort "DiskSqueeze requires Workbench 2.0 or higher")
)

(set dsq_dest
   (askdir
      (prompt "In which drawer should DiskSqueeze & tools be copied?")
      (help @askdir-help)
      (default "SYS:Tools")
   )
)
      (copyfiles
        (prompt "Copying the main file (with MagicWB icon)")
        (source "DiskSqueeze")
        (dest dsq_dest)
      )

      (copyfiles
        (prompt "Copying the DiskSqueeze MagicWB icon")
        (source "DiskSqueeze.info")
        (dest dsq_dest)
      )

      (copyfiles
        (prompt "Copying the Check utility")
        (source "Check")
        (dest dsq_dest)
      )

      (copyfiles
        (prompt "Copying the Check MagicWB icon")
        (source "Check.info")
        (dest dsq_dest)
      )

      (copyfiles
        (prompt "Copying the necessary tools. Don't forget to install LZX (not included here)")
        (help @copyfiles-help)
        (source "Programs/")
        (ALL)
        (dest "C:")
        (confirm)
        (infos)
      )

      (copyfiles
        (prompt "Copying the dms-device v1.4.")
        (help @copyfiles-help)
        (source "Devs/")
        (ALL)
        (dest "DEVS:")
        (confirm)
        (infos)
      )
      (if (< (getversion "LIBS:version.library") (* 39 65536))
       (copyfiles
        (prompt "Copying the Requester commands to your C: dir")
        (help @copyfiles-help)
         (source "37.x/")
        (ALL)
        (dest "C:")
        (confirm)
       )
      )

      (copyfiles
        (prompt "Select the document-files to copy")
        (help @copyfiles-help)
        (source "Docs/")
        (ALL)
        (dest dsq_dest)
        (confirm)
        (infos)
      )

      (copyfiles
        (prompt "Select the preview-pictures to copy")
        (help @copyfiles-help)
        (source "Preview/")
        (ALL)
        (dest "RAM:")
        (confirm)
        (infos)
      )
)
