home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / Raytracing / Raytracer / CC-FX261.DMS / in.adf / Install-Extras_2.6 < prev    next >
Encoding:
Text File  |  1996-04-23  |  7.0 KB  |  239 lines

  1. ; ImageFX Extras Installer Utility
  2. ;
  3. ; For ImageFX Release 2.6
  4. ;
  5. ; Written by Thomas Krehbiel
  6. ; Copyright © 1994,1995 Nova Design, Inc.
  7. ;
  8.  
  9. (
  10.  
  11.    ;================================================================
  12.    ; Setup
  13.    ;================================================================
  14.  
  15.    ; script variables...
  16.  
  17.    (set diskname1 "ImageFX26_Disk1:")        ; install disk name
  18.    (set diskname2 "ImageFX26_Disk2:")        ; second install disk name
  19.    (set diskname3 "ImageFX26_Disk3:")        ; third install disk name
  20.    (set diskname4 "ImageFX26_Disk4:")        ; third install disk name
  21.    (set diskname5 "ImageFX26_Disk5:")        ; fourth install disk name
  22.  
  23.    ; system information...
  24.  
  25.    (set osver (/ (getversion) 65536))        ; os version
  26.    (set cputype (database "cpu"))            ; cpu type
  27.  
  28.    ;-------------------
  29.    ; Warn user.
  30.    (message "These hooks and modules were either not created by Nova Design, Inc., "
  31.             "or are based on software not created or supported by Nova Design.  "
  32.             "Because of this, Nova Design cannot provide technical support or "
  33.             "upgrades or enhancements for these extras.  They are "
  34.             "provided for your amusement only; use them at your own risk.  "
  35.             "If you do not want to install them, click `Abort Install' now.")
  36.  
  37.    ;-------------------
  38.    ; Pick a default directory for the installation...
  39.    (set initialdir @default-dest)            ; defaults to biggest drive
  40.    (if (getassign "ImageFX")
  41.       (
  42.          (set initialdir (getassign "ImageFX"))
  43.       )
  44.    )
  45.  
  46.    ;-------------------
  47.    ; Ask where to install it...
  48.    (set wheredir
  49.       (askdir
  50.          (prompt "Select the directory where you would like to install the "
  51.                  "ImageFX Extras.")
  52.          (help "Select the directory where you have installed ImageFX.  The "
  53.                "extras will not work in any other directory.")
  54.          (default initialdir)
  55.       )
  56.    )
  57.  
  58.    (set @default-dest wheredir)
  59.  
  60.    ;-------------------
  61.    ; Ask what to install...
  62.    ; 2.1:  added JSTREAM and Cybergraphics
  63.    (set todo
  64.       (askoptions
  65.          (prompt "Select the extras you would like to install:")
  66.          (help "Check the boxes to indicate which extras you would "
  67.                "like installed on your system.")
  68.          (choices
  69.             "MPEG Utilities"
  70.             "PostScript® Loader"
  71.             "PAR_PEG Loader"
  72.             "Photo CDROM Loader"
  73.             "JSTREAM Loader & Saver"
  74.             "Grafexa (Harlequin) Render Module"
  75.             "CyberGraphX Render Module"
  76.          )
  77.       )
  78.    )
  79.  
  80.    (set mask_mpeg    1)
  81.    (set mask_post    2)
  82.    (set mask_parpeg  4)
  83.    (set mask_pcd     8)
  84.    (set mask_jstr    16)
  85.    (set mask_grfx    32)
  86.    (set mask_cyber   64)
  87.  
  88.    ;-------------------
  89.    ; Copy LHEX to RAM: for speediness
  90.    (copyfiles
  91.       (prompt "")
  92.       (help "")
  93.       (source diskname1)
  94.       (dest "RAM:")
  95.       (choices "lhex")
  96.    )
  97.  
  98.    ;================================================================
  99.    ; DISK 5
  100.    ;================================================================
  101.  
  102.    (askdisk
  103.       (prompt "Please insert ImageFX Disk 5 in any drive.")
  104.       (help "")
  105.       (dest (substr diskname5 0 (- (strlen diskname5) 1)))
  106.       (assigns)
  107.    )
  108.  
  109.    (if (BITAND mask_mpeg todo)
  110.       (
  111.          (working "Installing MPEG Utilities...")
  112.          (run ("RAM:lhex >CON:0/0//60/lhex/AUTO -a -f -w=%s x %sExtras3.lha" wheredir diskname5))
  113.          (tooltype
  114.             (prompt "")
  115.             (help "")
  116.             (dest (tackon wheredir "Browser"))
  117.             (settooltype "MPEG" (tackon wheredir "MPEG/mp"))
  118.          )
  119.       )
  120.    )
  121.    (if (BITAND mask_parpeg todo)
  122.       (
  123.          (working "Installing PAR_PEG Loader...")
  124.          (run ("RAM:lhex >CON:0/0//60/lhex/AUTO -a -f -w=%s x %sExtras2.lha Modules/Loaders/PAR_PEG" wheredir diskname5))
  125.       )
  126.    )
  127.    (if (BITAND mask_pcd todo)
  128.       (
  129.          (working "Installing Photo CDROM Loader...")
  130.          (run ("RAM:lhex >CON:0/0//60/lhex/AUTO -a -f -w=%s x %sExtras2.lha Modules/Loaders/PCD" wheredir diskname5))
  131.       )
  132.    )
  133.    (if (BITAND mask_grfx todo)
  134.       (
  135.          (working "Installing Grafexa Render Module...")
  136.          (run ("RAM:lhex >CON:0/0//60/lhex/AUTO -a -f -w=%s x %sExtras2.lha Modules/Render/Grafexa" wheredir diskname5))
  137.       )
  138.    )
  139.  
  140.    (if (BITAND mask_post todo)
  141.       (
  142.  
  143.          (working "Installing PostScript Loader...")
  144.          (run ("RAM:lhex >CON:0/0//60/lhex/AUTO -a -f -w=%s x %sExtras1.lha" wheredir diskname5))
  145.  
  146.          ; backup existing copies of libraries just in case ...
  147.  
  148.          (if (exists "LIBS:post.library")
  149.             (
  150.                (if (exists "LIBS:post.library.backup")
  151.                   (delete "LIBS:post.library.backup")
  152.                )
  153.                (rename "LIBS:post.library" "LIBS:post.library.backup")
  154.             )
  155.          )
  156.  
  157.          (if (exists "LIBS:hwgpost.library")
  158.             (
  159.                (if (exists "LIBS:hwgpost.library.backup")
  160.                   (delete "LIBS:hwgpost.library.backup")
  161.                )
  162.                (rename "LIBS:hwgpost.library" "LIBS:hwgpost.library.backup")
  163.             )
  164.          )
  165.  
  166.          (if (OR (= cputype "68000") (= cputype "68010"))
  167.             (
  168.                (copylib
  169.                   (prompt "")
  170.                   (help @copylib-help)
  171.                   (source (tackon wheredir "libs/post.library"))
  172.                   (dest "LIBS:")
  173.                   (newname "post.library")
  174.                )
  175.             )
  176.             ; else
  177.             (
  178.                (copylib
  179.                   (prompt "")
  180.                   (help @copylib-help)
  181.                   (source (tackon wheredir "libs/post.library.20"))
  182.                   (dest "LIBS:")
  183.                   (newname "post.library")
  184.                )
  185.             )
  186.          )
  187.          (run ("delete %s all quiet" (tackon wheredir "libs")))
  188.  
  189.       )
  190.    )
  191.  
  192.    ; 2.1:
  193.    (if (BITAND mask_jstr todo)
  194.       (
  195.          (working "Installing JSTREAM Modules...")
  196.          (run ("RAM:lhex >CON:0/0//60/lhex/AUTO -a -f -w=%s x %sExtras4.lha Modules/Loaders/JSTREAM.#? Modules/Savers/JSTREAM.#? JStream.guide JStream.guide.info" wheredir diskname5))
  197.       )
  198.    )
  199.  
  200.    ; 2.1:
  201.    (if (BITAND mask_cyber todo)
  202.       (
  203.          (working "Installing Cybergraphics Render Module...")
  204.          (run ("RAM:lhex >CON:0/0//60/lhex/AUTO -a -f -w=%s x %sExtras4.lha Modules/Render/CyberGraphics.#?" wheredir diskname5))
  205.       )
  206.    )
  207.  
  208.    ;================================================================
  209.    ; Miscellaneous Setup
  210.    ;================================================================
  211.  
  212.    ;================================================================
  213.    ; Cleanup
  214.    ;================================================================
  215.  
  216.    (run "Delete RAM:lhex QUIET")
  217.  
  218.    (complete 100)
  219.  
  220.    ; Installation complete!
  221. )
  222.  
  223. ;-----------------------------------------------------------------------
  224. ; Revision History:
  225. ;
  226. ;  8/25/94 tek
  227. ;     Created.
  228. ;
  229. ;  9/02/94 tek
  230. ;     Fixed so it actually works.
  231. ;
  232. ;  4/06/95 tek (2.1)
  233. ;     Added JSTREAM and Cybergraphics render module.
  234. ;     Revised for new 2.1 disk layout.
  235. ;
  236. ;  4/23/96 tek (2.6)
  237. ;     Updated post.library installation.
  238. ;
  239.