; IFX V2.20
;

;START

(welcome "About to update\nIFX v2.12 to 2.20\n(input effects)\n\nŠ Dobes Vandermeer\n")
(set @app-name "IFX")
(set @default-dest "SYS:")
(if (askbool
      (prompt "Okay to copy\nexecutable to dir\nSYS:WBStartup?")
      (help "Press yes to copy,\nno to select another dir.")
      (default 1)
      )
   (set #bindir "SYS:WBStartup")
   (set #bindir 
      (askdir
         (prompt "Select directory for executable.\n")
         (help "Since you didn't want\nto install to the\ndefault directory,\nPlease select another.\n" 
               "(NIL: will send it all to hell)")
         (default "SYS:Tools/Commodities")
         )
      )
   )
   
(copyfiles 
   (prompt "Copying executable to:\n" #bindir)
   (help "Make sure all boxes are checked, \nand select proceed.")
   (source "")
   (choices "IFX" "IFX.info")
   (dest #bindir)
   )

(complete 75)
(set #docdir
   (askdir
      (prompt "Where would you like me\nto install the new documentation?")
      (help "Find the directory where\nyou would like\ntosave the amigaguide\ndocumentation, and press\nProceed.\n")
      (default "SYS:Docs")
      )
   )

(copyfiles
   (source "")
   (pattern "IFX.guide#?")
   (dest #docdir)
   )

(complete 100)

(exit "Update of IFX complete.\n\nPlease reboot to test IFX.\n\nDocumentation can be found \nin " #docdir " and the \nexecutable is in " #bindir " and the prefs editor is in\n" 
#prefsdir (quiet))

