; Begin Ascii View Installation Script
; $VER : Ascii View installation scripy V1.0 24/3/97

(Set @app-name "Ascii View")
(set name
   (askdir
       (prompt 'Please select a directory to install Ascii View (a directory is NOT created)')
       (default "dh1:")
       (help @askfile-help)
   )
)

(complete 10)

(copyfiles
   (prompt "Copying program to your selected directory.")
   (help @copyfiles-help)
   (source "Ascii_View")
   (dest name)
   (confirm)
)

(copyfiles
   (source "Ascii_View.info")
   (dest name)
)

(complete 50)

(set #docs
   (askchoice
      (prompt "Would you like to install the guide file and the text file, the guide file only, the text file only or none")
      (help "The guide file is easier to read but requires an AmigaGuide viewer. The text file should work on any machine. If you have an AmigaGuide viewer you should install the Amigaguide file as it is easier to read.")
      (choices "Both Files" "Guide Only" "Text Only" "None")
   )
)

(complete 60)
(if (= #docs 0)
   (
   (copyfiles
      (source "")
      (pattern "Ascii_View.guide#?")
      (dest name)
   )
   (copyfiles
      (source "")
      (dest name)
      (pattern "Ascii_View.TXT#?")
   )
   )
)

(if (= #docs 1)
   (
   (copyfiles
      (source "")
      (pattern "Ascii_View.GUIDE#?")
      (dest name)
   )
   )
)

(if (= #docs 2)
   (
   (copyfiles
      (source "")
      (pattern "Ascii_View.TXT#?")
      (dest name)
   )
   )
)
(if (= #docs 3)
)
(complete 100)

