home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 106 / EnigmaAmiga106CD.iso / software / grafica / visionfx / visionfx_install < prev    next >
Encoding:
Text File  |  1999-08-18  |  5.1 KB  |  306 lines

  1. ; VisionFX installer script
  2. ;
  3. ; Written by Sebastian Jedruszkiewicz
  4. ; Copyright © 1999 Total Vision.
  5.  
  6. (
  7.     (set bytes "1.0MB")
  8.     (set installdir "ImageFX3:")
  9.     (set action "Install")
  10.  
  11.     (procedure _AskDir
  12.         (
  13.             (set installdrawer
  14.             (askdir
  15.             (prompt "Select the directory where you have ImageFX(tm) installed.\n"
  16.             "(Note:  About " bytes " of free space is required for installation)")
  17.             (help @askdir-help)
  18.             (default installdir)
  19.             ))
  20.         (set dir installdrawer)
  21.         )
  22.     )
  23.  
  24.  
  25.     (if
  26.         (exists "ImageFX3:" (noreq))
  27.         (set installdir "ImageFX3:")
  28.     )
  29.  
  30.     (if
  31.         (exists "ImageFX4:" (noreq))
  32.         (set installdir "ImageFX4:")
  33.     )
  34.  
  35. (complete 0)
  36.  
  37.     (set action
  38.         (select
  39.             (askchoice
  40.                 (prompt    "Select action:")
  41.                 (help    @askchoice-help)
  42.                 (choices
  43.                     "Install"
  44.                     "UnInstall"
  45.                 )
  46.                 (default "Install")
  47.             )
  48.             "Install"
  49.             "UnInstall"
  50.         )
  51.     )
  52.  
  53. (complete 10)
  54.  
  55.    (_AskDir)
  56.  
  57. (complete 20)
  58.  
  59. ;Installation
  60.  
  61. (if (= action "Install")
  62. (
  63.     (copyfiles
  64.        (prompt "")
  65.        (help "")
  66.        (source "Modules/Savers/JPEG.PPC")
  67.        (dest (tackon installdir "Modules/Savers"))
  68.     )
  69.  
  70. (complete 30)
  71.  
  72.     (copyfiles
  73.        (prompt "")
  74.        (help "")
  75.        (source "Modules/Savers/PNG.PPC")
  76.        (dest (tackon installdir "Modules/Savers"))
  77.     )
  78.  
  79. (complete 40)
  80.  
  81.     (copyfiles
  82.        (prompt "")
  83.        (help "")
  84.        (source "Modules/Savers/ASCII.PPC")
  85.        (dest (tackon installdir "Modules/Savers"))
  86.     )
  87.  
  88. (complete 50)
  89.  
  90.     (copyfiles
  91.        (prompt "")
  92.        (help "")
  93.        (source "Modules/Loaders/JPEG.PPC")
  94.        (dest (tackon installdir "Modules/Loaders"))
  95.     )
  96.  
  97. (complete 60)
  98.  
  99.     (copyfiles
  100.        (prompt "")
  101.        (help "")
  102.        (source "Modules/Loaders/PNG.PPC")
  103.        (dest (tackon installdir "Modules/Loaders"))
  104.     )
  105.  
  106. (complete 70)
  107.  
  108.     (copyfiles
  109.        (prompt "")
  110.        (help "")
  111.        (source "Hooks/FXForge.PPC")
  112.        (dest (tackon installdir "Hooks/"))
  113.     )
  114.  
  115. (complete 75)
  116.  
  117.     (copyfiles
  118.        (prompt "")
  119.        (help "")
  120.        (source "Hooks/Antique.PPC")
  121.        (dest (tackon installdir "Hooks/"))
  122.     )
  123.  
  124.     (copyfiles
  125.        (prompt "")
  126.        (help "")
  127.        (source "Hooks/VolumeLight.PPC")
  128.        (dest (tackon installdir "Hooks/"))
  129.     )
  130.  
  131. (complete 80)
  132.  
  133.     (working "Setting Icon Tool Types...\n"
  134.                  "  updating ImageFX.info"
  135.     )
  136.  
  137.     (tooltype
  138.         (prompt "")
  139.         (help "")
  140.         (dest (tackon installdir "ImageFX"))
  141.         (settooltype "POWERUP" (""))
  142.     )
  143.  
  144.     (working "Setting Icon Tool Types...\n"
  145.              "  updating Cinemorph.info"
  146.     )
  147.     (tooltype
  148.         (prompt "")
  149.         (help "")
  150.         (dest (tackon installdir "Cinemorph"))
  151.         (settooltype "POWERUP" (""))
  152.     )
  153.  
  154.     (working "Setting Icon Tool Types...\n"
  155.              "updating ImageFX_Classic.info"
  156.     )
  157.     (tooltype
  158.         (prompt "")
  159.         (help "")
  160.         (dest (tackon installdir "ImageFX_Classic"))
  161.         (settooltype "POWERUP" (""))
  162.     )
  163.  
  164.     (working "Setting Icon Tool Types...\n"
  165.               "updating ImageFX_Toaster.info"
  166.     )
  167.     (tooltype
  168.         (prompt "")
  169.         (help "")
  170.         (dest (tackon installdir "ImageFX_Toaster"))
  171.         (settooltype "POWERUP" (""))
  172.     )
  173.  
  174.     (working "Setting Icon Tool Types...\n"
  175.              "    updating IMP.info"
  176.     )
  177.     (tooltype
  178.         (prompt "")
  179.         (help "")
  180.         (dest (tackon installdir "IMP"))
  181.         (settooltype "POWERUP" (""))
  182.     )
  183.  
  184.     (working "Setting Icon Tool Types...\n"
  185.              "   updating AutoFX.info"
  186.     )
  187.     (tooltype
  188.         (prompt "")
  189.         (help "")
  190.         (dest (tackon installdir "AutoFX"))
  191.         (settooltype "POWERUP" (""))
  192.     )
  193.  
  194.     (working "Setting Icon Tool Types...\n"
  195.              " updating Sample_Proj.info"
  196.     )
  197.     (tooltype
  198.         (prompt "")
  199.         (help "")
  200.         (dest (tackon installdir "Sample_Proj"))
  201.         (settooltype "POWERUP" (""))
  202.     )
  203.  
  204. (complete 85)
  205.  
  206.     (copyfiles
  207.        (prompt "")
  208.        (help "")
  209.        (source "s/vfx.key1")
  210.        (dest "s:")
  211.     )
  212.  
  213.  
  214. (complete 90)
  215.  
  216.     (copyfiles
  217.         (prompt "")
  218.         (help "")
  219.         (source "VisionFX.guide")
  220.         (dest (tackon installdir "Help/"))
  221.     )
  222.  
  223. (message "\n\n\nPlease read "installdir"Help/VisionFX.guide before running ImageFX")
  224.  
  225. ))
  226.  
  227. ;deinstallation
  228.  
  229. (if (= action "UnInstall")
  230. (
  231.  
  232. (complete 10)
  233.  
  234.     (working"     Removing file:\n"
  235.                 "Modules/Loaders/JPEG.PPC"
  236.     )
  237.     (delete (tackon installdir "Modules/Loaders/JPEG.PPC"))
  238.  
  239.     (working"     Removing file:\n"
  240.                 "Modules/Loaders/PNG.PPC"
  241.     )
  242.     (delete (tackon installdir "Modules/Loaders/PNG.PPC"))
  243.  
  244.     (working"     Removing file:\n"
  245.                 "Modules/Savers/JPEG.PPC"
  246.     )
  247.     (delete (tackon installdir "Modules/Savers/JPEG.PPC"))
  248.  
  249.     (working"     Removing file:\n"
  250.                 "Modules/Savers/PNG.PPC"
  251.     )
  252.     (delete (tackon installdir "Modules/Savers/PNG.PPC"))
  253.  
  254.     (working"     Removing file:\n"
  255.                 "   Hooks/FXForge.PPC"
  256.     )
  257.     (delete (tackon installdir "Hooks/FXForge.PPC"))
  258.  
  259.     (working"     Removing file:\n"
  260.                 "   Hooks/Antique.PPC"
  261.     )
  262.     (delete (tackon installdir "Hooks/Antique.PPC"))
  263.  
  264.     (working"     Removing file:\n"
  265.                 "   Hooks/VolumeLight.PPC"
  266.     )
  267.     (delete (tackon installdir "Hooks/VolumeLight.PPC"))
  268.  
  269.     (working"     Removing file:\n"
  270.                 "   Help/VisionFX.guide"
  271.     )
  272.     (delete (tackon installdir "Help/VisionFX.guide"))
  273.     (delete (tackon installdir "Help/VisionFX.info"))
  274.  
  275.     (set keys
  276.         (select
  277.             (askchoice
  278.                 (prompt    "Remove Key files?")
  279.                 (help    @askchoice-help)
  280.                 (choices
  281.                     "Yes"
  282.                     "No"
  283.                 )
  284.                 (default "No")
  285.             )
  286.             "Yes"
  287.             "No"
  288.         )
  289.     )
  290.  
  291.     (if (= keys "Yes")
  292.     (
  293.         (working"  Removing key files\n"
  294.         )
  295.         (delete "s:vfx.key1")
  296.         (delete "s:vfx.key2")
  297.     ))
  298.  
  299. (message "VisionFX modules has been removed")
  300.  
  301. ))
  302.  
  303. (complete 100)
  304.  
  305. )
  306.