(set @app-name "Flyin\'High Patch")
(set @pretend 0)
(set @user-level 2)
(if (= @language "deutsch")
 (
  (set #MSG_WELCOME "Willkommen zur Installation des Patches für Flyin\'High.")
  (set #MSG_ASKDIR "Bitte geben Sie das Verzeichnis auf Ihrer Festplatte an, in dem sich Flyin\'High befindet.")
  (set #HELP_ASKDIR "Dieses Verzeichnis muß angegeben werden, damit der Installer weiß, wohin die Daten kopiert werden müssen.")
  (set #MSG_WRONGDIR "In dem angegebenen Verzeichnis konnte keine existierende Installation von Flyin\'High gefunden werden.")
  (set #MSG_UNPACK "Entpacke Archiv. Dieser Vorgang kann etwas Zeit beanspruchen.")
  (set #MSG_COMPLETE "Die Installation des Patches ist abgeschlossen.\nViel Spaß mit Flyin\'High wünscht P.U.R.E.")
 )
 (
  (set #MSG_WELCOME "Welcome the the installation of the patch for Flyin\'High.")
  (set #MSG_ASKDIR "Please select the directory on your harddisk, in which Flyin\'High is installed.")
  (set #HELP_ASKDIR "This directory must be selected, that the Installer knows where to copy the data to.")
  (set #MSG_WRONGDIR "No existing installation of Flyin\'High was found in the selected directory.")
  (set #MSG_UNPACK "Unpacking archive. This procedure may take some time.")
  (set #MSG_COMPLETE "The installation of the patch is now complete.\nP.U.R.E. wishes you a lot of fun with Flyin\'High.")
 )
)
(welcome #MSG_WELCOME)
(set #default-dest (askdir (prompt #MSG_ASKDIR) (default @default-dest) (help #HELP_ASKDIR) (disk)))
(if (NOT(AND (= (exists (tackon #default-dest "Flyin\'High") (noreq)) 1) (= (exists (tackon #default-dest "gfx") (noreq)) 2)))
 (exit #MSG_WRONGDIR (quiet))
 (
  (working #MSG_UNPACK)
  (run ("lhex >CON: -fw= \"%s\" x patch.lha" #default-dest))
  (run "avail >NIL: flush")
  (complete 100)
  (exit #MSG_COMPLETE (quiet))
 )
)

