home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / software / on-line / simpleftp / install < prev    next >
Encoding:
Text File  |  2000-01-15  |  5.4 KB  |  206 lines

  1. ; Installer Script for SimpleFTP
  2. ; $VER: Install v1.1 (04.12.99)
  3.  
  4. (user 2)
  5. (set #theirlevel @user-level)
  6.  
  7. (set #wbversion 0)
  8. (set #wbversion (getversion "workbench.library" (resident)))
  9. (set #wbversion (/ #iconversion 65536) )
  10. (if (< #wbversion 44)
  11.   (
  12.    ;execute Install3.5
  13.    (run "C:Installer InstallOS3.5 APPNAME SimpleFTP DEFUSER EXPERT MINUSER EXPERT LOGFILE RAM:SimpleFTP.log")
  14.   )
  15.   (
  16.     (set #install-docs
  17.     (cat "Install documentation?\n"
  18.     ))
  19.  
  20.     (set #select-lang
  21.     (cat "Select language:"
  22.     ))
  23.  
  24.     (set #not-installed
  25.     (cat "\nSimpleFTP has NOT been installed.\n"
  26.     ))
  27.  
  28.     (set #goodbye
  29.     (cat "\nInstallation of SimpleFTP is complete.\n\n"
  30.          "If you have used a version previous to v1.83,\n"
  31.          "but after v1.80, it is important that you run\n"
  32.          "the SiteConverter tool to update your saved\n"
  33.          "list of favourite FTP sites.\n"
  34.          "(Copy it to your SimpleFTP directory first)"
  35.     ))   
  36.  
  37.     (set #select-dir
  38.     (cat "Please select somewhere to install SimpleFTP\n"
  39.          "(A directory is NOT created for you)"
  40.     ))
  41.  
  42.     (set #my-address
  43.     (cat "\nContact Information\n\n"
  44.         "Author: Rick Hodger\n"
  45.          "e-Mail: rick@thehub.u-net.com\n"
  46.          "Bugs: bugs@thehub.u-net.com\n"
  47.          "Web: http://www.thehub.u-net.com\n"
  48.     ))
  49.  
  50.     (set #copyright
  51.     (cat "\nSimpleFTP is (C) Copyright 1998-1999 Rick Hodger\n"
  52.          "Written by Rick Hodger\n\n"
  53.          "The author in no way offers any guarantees or warranties "
  54.          "with this program.  By continuing this installation, "
  55.          "you agree that the author is in no way responsable "
  56.          "for any damage caused.\n\n"
  57.          "Do you agree to these terms?"
  58.     ))
  59.  
  60. ;**************************************************************************************************
  61.  
  62.     (complete 5)
  63.     (set agree (askbool (prompt #copyright)
  64.           (help #install-docs-help)
  65.           (choices "Yes" "No")
  66.          )
  67.     )
  68.  
  69.     (if (= agree 0)       (
  70.       (message #not-installed)
  71.       (exit (quiet))
  72.     ))
  73.  
  74. ;******************************************** Locale Stuff *****************************************
  75.  
  76.     (complete 10)
  77.     (set catalog
  78.       (askchoice
  79.         (choices "English (Built-in)" "Deutsch" "Español" "Français" "Greek" "Italiano" "Norsk" "Português" "Svenska")
  80.          (prompt #select-lang)
  81.         (help   "None here")
  82.       )
  83.     )
  84.     (set loc-target "LOCALE:Catalogs/")
  85.     (set loc-source "locale/")
  86.   
  87.     (if (= catalog 1)     (
  88.       (set loc-target (tackon loc-target "Deutsch"))
  89.       (set loc-source (tackon loc-source "Deutsch"))
  90.       (set loc-use 1)
  91.     ))
  92.    
  93.     (if (= catalog 2)     (
  94.       (set loc-target (tackon loc-target "Español"))
  95.       (set loc-source (tackon loc-source "Español"))
  96.       (set loc-use 1)
  97.     ))
  98.  
  99.     (if (= catalog 3)     (
  100.       (set loc-target (tackon loc-target "Français"))
  101.       (set loc-source (tackon loc-source "Français"))
  102.       (set loc-use 1)
  103.     ))
  104.  
  105.     (if (= catalog 4)     (
  106.       (set loc-target (tackon loc-target "Greek"))
  107.       (set loc-source (tackon loc-source "Greek"))
  108.       (set loc-use 1)
  109.     ))
  110.  
  111.     (if (= catalog 5)     (
  112.       (set loc-target (tackon loc-target "Italiano"))
  113.       (set loc-source (tackon loc-source "Italiano"))
  114.       (set loc-use 1)
  115.     ))
  116.  
  117.     (if (= catalog 6)     (
  118.       (set loc-target (tackon loc-target "Norsk"))
  119.       (set loc-source (tackon loc-source "Norsk"))
  120.       (set loc-use 1)
  121.     ))
  122.  
  123.     (if (= catalog 7)     (
  124.       (set loc-target (tackon loc-target "Português"))
  125.       (set loc-source (tackon loc-source "Português"))
  126.       (set loc-use 1)
  127.     ))
  128.  
  129.     (if (= catalog 8)     (
  130.       (set loc-target (tackon loc-target "Svenska"))
  131.       (set loc-source (tackon loc-source "Svenska"))
  132.       (set loc-use 1)
  133.     ))
  134.  
  135.     (if (= loc-use 1)    (
  136.       (set loc-source (tackon loc-source "SimpleFTP.catalog"))
  137.     ;  (if (< (exists (loc-target)) 2) makedir loc-target) )
  138.        (copyfiles (
  139.         (source loc-source)
  140.         (dest   loc-target)
  141.       ))
  142.     ))
  143.  
  144. ;*************************************** Select destination ****************************************
  145.  
  146.     (complete 20)
  147.     (set target1         (askdir
  148.        (help   "No help here matey!")
  149.        (prompt #select-dir)
  150.        (default "Miami:")
  151.     ))
  152.  
  153.     (set target2 target1)
  154.  
  155.     (complete 25)
  156.     (complete 50)
  157.     (copyfiles (
  158.        (prompt "Select files you want installed")
  159.        (help   "Umm....duh?")
  160.        (source  "")
  161.        (dest    target1)
  162.        (choices "SimpleFTP" "SimpleFTP.info" "SimpleFTP.sites" "Icons")
  163.        (CONFIRM)
  164.     ))
  165.  
  166. ;(complete 60)
  167. ;(copyfiles (
  168. ;  (prompt "Select extra icons you want installed")
  169. ;  (help   "Yargh"
  170. ;  (source "icons")
  171. ;  (dest   target2)
  172. ;  (choices "upload.info")
  173. ;  (CONFIRM)
  174. ;))
  175.  
  176.     (complete 75)
  177.     (set docs (askbool (prompt #install-docs)
  178.           (help #install-docs-help)
  179.           (choices "Yes" "No")
  180.          )
  181.     )
  182.  
  183.     (complete 85)
  184.     (if (= docs 1)          (
  185.         (set target3         (askdir
  186.           (prompt "Select Directory for SimpleFTP.html")
  187.           (help "Directory where SimpleFTP.html will be copied to.")
  188.           (default target1)
  189.         ))
  190.         (copyfiles (
  191.           (prompt  "Select files you wish Installed")
  192.           (help "Documentation.")
  193.           (source  "")
  194.           (dest    target3)
  195.           (choices "SimpleFTP.html" "SimpleFTP.html.info" "README.TXT")
  196.           (CONFIRM)
  197.        ))
  198.     ))
  199.  
  200.     (complete 100)
  201.     (message #goodbye)
  202.     (message #my-address)
  203.   )
  204. )
  205. (exit (quiet))
  206.