home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Commercial / CGXV3_Elbox / CGXV3_Update < prev    next >
Text File  |  2000-10-25  |  16KB  |  322 lines

  1. ;*****************************************************************************
  2. ;    ______        __                  ______                     __  __   __
  3. ;   / __  /       / /                 / __  /  ELBOX Update      / /  \ \ / /
  4. ;  / /  -'__  __ / /___ ______ _____ / /_ -'_____ ______ ______ / /__  \ \ /
  5. ; / /     \ \/ // __  // ____// .__// // \ / .__// __  // __  // __  / /  /  V3
  6. ;/ /___    \  // /_/ // __/_ / /   / /_/ // /   / __  // /_/ // / / / / \ \
  7. ;\____/    / //_____//_____//_/   /_____//_/   /_/ /_// ____//_/ /_/ /_/ \_\
  8. ;         /_/                                        / /
  9. ;                                                   /_/
  10. ; S3           : Generic ViRGE 86C325 & ViRGE/DX 82C375 Driver
  11. ;          
  12. ; CyberGraphX V3 ©1997-2000 Vision Factory Development
  13. ; CyberGraphX V3 Update Installer ©1995,1996,1997,1998,1999,2000 by Robert C. Reiswig 
  14. ; Mediator ©2000 by Elbox
  15. ; $VER: V0.78 (Oct-25-2000)
  16. ; If you wish to use any part of this installer you must ask. May not be 
  17. ; integrated/placed into any other package! You may NOT change this in an way!
  18. ; You man NOT take or use the ENV definitions and use them without direct
  19. ; permission from me! Changes, suggestions or problems: rob@cgx.vgr.com
  20. ;********************************************************************************
  21.  
  22.  
  23.  
  24. ;********************************************************************************
  25. ; Cyber Release & Boards
  26. ;********************************************************************************
  27. (set @user-level 2)
  28. (set #cyberver "V3 41.2")
  29. (set NoBoard 0)
  30. (set whereback "SYS:Storage")
  31. (message (cat "CyberGraphX " #cyberver "\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  32.               "Generic PCI\n\nViRGE (86C325) / ViRGE/DX (86C375)\n\ndrivers for the Elbox Mediator"
  33.          )
  34. )
  35.  
  36. (welcome)
  37. ;********************************************************************************
  38. ; Read All System information
  39. ;********************************************************************************
  40. (set cpu (database "cpu")) (if (> (exists ("sys:libs/68060.library")) 0) (set cpu "68060") )
  41. (set vblank (database "vblank")) (set graphmem (database "graphics-mem"))
  42. (set totmem (database "total-mem")) (set osver (/ (getversion "LIBS:version.library") 65536))
  43. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  44. (set fastmem (- totmem graphmem))
  45. ( if (= osver 37) ( (set workbench "2.0")) ( if (= osver 38) ( (set workbench "2.1"))
  46. ( if (= osver 39) ( (set workbench "3.0")) ( if (= osver 40) ( (set workbench "3.1"))
  47. ( if (= osver 41) ( (set workbench "3.2")) )))))
  48. (set pick 0)
  49.  
  50. ;********************************************************************************
  51. ;English Strings
  52. ;********************************************************************************
  53. (set #By (cat "\n\nCyberGraphX\n\nRelease Version " #cyberver "\n\n\n\n"
  54.               "by:\n\nVision Factory Development"
  55.           
  56.          )
  57. )
  58. (set #nobackup "\n\nThis installer will copy the correct new V3 Libs and Monitor to the correct places. It will not do any backup currently.\n\nThis will not install V3 for the first time, it just _updates_ a V3 system.")
  59. (set #askzorro "\nWhat type of machine is CyberGraphX V3 installed on?\n")
  60. (set #askcpu "\nWhat CPU does the machine have that you are updating CyberGraphX V3 on? The installer has found:\n")
  61. (set #wherelibs "Where are your CyberGraphX V3 libraries located? The default is 'SYS:Libs'")
  62. (set #whatboard (cat "Please Select the Graphics Board you wish to update CyberGraphX Monitor File for:"))
  63. (set #todo-prompt "\nDo you wish to install:\n")
  64. (set #cgxmode-todo " CGXMode - Create & Change Screen Modes")
  65. (set #wheremode "Where do you wish to copy the CGXMode Program?")
  66. (set #whereshowcgxconfig "Where do you wish to copy the ShowCGXconfig Program?")
  67. (set #showcgxconfig " ShowCGXconfig - CGX Info Program")
  68. ;*********** NEW English Strings:  Monday 01-Dec-97 *************************
  69. (set #nocgxmode "\n\nOne of the graphic card(s) you selected does not currently support the use of CGXMode.\n\nA2410 or AGA(PPC)\n\nCGXMode can be use with all of the other CyberGraphX supported cards!")
  70. ;*********** NEW English Strings:  Wednesday 21-Jan-98 **********************
  71. (set #updatep4flash "\nTo use CyberGraphX with the Picasso IV you should be running version 2.0 or greater of the Picasso IV FlashROM.\n\nThe installer has found a version lower then 2.0.\n\nForm more information and newer FlashROMs you can contact:\nYour Dealer\nVillage Tronic\nVillage Tronic Web site\n")
  72. ;*********** NEW English Strings:  Wednesday 11-Mar-98 **********************
  73. (set #noppc1 "\n\nYou selected the PPC option for one of your CPUs. The installer did not find the 'libs:PPC.library'.\n\nCyberGraphX may not work correctly.\n\n Do you wish to reselect the CPU type?")
  74. (set #noppcaga "\nYou selected the 'AGA (PPC Only)' option when picking what graphics card (display device) to use with CyberGraphX. The installer did not find the 'libs:PPC.library'.\n\n The AGACGX driver needs a PPC card installed to work correctly.\n\nDo you wish to Abort the install now?.")
  75. (set #agaquit "\nCyberGraphX install/update exiting.")
  76.  
  77. ;*********** NEW English Strings: Monday 28-Aug-00 14:57:13 **********************
  78. (set #cgxv4 (cat "\nCheck out CyberGraphX V4 at:\nhttp://www.vgr.com/v4\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
  79.                  "\n- Includes -\nCustom drivers for each PCI Elbox Card\nHardware blitter support\nCGXVideo support\nCGX Prefs Program\nLatest CGXMode\nCGXMode monitor database\nFully compatible with CGX V3\n68040 version of the CGX library")
  80. )
  81.  
  82.  
  83. ;********************************************************************************
  84. ;German Strings by the King!
  85. ;********************************************************************************
  86. (if (= @language "deutsch")
  87. (
  88.  (set #nobackup "\n\nDieses Installationsskript kopiert die neuen V3 Bibliotheken und Monitore in die entsprechenden Verzeichnisse. Es wird keine Sicherung vorgenommen.\n\nEs ist keine V3 Erstinstallation, das V3 System wird nur _erneuert_ .")
  89.  (set #askzorro "\nWelche Erweiterungsslots besitzt der Computer, auf dem Sie CyberGraphX V3 installieren ?\n")
  90.  (set #askcpu "\nWelchen Prozessor besitzt der Computer, auf dem Sie CyberGraphX V3 installieren wollen ? Der installer hat folgendes gefunden:\n")
  91.  (set #wherelibs "Wo befinden sich die CyberGraphX V3 Bibliotheken ? Standard ist 'SYS:Libs'")
  92.  (set #whatboard (cat "Bitte wählen Sie die Grafikkarte, deren CyberGraphX Monitordatei erneuern wollen:"))
  93.  (set #todo-prompt "\nWelches der folgenden Programme wollen Sie installieren: ?\n")
  94.  (set #cgxmode-todo " CGXMode - Erstellen & Ändern von Bildschirmmodis")
  95.  (set #wheremode "Wohin wollen Sie das CGXMode Programm kopiert haben?")
  96.  (set #whereshowcgxconfig "Wohin wollen Sie das ShowCGXconfig Programm kopiert haben?")
  97.  (set #showcgxconfig " ShowCGXconfig - CyberGraphX Informationsprogramm")
  98.  ;*********** NEW German Strings:  Monday 01-Dec-97 *************************
  99.  (set #nocgxmode "\n\nEine/Mehrere Grafikkarte(n), die Sie ausgewählt haben, wird/werden von CGXMode momentan nicht unterstützt.\n\nA2410 oder AGA(PPC)\n\nCGXMode kann mit allen anderen Karten, die CyberGraphX unterstützt, jedoch benutzt werden!")
  100.  ;*********** NEW English Strings:  Wednesday 21-Jan-98 **********************
  101.  (set #updatep4flash "\nUm CyberGraphX3 mit der PicassoIV zu benutzen, sollten sie auf jeden Fall die Version 2.0 oder größer des PicassoIV FlashROMs installieren.\n\nDas Installationsskript entdeckte eine ältere Version.\n\nFür weitere Informationen und eine neuere FlashROM Version kontaktieren Sie bitte:\nIhren Händler\nVillageTronic\ndie VillageTronic WWW Seite\n")
  102. )
  103. )
  104.  
  105. ;********************************************************************************
  106. ; French Strings by Gregory Eycken <geycken@geocities.com>
  107. ;********************************************************************************
  108. (if (= @language "français")
  109. (
  110.  (set #nobackup "\n\nCe script d'installation va copier les nouvelles bibliothèques et les nouveaux moniteurs de CyberGraphX V3 aux endroits adéquats. Il n'effectuera aucun archivage.\n\nCe script n'est pas prévu pour installer CyberGraphX V3 pour la première fois, il ne peut faire que la _mise à jour_ d'un système CyberGraphX V3 existant.")
  111.  (set #askzorro "\nSur quel type d'ordinateur CyberGraphX V3 est-il installé?\n")
  112.  (set #askcpu "\nQuel est le processeur de l'ordinateur sur lequel vous voulez mettre à jour CyberGraphX V3? L'installeur a trouvé :\n")
  113.  (set #wherelibs "Où sont installées les bibliothèques de CyberGraphX V3? Par défaut, c'est 'SYS:Libs'.")
  114.  (set #whatboard (cat "Veuillez sélectionner la carte graphique dont vous voulez mettre le fichier moniteur à jour :"))
  115.  (set #todo-prompt "\nDésirez-vous installer :\n")
  116.  (set #cgxmode-todo " CGXMode - Créer et modifier les modes d'écran")
  117.  (set #wheremode "Où désirez-vous installer le programme CGXMode?")
  118.  (set #whereshowcgxconfig "Où désirez-vous installer le programme ShowCGXconfig?")
  119.  (set #showcgxconfig " ShowCGXconfig - Programme d'informations CyberGraphX")
  120. )
  121. )
  122.  
  123. ;********************************************************************************
  124. ; Start Update
  125. ;********************************************************************************
  126. ;(message #by)
  127. (message #nobackup)
  128.  
  129.  
  130. ;*******************************************************************
  131. ; ASK what board to update
  132. ;*******************************************************************
  133. (set BGuess 0) (set AGA 0)
  134.  
  135. (if (> (exists ("devs:monitors/MediatorViRGE")) 0)  (set BGuess (+ BGuess 1)) )
  136.  
  137.  
  138.   (set board (askoptions (choices  " MediatorViRGE"  
  139.                           (prompt #whatboard)
  140.                       (help #whatboard)
  141.                           (default BGuess)
  142.                          )
  143.              )     
  144.   )
  145.  
  146.  
  147. ;********************************************************************
  148. ; Double Check on the CPU
  149. ;********************************************************************
  150. (procedure askaboutcpu
  151.  
  152. (set cpu (database "cpu"))
  153. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0))
  154. (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0))
  155. (if (= cpu 68040) (set #cpu 1)) (if (= cpu 68060) (set #cpu 1)) 
  156. (if (= @installer-version 0)
  157.   (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 1) )
  158.   (if (= cpu 68060) (set #cpu 1))
  159. )
  160. (if (> (exists ("libs:PPC.library")) 0) (set #cpu 2) )
  161.  
  162. (set cpuPick (askchoice (choices "68020 or 68030" "68040 or 68060")
  163.             (prompt #askcpu)
  164.                     (help   #askcpu)
  165.                   (default #cpu)
  166.       )
  167. )
  168.  
  169. (if (= cpuPick 0) ((set cpuadd ".020") (set cpuadd-1 ".020")) ) 
  170. (if (= cpuPick 1) ((set cpuadd ".040") (set cpuadd-1 ".040")) )
  171.  
  172. )
  173.  
  174. ;(askaboutcpu)
  175. (set cpuadd ".020") (set cpuadd-1 ".020")
  176.  
  177. ;*******************************************************************
  178. ;  ASK where cybergfx libs are
  179. ;*******************************************************************
  180. (set wherelibs   (askdir (prompt #wherelibs)
  181.              (help   #wherelibs)
  182.                   (default "SYS:Libs")
  183.          )
  184. )
  185.  
  186. ;*******************************************************************
  187. ;  Copy libs if there
  188. ;*******************************************************************
  189. (if (exists (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd-1)) )
  190.   (copyfiles (source (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd-1))) (dest wherelibs) (newname "cgxsystem.library") (optional "nofail") ) 
  191. )
  192.  
  193. (if (exists (tackon "cgxmpeglib" (cat "cgxmpeg.library" cpuadd)) )
  194.   (copyfiles (source (tackon "cgxmpeglib" (cat "cgxmpeg.library" cpuadd))) (dest wherelibs) (newname "cgxmpeg.library") (optional "nofail") ) 
  195. )
  196.  
  197.  
  198. (if (AND (exists "cgxbootpiclib/cgxbootpic.library") (= 0 (exists "libs:cgxbootpic.library")) )
  199.   (copyfiles (source "cgxbootpiclib/cgxbootpic.library") (dest wherelibs) (optional "nofail") ) 
  200. )
  201.  
  202. ;*******************************************************************
  203. ;  Installer monitor file and handle extra libs 
  204. ;*******************************************************************
  205.   (if (IN board 0)
  206.    (
  207.      (set zadd "")
  208.  
  209.      (if (exists (tackon "S3Drivers" (cat "MediatorViRGE" zadd)))
  210.       (if (= (exists (tackon "devs:monitors" "MediatorViRGE.info")) 0)      
  211.        (copyfiles (source (tackon "S3Drivers" (cat "MediatorViRGE" zadd))) (dest "devs:monitors") (infos) (optional "nofail") ) 
  212.        (copyfiles (source (tackon "S3Drivers" (cat "MediatorViRGE" zadd))) (dest "devs:monitors") (optional "nofail") ) 
  213.       )      
  214.      )
  215.  
  216.      (if (exists (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd)) )
  217.        (copyfiles (source (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd))) (dest wherelibs) (newname "cgxvideo.library") (optional "nofail") ) 
  218.      )
  219.  
  220.      (if (exists (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" "")) )
  221.        (copyfiles (source (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" ""))) (dest wherelibs) (newname "cgx3dvirgin.library") (optional "nofail") ) 
  222.      )
  223.  
  224.    )
  225.   )
  226.  
  227.  
  228.  
  229. ;*********************************************************************************
  230. ;* Ask user to install CGXMode 
  231. ;*********************************************************************************
  232. (set toolpick 3)
  233.  
  234. (if (OR (IN board 8) (IN board 10)) ;**Check&Msg for non CGXMode Drivers.
  235.  ( 
  236.   (message #nocgxmode)
  237.   (set toolpick 2)
  238.  )
  239. )
  240.  
  241. (set ToDo (askoptions (choices #cgxmode-todo #showcgxconfig)
  242.                       (prompt #todo-prompt)
  243.                       (help #todo-prompt)
  244.                       (default toolpick)
  245.           )
  246.  
  247. (if (IN ToDo 0) 
  248.   ( 
  249.     (set wheremode   (askdir (prompt #wheremode)
  250.                              (help   #wheremode)
  251.                          (default "SYS:Prefs")
  252.              )
  253.     )
  254.  
  255.     (if (exists "CGXMode/CGXMode")
  256.      (if (= (exists (tackon wheremode "CGXMode.info")) 0)
  257.       (copyfiles (source "CGXMode/CGXMode")  (dest wheremode) (infos) (optional "nofail")) 
  258.       (copyfiles (source "CGXMode/CGXMode")  (dest wheremode) (optional "nofail"))          
  259.      )
  260.     )
  261.  
  262.     ;(if (IN board 0)  (set TTBOARD "MediatorViRGE") ) 
  263.  
  264.     ;(if (> board 0)
  265.     ;  (tooltype    (dest (tackon wheremode "CGXMode")) (settooltype "BOARD" TTBOARD) ) 
  266.     ;)
  267.  
  268.     (if (= @language "deutsch")
  269.      (
  270.        (if (= (exists "Locale:Catalogs") 0) (makedir "sys:Locale/Catalogs") )
  271.        (if (= (exists (tackon "Locale:Catalogs" "deutsch")) 0) (makedir (tackon "sys:Locale/Catalogs" "deutsch")) )
  272.        (if (exists "CGXMode/catalogs/deutsch/cgxmode.catalog")
  273.          (copyfiles (source "CGXMode/catalogs/deutsch/cgxmode.catalog") (dest "sys:Locale/Catalogs/deutsch") )
  274.        )
  275.      )
  276.     )
  277.  
  278.   )
  279. )
  280.  
  281.  
  282. (if (IN ToDo 1) 
  283.   ( 
  284.     (set whereshowcgxconfig   (askdir (prompt #whereshowcgxconfig)
  285.                              (help   #whereshowcgxconfig)
  286.                          (default "SYS:Tools")
  287.              )
  288.     )
  289.  
  290.     (if (exists "tools/showcgxconfig")
  291.      (if (= (exists (tackon whereshowcgxconfig "CGXMode.info")) 0)
  292.       (copyfiles (source "tools/showcgxconfig")  (dest whereshowcgxconfig) (infos) (optional "nofail")) 
  293.       (copyfiles (source "tools/showcgxconfig")  (dest whereshowcgxconfig) (optional "nofail"))          
  294.      )
  295.     )
  296.  
  297.   )
  298. )
  299.  
  300.  
  301.  
  302.  
  303.  
  304. ;*******************************************************************
  305. ;  END
  306. ;*******************************************************************
  307. (message #cgxv4)
  308.  
  309. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  310. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  311.  
  312. (run (cat "run " #mpath "/multiview ReadMe.txt") )
  313.  
  314. (set @default-dest "sys:")
  315.  
  316. (set #done "Update Complete!")
  317. (if (= @language "deutsch") (set #done "Update fertig!") )
  318.  
  319. (exit #done)
  320.