;Installer script for FileConv 2
;Version 1.00
;(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.")
      (help @askdir-help)
      (default @default-dest)
    )
  )

  (set newdir (tackon destdir "FileConv"))

  (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" "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.00 (08.04.97)

