home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1997 #5 / amigaacscoverdisc1997-051997.i / games / shareware / diamondcaves / prefs1.4 / installprefs < prev    next >
Text File  |  1996-05-14  |  5KB  |  180 lines

  1. ; $VER InstallPrefs 1.4l (28.04.96)
  2.  
  3. (if (> (exists ("env:Language")) 0) (set lanfound (getenv "Language")) )
  4. (set lan 0)
  5. (set #lanQuestion "Please select language:")
  6. (set #nohelp "Sorry, no help-text.")
  7. (if (= "deutsch" lanfound)
  8.     (
  9.         (set lan 1)
  10.         (set #lanQuestion "Bitte Sprache auswählen:")
  11.         (set #nohelp "Sorry, kein help-text.")
  12.     )
  13. )
  14.  
  15. (set Update 0)
  16. (set version 0)
  17. (set DrawerName "DC:")
  18.  
  19. (complete 0)
  20. (set lan  (askchoice (choices "English" "Deutsch"
  21.                          (prompt #lanQuestion)
  22.                          (help #nohelp)
  23.                          (default lan)
  24.                      )
  25.           )
  26. )
  27.  
  28. (set #normal "normal")
  29. (set #mwb1 "MagicWB (1)")
  30. (set #mwb2 "MagicWB (2)")
  31. (set #rare "RareDiamond")
  32.  
  33. (if (= lan 0)
  34.     (
  35.         (set #alreadyinstalled "You have already installed a version greater or equal 1.4!\n")
  36.         (set #oldversion "You have already installed an older version of Diamond Prefs.\nDo you want to update or install completely new?")
  37.         (set #installnew "Install new")
  38.         (set #update "Update")
  39.         (set #copy "Copying..." )
  40.         (set #guidesource "english/DiamondPrefs.guide")
  41.         (set #whaticons "What kind of Icons do you want?")
  42.         (set #noicons "none")
  43.         (set #nodc "Directory DC: not found!\nYou need an installed Version of Diamond Caves to run Diamond Prefs.")
  44.         (set #end "\nDiamond Prefs V1.4 installation/update complete.\n\nHave fun!")
  45.     )
  46.     (
  47.         (set #alreadyinstalled "Es ist schon eine Version größer oder gleich V1.4 installiert!")
  48.         (set #oldversion "Es ist schon eine ältere Version von Diamond Prefs installiert.\nWollen Sie dieVersion erneuern oder alles komplett neu installieren?")
  49.         (set #installnew "neu installieren")
  50.         (set #update "erneuern")
  51.         (set #copy "Kopiere..." )
  52.         (set #guidesource "deutsch/DiamondPrefs.guide")
  53.         (set #whaticons "Was für Icons möchten Sie?")
  54.         (set #noicons "keine")
  55.         (set #nodc "Konnte Directory DC: nicht finden!\nEs muß eine installierte Version von Diamond Caves vorhanden sein!")
  56.         (set #end "\nDiamond Prefs V1.4 fertig installiert/erneuert.\n\nViel Spaß!")
  57.     )
  58. )
  59.  
  60.  
  61. (if (exists "DC:" (NOREQ))
  62.     (
  63.  
  64.         (if (exists "DC:DiamondPrefs" (NOREQ))
  65.             (
  66.                 (set vernum (getversion "DC:DiamondPrefs"))
  67.  
  68.                 (set ver (/ vernum 65536))
  69.                 (set rev (- vernum (* ver 65536)))
  70.  
  71.                 (set version (+ (* 100 ver) rev))
  72.  
  73.                 (if (> version 102)
  74.                     (
  75.                         (message #alreadyinstalled)
  76.                         (exit (quiet))
  77.                     )
  78.                 )
  79.  
  80.                 (set Update
  81.                     (askchoice
  82.                         (prompt #oldversion)
  83.                         (choices #installnew #update)
  84.                         (help "Sorry, no help-file.")
  85.                         (default 0)
  86.                     )
  87.                 )
  88.             )
  89.         )
  90.     )
  91.     (
  92.         (message #nodc)
  93.         (exit (quiet))
  94.     )
  95. )
  96.  
  97. (if (= Update 1)                  ; only Update according to present Version
  98.     (
  99.         (complete 30)
  100.         (copyfiles
  101.             (prompt #copy)
  102.             (help #nohelp)
  103.             (source "new")
  104.             (dest DrawerName)
  105.             (all)
  106.             (infos)
  107.         )
  108.     )
  109.  
  110.     (                             ; new install: copy everything to "DrawerName" (should be "DC:" !)
  111.         (complete 10)
  112.         (set icons
  113.             (askchoice
  114.                 (prompt #whaticons)
  115.                 (choices #normal #mwb1 #mwb2 #rare #noicons)
  116.                 (help #nohelp)
  117.                 (default 0)
  118.             )
  119.         )
  120.  
  121.         (if (= icons 0)
  122.             (set IconName "Icons/normal")
  123.         )
  124.         (if (= icons 1)
  125.             (set IconName "Icons/MagicWB1")
  126.         )
  127.         (if (= icons 2)
  128.             (set IconName "Icons/MagicWB2")
  129.         )
  130.         (if (= icons 3)
  131.             (set IconName "Icons/RareDiamond")
  132.         )
  133.  
  134.         (if (<> icons 4)
  135.             (
  136.                 (copyfiles
  137.                     (prompt #copy)
  138.                     (help #nohelp)
  139.                     (source IconName)
  140.                     (dest DrawerName)
  141.                     (pattern "DiamondPref#?")
  142.                     (infos)
  143.                 )
  144.             )
  145.         )
  146.  
  147.         (complete 30)
  148.         (copyfiles
  149.             (prompt #copy)
  150.             (help #nohelp)
  151.             (source "new")
  152.             (dest DrawerName)
  153.             (pattern "DiamondPrefs#?")
  154.             (infos)
  155.         )
  156.     )
  157. )
  158.  
  159. (complete 70)
  160. (copyfiles                  ; new guide
  161.     (prompt #copy)
  162.     (help #nohelp)
  163.     (source #guidesource)
  164.     (dest DrawerName)
  165. )
  166.  
  167. (complete 80)
  168. (copyfiles                  ; Catalogs
  169.     (prompt #copy)
  170.     (help #nohelp)
  171.     (source "locale")
  172.     (dest DrawerName)
  173.     (all)
  174. )
  175.  
  176. (complete 100)
  177. (message #end)
  178.  
  179. (exit (quiet))
  180.