;Installer script for FileConv 2
;Version 1.50
;(C) 1997 Adrian O' Neill
;See FileConv.guide for more information


  (copylib
    (prompt "Install will copy reqtools.library to Libs:")
    (source "reqtools.library")
    (dest "libs:")
    (confirm)
    (help @copylib-help)
  )

  (complete 20)

  (set destdir
    (askdir
      (prompt "Please select a directory/partition in which to install FileConv. If an existing version of FileConv is already installed on your system, choose the directory in which it is installed.")
      (help @askdir-help)
      (default @default-dest)
    )
  )

  (set newdir (tackon destdir "FileConv"))

  (if (exists (newdir))
        (set @default-dest destdir)
        (
          (if (makedir newdir
              (prompt ("Install will create the directory %s to place FileConv and it's files in" newdir))
              (infos)
              (confirm)
              (help @makedir-help)
            )
          (set @default-dest newdir)
          (set @default-dest destdir)
        )
     )
  )

  (complete 30)

  (copyfiles
    (prompt "Select which files you want to install:")
    (source "")
    (choices "FileConv" "FileConv.guide" "Readme" "Register" "GobbleDir" "UnGobble" "Uninstall")
    (dest @default-dest)
    (infos)
    (confirm)
    (help @copyfiles-help)
  )

  (complete 80)

  (startup "FileConv"
    (prompt "A path statement should be added to your startup-sequence if you intend to use FileConv from the CLI.")
    (command ("c:path %s add" @default-dest))
    (help @startup-help)
  )

  (complete 100)

; $VER: Install v1.50 (04.07.97)

