home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 93 / af093a.adf / archives / af3.lzx / TaskBar6 / install_TaskBar6 next >
Text File  |  1999-05-22  |  3KB  |  166 lines

  1. ; Installer for TaskBar v6
  2. ; by Robert Ennals (ennals@aol.com)
  3.  
  4. (welcome "Welcome to the installer for TaskBar6!\n \n"
  5.      "TaskBar v6 by Robert Ennals\n"
  6.      "TaskBarPrefs by Guilherme Cirne\n")
  7.  
  8.  
  9. (
  10.     (complete 0)
  11.     ; find out whether to put TaskBar in WBStartup
  12.  
  13.  
  14.  
  15.     (set autostart
  16.     (askbool
  17.         (prompt "Do you want to install TaskBar to Sys:WbStartup so that it starts up automatically?")
  18.         (default 1)
  19.         (help "If you just want to test TaskBar then don't put it in WBStartup. If you want TaskBar to always be active then do. If you change your mind later then just copy it in or out of WBStartup")
  20.     )
  21.     )
  22.  
  23.     (if autostart
  24.     (
  25.         (if (exists "Ram:wbstartup/TaskBar")
  26.         (
  27.             (delete Ram:wbstartup/TaskBar)
  28.             (delete Ram:wbstartup/TaskBar.info)
  29.         )
  30.         )
  31.  
  32.         (copyfiles
  33.         (prompt ("Copying TaskBar to Sys:WBStartup"))
  34.         (help @copyfiles-help)
  35.         (source "bin/TaskBar")
  36.         (dest "Sys:WBStartup/")
  37.         (infos)
  38.         )
  39.     )
  40.     (
  41.         (set tbdest
  42.         (askdir
  43.             (prompt ("Where do you want me to put TaskBar then"))
  44.             (default "Work:")
  45.             (help @askfile-help)
  46.             (disk)
  47.         )
  48.         )
  49.         (copyfiles
  50.         (prompt ("Copying TaskBar"))
  51.         (help @copyfiles-help)
  52.         (source "bin/TaskBar")
  53.         (dest tbdest)
  54.         (infos)
  55.         )    
  56.     )
  57.     )
  58.  
  59.     (complete 20)
  60.  
  61.     (if (exists "ENVARC:TaskBar4.prefs")
  62.     (
  63.         (message ("Previous version of TaskBar found. Preferences preserved"))
  64.     )
  65.     (
  66.         (copyfiles
  67.         (prompt ("Copying prefs file to ENVARC:"))
  68.         (help @copyfiles-help)
  69.         (source "env/TaskBar4.prefs")
  70.         (dest "ENVARC:")
  71.         )
  72.  
  73.         (copyfiles
  74.         (prompt ("Copying prefs file to ENV:"))
  75.         (help @copyfiles-help)
  76.         (source "env/TaskBar4.prefs")
  77.         (dest "ENV:")
  78.         )  
  79.     )
  80.     )
  81.  
  82.     (complete 40)
  83.  
  84.     (set tbdest
  85.     (askdir
  86.         (prompt ("Where do you want the TaskBar extras to be put? \n"
  87.         "Extras include the documentation and TellScreens. \n"
  88.         "This must NOT be the installation source directory"))
  89.         (default "Work:")
  90.         (help @askfile-help)
  91.         (disk)
  92.     )
  93.     )
  94.  
  95.     (copyfiles
  96.     (prompt ("Copying documentation"))
  97.     (help @copyfiles-help)
  98.     (source "TaskBar.guide")
  99.     (dest tbdest)
  100.     (infos)
  101.     )
  102.  
  103.     (complete 60)
  104.  
  105.     (copyfiles
  106.     (prompt ("Copying Tellscreens"))
  107.     (help @copyfiles-help)
  108.     (source "bin/Tellscreens")
  109.     (dest tbdest)
  110.     (infos)
  111.     )  
  112.  
  113.     (copyfiles
  114.     (prompt ("Copying WBRun to C"))
  115.     (help @copyfiles-help)
  116.     (source "c/WBRun")
  117.     (dest "C:")
  118.     )
  119.  
  120.     (copylib
  121.     (prompt ("Installing parm.library for WBRun"))
  122.     (help @copylib-help)
  123.     (confirm)
  124.     (source "libs/parm.library")
  125.     (dest "libs:")
  126.     )
  127.  
  128.     (complete 80)
  129.  
  130.     (set prefs
  131.     (askbool
  132.         (prompt "Do you want to copy TaskBarPrefs to sys:prefs?")
  133.         (default 1)
  134.         (help "If you select NO then TaskBar will not be able to launch TBPrefs")
  135.     )
  136.     )  
  137.  
  138.     (if prefs
  139.     (
  140.         (if (exists "Ram:Prefs/TBPrefs")
  141.         (
  142.             (delete "Sys:Prefs/TaskBarPrefs")
  143.             (delete "Sys:Prefs/TaskBarPrefs.info")
  144.         )
  145.         )
  146.  
  147.         (copyfiles
  148.         (prompt ("Copying TBPrefs to Sys:Prefs/"))
  149.         (help @copyfiles-help)
  150.         (source "bin/TaskBarPrefs")
  151.         (dest "Sys:Prefs/")
  152.         (infos)
  153.         )
  154.     )
  155.     )    
  156.  
  157.     (message
  158.     (
  159.     "Make sure you read TaskBar.guide \n before using TaskBar \n"
  160.     )
  161.     )
  162.  
  163.     (run "AmigaGuide TaskBar.guide")
  164. )
  165.  
  166.