home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / PointerEyes4.0.lha / PointerEyesV4.0 / PointerEyes4.0 / Install < prev    next >
Encoding:
Text File  |  1995-06-25  |  2.8 KB  |  98 lines

  1. ;
  2. ; $PROJECT: PointerEyes 4.0
  3. ;
  4. ; (C) Copyright 1995 John Hughes.  All Rights Reserved.
  5. ;
  6.  
  7. (message "\n\nWARNING!!!\n\nPointerEyes 4.0 is for AmigaDos 3.0 or greater.\n\nIf you have AmigaDos 2.0 or 2.1, you need to abort this and install version 3.8.")
  8.  
  9. (set mode
  10.       (askchoice
  11.             (prompt @app-name)
  12.             (help @askchoice-help)
  13.             (choices "Install" "Remove")
  14.       )
  15. )
  16.  
  17. (if mode
  18.           (set pmode "Remove")
  19.           (set pmode "Install")
  20. )
  21.  
  22. ; GET INSTALL DIRECTORY
  23. (set installdir
  24.           (askdir
  25.                      (prompt "Where do you want to put the PointerEyes executable?")
  26.                      (help @askdir-help)
  27.                      (default "SYS:WBStartup")
  28.           )
  29. )
  30.  
  31. ; do install or remove
  32. (if mode
  33.           ; Remove
  34.           (
  35.                      (working "Removing " @app-name)
  36.  
  37.                      ; Remove the non-standard pieces
  38.                      (delete (tackon installdir "PointerEyes") (infos))
  39.                      (delete (tackon installdir  "PointerEyesImages/OriginalEyes.8") (infos))
  40.                      (delete (tackon installdir  "PointerEyesImages/OriginalEyes.11") (infos))
  41.                      (delete (tackon installdir  "PointerEyesImages/OriginalEyes.13") (infos))
  42.                      (delete (tackon installdir  "PointerEyesImages/MagicWBEyes.8") (infos))
  43.                      (delete (tackon installdir  "PointerEyesImages/MagicWBEyes.11") (infos))
  44.                      (delete (tackon installdir  "PointerEyesImages/MagicWBEyes.13") (infos))
  45.                      (delete (tackon installdir  "PointerEyesImages/ShadedEyes.8") (infos))
  46.                      (delete (tackon installdir  "PointerEyesImages/ShadedEyes.11") (infos))
  47.                      (delete (tackon installdir  "PointerEyesImages/ShadedEyes.13") (infos))
  48.                      (delete (tackon installdir  "PointerEyesImages/RedYellowEyes.11") (infos))
  49.                      (delete (tackon installdir  "PointerEyesImages/DiamondEyes.11") (infos))
  50.                      (delete (tackon installdir  "PointerEyesImages") (infos))
  51.  
  52.                      (message "Pointer Eyes has been successfully removed.\nscreennotify.library was left in libs: since\nother applications you have may need it.")
  53.                      (exit (quiet))
  54.           )
  55.  
  56.           ; Install
  57.           (
  58.                      (working "Installing " @app-name)
  59.  
  60.                      ; Install the Executable
  61.                      (copyfiles
  62.                                 (prompt "Copying the PointerEyes Executable")
  63.                                 (help @copyfiles-help)
  64.                                 (source "PointerEyes")
  65.                                 (dest installdir)
  66.                                 (infos)
  67.                      )
  68.  
  69.                      ; Install the library
  70.                      (copylib
  71.                                 (prompt "Copying screennotify.library")
  72.                                 (help @copylib-help)
  73.                                 (source "/libs/screennotify.library")
  74.                                 (dest "libs:")
  75.                                 (confirm)
  76.                      )
  77.  
  78.                      ; Install the Image directory
  79.                      (copyfiles
  80.                                 (prompt "Copying the Image Directory")
  81.                                 (help @copyfiles-help)
  82.                                 (source "PointerEyesImages")
  83.                                 (dest (tackon installdir "PointerEyesImages"))
  84.                                 (pattern "#?")
  85.                      )
  86.  
  87.                      ; install AmigaGuide file
  88.                      (copyfiles
  89.                                 (prompt "Copying AmigaGuide file")
  90.                                 (help @copyfiles-help)
  91.                                 (source "/Docs/PointerEyesV4.0.guide")
  92.                                 (dest "AmigaGuide:")
  93.                                 (confirm)
  94.                      )
  95.  
  96.           )
  97. )
  98.