home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / WBStartup+ / Install next >
Text File  |  2000-01-26  |  5KB  |  178 lines

  1. ;
  2. ; $PROJECT: WBStartup+
  3. ;
  4. ; (C) Copyright 1996 John Hughes.  All Rights Reserved.
  5. ;
  6.  
  7.  
  8. (
  9.   (working "Installing WBStartup+")
  10.  
  11.   (message "\n\nWBStartup+ and WBStartup+Prefs\n\nare Postcardware.\n\nIf you use either of these programs, please send a postcard of your city or country to:\n\nJohn Hughes\n901 Highview Rd.\nEast Peoria, IL 61611 USA")
  12.  
  13.   (if (exists "SYS:WBStartup/WBStartup+")
  14.     ( ; UPGRADE PREVIOUS VERSION
  15.       (message "\n\nA previous version of WBStartup+ has been found.  I will upgrade your version.")
  16.     )
  17.     ( ; INSTALL FOR THE FIRST TIME
  18.       ; Moving the WBStartup files safely
  19.       (
  20.         (rename "SYS:WBStartup" "SYS:WBStartup.temp")
  21.         (makedir "SYS:WBStartup")
  22.         (rename "SYS:WBStartup.temp" "SYS:WBStartup/WBStartup (Enabled)")
  23.       )
  24.  
  25.       ; Creating Disabled Directory
  26.       (makedir "SYS:WBStartup/WBStartup (Disabled)")
  27.     )
  28.   )
  29.  
  30.       ; Copying icon
  31.       (copyfiles
  32.         (prompt "Copying the Enabled icon")
  33.         (source "icons/Enabled_Icon.info")
  34.         (dest "SYS:WBStartup")
  35.         (newname "WBStartup (Enabled).info")
  36.       )
  37.  
  38.       ; Copying icon
  39.       (copyfiles
  40.         (prompt "Copying the Disabled icon")
  41.         (source "icons/Disabled_Icon.info")
  42.         (dest "SYS:WBStartup")
  43.         (newname "WBStartup (Disabled).info")
  44.       )
  45.  
  46.       ; Copy WBStartup+, Prefs, and library for the appropriate OS version
  47.       (if (< (/ (getversion) 65536) 39)  ;if this is OS2.x
  48.         ; Copy WBStartup+ for OS2.x and launch.library
  49.         (
  50.           (copyfiles
  51.             (prompt "Copying the WBStartup+ Executable for OS2.x")
  52.             (help @copyfiles-help)
  53.             (source "OS2.x/WBStartup+")
  54.             (dest "SYS:WBStartup")
  55.             (infos)
  56.           )
  57.           ; install Launcher.Library to Libs:
  58.           (copylib
  59.             (prompt "Copying Launcher.library")
  60.             (help @copylib-help)
  61.             (source "libs/launcher.library")
  62.             (dest "libs:")
  63.           )
  64.         )
  65.       )
  66.      ; Copy WBStartup+, Prefs, and library for the appropriate OS version
  67.       (if (< (/ (getversion "workbench.library") 65536) 44)  ;if this is OS3.5
  68.         ; Copy WBStartup+ for OS2.5
  69.         (
  70.           (copyfiles
  71.             (prompt "Copying the WBStartup+ Executable for OS3.5")
  72.             (help @copyfiles-help)
  73.             (source "OS3.5/WBStartup+")
  74.             (dest "SYS:WBStartup")
  75.             (infos)
  76.           )
  77.  
  78.         ; Copy WBStartup+Prefs for OS3.5 users
  79.           (copyfiles
  80.             (prompt "Copying the WBStartup+Prefs Executable for OS3.x")
  81.             (help @copyfiles-help)
  82.             (source "OS3.5/WBStartup+Prefs")
  83.             (dest "SYS:Prefs")
  84.             (confirm)
  85.             (infos)
  86.           )    
  87.  
  88.           ; install DosPath.Library to Libs:
  89.           (copylib
  90.             (prompt "Copying DosPath.library")
  91.             (help @copylib-help)
  92.             (source "libs/dospath.library")
  93.             (dest "libs:")
  94.           )
  95.  
  96.         )
  97.  
  98.  
  99.         (
  100.           ; else, copy WBStartup+, WBStartup+Prefs, WBStart.library, and DosPath.library for OS3.x users
  101.  
  102.           ; Copy WBStartup+ for OS3.x
  103.           (copyfiles
  104.             (prompt "Copying the WBStartup+ Executable for OS3.x")
  105.             (help @copyfiles-help)
  106.             (source "OS3.x/WBStartup+")
  107.             (dest "SYS:WBStartup")
  108.             (infos)
  109.           )
  110.           ; Copy WBStartup+Prefs for OS3.x users
  111.           (copyfiles
  112.             (prompt "Copying the WBStartup+Prefs Executable for OS3.x")
  113.             (help @copyfiles-help)
  114.             (source "OS3.x/WBStartup+Prefs")
  115.             (dest "SYS:Prefs")
  116.             (confirm)
  117.             (infos)
  118.           )
  119.           ; install WBStart.Library to Libs:
  120.           (copylib
  121.             (prompt "Copying WBStart.library")
  122.             (help @copylib-help)
  123.             (source "libs/wbstart.library")
  124.             (dest "libs:")
  125.           )
  126.           ; install DosPath.Library to Libs:
  127.           (copylib
  128.             (prompt "Copying DosPath.library")
  129.             (help @copylib-help)
  130.             (source "libs/dospath.library")
  131.             (dest "libs:")
  132.           )
  133.         )
  134.       )
  135.  
  136.       ;****************************************************************
  137.       ;Install language Catalogs
  138.  
  139.       (set def-lang 0)
  140.  
  141.       ;(complete 60) (working #lang-install-text)
  142.  
  143.       (set lang
  144.         (askoptions
  145.         (prompt "Which languages do want installed?")
  146.         (help "Checkmark the languages you want installed, and click Proceed.")
  147.         (choices "Dansk" "Deutsch" "Español" "Français" "Italiano" "Magyar" "Norsk" "Russian" "Suomi" "Svenska")
  148.         (default def-lang)
  149.       ))
  150.  
  151.       (set n 0)
  152.  
  153.       (while (set language (select n "dansk" "deutsch" "español" "français" "italiano" "magyar" "norsk" "russian" "suomi" "svenska" "") )
  154.       (
  155.         (if (IN lang n)
  156.                 (copyfiles
  157.             (source (cat "Locale/" language ".catalog" ))
  158.                         (dest (cat "LOCALE:catalogs/" language ))
  159.                         (newname "WBStartup+Prefs.catalog")
  160.                 )
  161.         )
  162.         (set n (+ n 1))
  163.       ))
  164.  
  165.       ;****************************************************************
  166.  
  167.       ; install AmigaGuide file
  168.       (copyfiles
  169.         (prompt "Copying AmigaGuide file")
  170.         (help @copyfiles-help)
  171.         (source "WBStartup+.guide")
  172.         (dest "AmigaGuide:")
  173.         (confirm)
  174.       )
  175.  
  176.         (set @default-dest "SYS:WBStartup")
  177. )
  178.