home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Hardware / CgxUpd422 / CGXV42_Update < prev    next >
Text File  |  1999-11-15  |  17KB  |  276 lines

  1. ;*****************************************************************************
  2. ;    ______        __                  ______                     __  __   __
  3. ;   / __  /       / /                 / __  /      Update        / /  \ \ / /
  4. ;  / /  -'__  __ / /___ ______ _____ / /_ -'_____ ______ ______ / /__  \ \ /
  5. ; / /     \ \/ // __  // ____// .__// // \ / .__// __  // __  // __  / /  / V4.2
  6. ;/ /___    \  // /_/ // __/_ / /   / /_/ // /   / __  // /_/ // / / / / \ \
  7. ;\____/    / //_____//_____//_/   /_____//_/   /_/ /_// ____//_/ /_/ /_/ \_\
  8. ;         /_/                                        / /
  9. ; S3           : CyberVision64/3D, CyberVision64
  10. ; Cirrus Logic : Picasso II, Picasso II+, Picasso IV, Spectrum 
  11. ;                 Piccolo, Piccolo SD64, Inferno
  12. ; Symbios (NCR): Retina BLT Z3,  DraCoAltais
  13. ; Texas Inst.  : CyberVisionPPC (Permedia), BlizzardVisionPPC (Permedia) 
  14. ;          
  15. ; CyberGraphX V4 ©1998, 1999 Vision Factory Development
  16. ; CyberGraphX V4 Installer ©1995,1996,1997,1998,1999 by Robert C. Reiswig 
  17. ; $VER: V4.2a (November-10-1999)
  18. ; If you wish to use any part of this installer you must ask. May not be 
  19. ; integrated/placed into any other package! You may NOT change this in an way!
  20. ; You man NOT take or use the ENV definitions and use them without direct
  21. ; permission from me! Changes, suggestions or problems: vgr@best.com
  22. ;********************************************************************************
  23.  
  24. ;********************************************************************************
  25. ; Cyber Release & Boards
  26. ;********************************************************************************
  27. (set @user-level 2)
  28. (set #cyberver "V4 42.2")
  29. (set NoBoard 0)
  30. (set whereback "SYS:Storage")
  31.  
  32. ;(message (cat "CyberGraphX " #cyberver "\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"
  33. ;              "CyberVisionPPC & BlizzardVisionPPC\n\nCyberVision64/3D & CyberVision64\n\n"
  34. ;              "Picasso II(+) & Picasso IV & Inferno\n\n"
  35. ;              "Piccolo & Piccolo SD64 & Spectrum 28/24\n\nRetina BLT Z3 & DraCoAltais"
  36. ;         )
  37. ;)
  38.  
  39. (welcome)
  40. ;********************************************************************************
  41. ; Read All System information
  42. ;********************************************************************************
  43. (set vblank (database "vblank")) (set graphmem (database "graphics-mem"))
  44. (set totmem (database "total-mem")) (set osver (/ (getversion "LIBS:version.library") 65536))
  45. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  46. (set fastmem (- totmem graphmem))
  47. ( if (= osver 37) ( (set workbench "2.0")) ( if (= osver 38) ( (set workbench "2.1"))
  48. ( if (= osver 39) ( (set workbench "3.0")) ( if (= osver 40) ( (set workbench "3.1"))
  49. ( if (= osver 41) ( (set workbench "3.2")) )))))
  50. (set cgx_root "")  
  51. (if (= 2 (exists "CGraphX4" (noreq)))  (set cgx_root "CGraphX4"))
  52. (if (= 2 (exists "CGraphX41" (noreq)))  (set cgx_root "CGraphX41"))
  53. (if (= 2 (exists "CGraphX42" (noreq)))  (set cgx_root "CGraphX42"))
  54. (set diskname "CyberGraphX_4")
  55. (if (exists (tackon cgx_root "tools/spatch")) (set spatchbin (tackon cgx_root "tools/spatch")) )
  56. (if (exists (tackon cgx_root "spatch")) (set spatchbin (tackon cgx_root "spatch")) )
  57. (set tempdir "ram:CGX_V4_Temp1") (makedir tempdir)
  58. ;;(set cgx_root (tackon (cat diskname ":") cgx_root))
  59. (set cd_root "CGraphX4")
  60.  
  61. (set pick 0)
  62.  
  63. ;********************************************************************************
  64. ;English Strings
  65. ;********************************************************************************
  66. (set #askzorro "\nWhat type of machine is CyberGraphX V4 installed on?\n")
  67. (set #askcpu "\nWhat CPU does the machine have that you are updating CyberGraphX V4 on? The installer has found:\n")
  68. (set #wherelibs "Where are your CyberGraphX V4 libraries located? The default is 'SYS:Libs'")
  69. (set #todo-prompt "\nDo you wish to install:\n")
  70. (set #cgxmode-todo " CGXMode - Create & Change Screen Modes")
  71. (set #wheremode "Where do you wish to copy the CGXMode Program?")
  72. (set #whereshowcgxconfig "Where do you wish to copy the ShowCGXconfig Program?")
  73. (set #showcgxconfig " ShowCGXconfig - CGX Info Program")
  74.  
  75. ;*********** NEW English Strings:  Monday 01-Dec-97 *************************
  76. (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!")
  77.  
  78. ;*********** NEW English Strings:  Wednesday 21-Jan-98 **********************
  79. (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")
  80.  
  81. ;*********** NEW English Strings:  Wednesday 11-Mar-98 **********************
  82. (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?")
  83. (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?.")
  84. (set #agaquit "\nCyberGraphX install/update exiting.")
  85.  
  86. ;*********** NEW English Strings:  Thursday 22-Oct-98 **********************
  87. (set #needcd "\n\n\nPlease place your CyberGraphX V4 CDROM into your CDROM drive to continue.")
  88. (set #nobackup "\n\nThis installer will copy the correct new V4 Libs and Monitor to the correct places. It will also upgrade a _working_ V3 system to a V4 system. It does not do any back up currently.\n\nThis will not install V4 for the first time, it just _updates_ or _upgrades_ a CGX V3/V4 system.")
  89. (set #whatboard (cat "Please Select the Graphics Board you wish to update CyberGraphX Monitor File for. (*=Not Supported)"))
  90. (set #guide " CGX Docs - AmigaGuide file")
  91. (set #commy " CyberGraphX - Settings Tool")
  92. (set #wheredocs "Where do you wish to install the CGX AmigaGuide file?")
  93. (set #wherecomm "Where do you wish to install the CGX Settings Tool?")
  94. (set #By (cat "\n\nCyberGraphX\n\nRelease Version " #cyberver "\n\n\n\n"
  95.               "©1998-1999 by:\n\nVision Factory Development"
  96.           
  97.          )
  98. )
  99.  
  100. ;*********** NEW English Strings:  Sunday 21-Feb-99 14:35:46 **********************
  101. (set #workingpatching "\nCurrently patching the file:\n\n")
  102. (set #spatcherror1 "\n\nspatch has returned an error. Please read the error message in the 'spatch' window.\n\nspatch does not return the type of error back to the installer so you must read its error.\n\n The installer will let you continue but the CGX V4 install my not be complete, your base files may be bad.")
  103.  
  104. ;*********** NEW English Strings:  Wednesday 10-Nov-99 22:29:41 **********************
  105. (set #libupdate "\n\nThis is an intermediate CGX V4 release.\n\nThis will update the cgxsystem.library to V42.2 if needed. You will need the CGX V4 CDROM like the V4.1 update did. A full CGX V4.2 update will follow in the future.")
  106.  
  107. ;********************************************************************************
  108. ;German Strings by the King!
  109. ;********************************************************************************
  110. (if (= @language "deutsch")
  111. (
  112.  (set #nobackup "\n\nDieses Installationsskript kopiert die neuen V4 Bibliotheken und Monitore in die entsprechenden Verzeichnisse. Es wird keine Sicherung vorgenommen.\n\nEs ist keine V4 Erstinstallation, das V4 System wird nur _erneuert_ . Ein V2->V4 Update ist aber bereits in Arbeit.")
  113.  (set #askzorro "\nWelche Erweiterungsslots besitzt der Computer, auf dem Sie CyberGraphX V4 installieren ?\n")
  114.  (set #askcpu "\nWelchen Prozessor besitzt der Computer, auf dem Sie CyberGraphX V4 installieren wollen ? Der installer hat folgendes gefunden:\n")
  115.  (set #wherelibs "Wo befinden sich die CyberGraphX V4 Bibliotheken ? Standard ist 'SYS:Libs'")
  116.  (set #whatboard (cat "Bitte wählen Sie die Grafikkarte, deren CyberGraphX Monitordatei erneuern wollen:"))
  117.  (set #todo-prompt "\nWelches der folgenden Programme wollen Sie installieren: ?\n")
  118.  (set #cgxmode-todo " CGXMode - Erstellen & Ändern von Bildschirmmodis")
  119.  (set #wheremode "Wohin wollen Sie das CGXMode Programm kopiert haben?")
  120.  (set #whereshowcgxconfig "Wohin wollen Sie das ShowCGXconfig Programm kopiert haben?")
  121.  (set #showcgxconfig " ShowCGXconfig - CyberGraphX Informationsprogramm")
  122.  
  123. ;*********** NEW German Strings:  Monday 01-Dec-97 *************************
  124.  (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!")
  125.  
  126. ;*********** NEW German Strings:  Wednesday 11-Mar-98 **********************
  127.  (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?")
  128.  (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?.")
  129.  (set #agaquit "\nCyberGraphX Installation/Erneuerung endet.")
  130.  
  131. ;*********** NEW German Strings:  Wednesday 21-Jan-98 **********************
  132.  (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")
  133.  
  134. ;*********** NEW German Strings:  Thursday 22-Oct-98 **********************
  135.  (set #needcd "\n\n\nBitte legen Sie die CyberGraphX V4 CDROM in das CDROM Laufwerk ein, um fortzufahren.")
  136.  (set #nobackup "\n\nDieses Installationsskript kopiert die neuen V4 Bibliotheken and Monitortreiber in die entsprechenden Verzeichnisse. Es erneuert ebenso ein _vorhandenes_ V3 System auf V4. Es wird keine Sicherung der alten Dateien vorgenommen.\n\nDieses Skript kann nicht zur Erstinstallation verwendet werden, es _erneuert_ lediglich ein CGX V3/V4 System.")
  137.  (set #whatboard (cat "Bitte wählen Sie die Grafikkarte, deren CyberGraphX Monitortreiber Sie erneuern wollen. (*=Nicht unterstützt)"))
  138.  (set #guide " CGX Dokumentation - AmigaGuide Datei")
  139.  (set #commy " CyberGraphX - Einstellungs-Commodity")
  140.  (set #wheredocs "Wohin wollen Sie die CyberGraphX4 AmigaGuide Dokumentation installieren ?") 
  141.  (set #wherecomm "Wohin wollen Sie das CyberGraphX Commodity installieren ?")
  142.  (set #By (cat "\n\nCyberGraphX\n\nRelease Version " #cyberver "\n\n\n\n"
  143.               "©1998-1999 by:\n\nVision Factory Development"
  144.           )
  145.  )
  146.  
  147. ;*********** NEW German Strings:  Sunday 21-Feb-99 14:35:46 **********************
  148. (set #workingpatching "\nMomentan bearbeitete Datei:\n\n")
  149. (set #spatcherror1 "\n\nspatch lieferte einen Fehler. Bitte lesen Sie die Fehlermeldung im 'spatch' Fenster.\n\nspatch lieferte keinen konkreten Fehlertyp.\n\n Das Installationsskript von CGX V4 kann fortgesetzt werden, aber die Installation ist dann möglicherweise unvollständig.")
  150.  
  151. ;*********** NEW German Strings:  Wednesday 10-Nov-99 22:29:41 **********************
  152. (set #libupdate "\n\nDies ist ein Teil des CGX V4.2 Updates.\n\nEs erneuert die cgxsystem.library auf Version 42.2. Es wird die CGX V4 CDROM benötigt wie auch schon beim V4.1 Update. Ein vollständiges CGX V4.2 Update wird in absehbarer Zeit folgen.")
  153.  
  154. )
  155. )
  156.  
  157. ;********************************************************************************
  158. ; French Strings by Gregory Eycken <geycken@geocities.com>
  159. ;********************************************************************************
  160. (if (= @language "français")
  161. (
  162.  (set #nobackup "\n\nCe script d'installation va copier les nouvelles bibliothèques et les nouveaux moniteurs de CyberGraphX V4 aux endroits adéquats. Il n'effectuera aucun archivage.\n\nCe script n'est pas prévu pour installer CyberGraphX V4 pour la première fois, il ne peut faire que la _mise à jour_ d'un système CyberGraphX V4 existant.\nUne mise à jour V2->V4 est à l'étude.")
  163.  (set #askzorro "\nSur quel type d'ordinateur CyberGraphX V4 est-il installé?\n")
  164.  (set #askcpu "\nQuel est le processeur de l'ordinateur sur lequel vous voulez mettre à jour CyberGraphX V4? L'installeur a trouvé :\n")
  165.  (set #wherelibs "Où sont installées les bibliothèques de CyberGraphX V4? Par défaut, c'est 'SYS:Libs'.")
  166.  (set #whatboard (cat "Veuillez sélectionner la carte graphique dont vous voulez mettre le fichier moniteur à jour :"))
  167.  (set #todo-prompt "\nDésirez-vous installer :\n")
  168.  (set #cgxmode-todo " CGXMode - Créer et modifier les modes d'écran")
  169.  (set #wheremode "Où désirez-vous installer le programme CGXMode?")
  170.  (set #whereshowcgxconfig "Où désirez-vous installer le programme ShowCGXconfig?")
  171.  (set #showcgxconfig " ShowCGXconfig - Programme d'informations CyberGraphX")
  172. )
  173. )
  174.  
  175. ;********************************************************************************
  176. ; Start Update
  177. ;********************************************************************************
  178. (askdisk (dest diskname) (prompt #needcd) (help #needcd) )
  179. (message #by)
  180. ;(message #nobackup)
  181. (message #libupdate)
  182.  
  183.  
  184. ;********************************************************************
  185. ; Double Check on the CPU
  186. ;********************************************************************
  187. (procedure askaboutcpu
  188.  
  189. (set cpu (database "cpu"))
  190. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0))
  191. (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0))
  192. (if (= cpu 68040) (set #cpu 1)) (if (= cpu 68060) (set #cpu 1)) 
  193. (if (= @installer-version 0)
  194.   (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 1) )
  195.   (if (= cpu 68060) (set #cpu 1))
  196. )
  197. ;;(if (> (exists ("libs:PPC.library")) 0) (set #cpu 2) )
  198.  
  199. (set cpuPick (askchoice (choices "68020 or 68030" "68040 or 68060") ; "PPC with 68040 or 68060")
  200.             (prompt #askcpu)
  201.                     (help   #askcpu)
  202.                   (default #cpu)
  203.       )
  204. )
  205.  
  206. (if (= cpuPick 0) ((set cpuadd ".020") (set cpuadd-1 ".020")) ) 
  207. (if (= cpuPick 1) ((set cpuadd ".040") (set cpuadd-1 ".040")) )
  208. ;;(if (= cpuPick 2) ((set cpuadd ".040") (set cpuadd-1 ".ppc")) )
  209.  
  210. ); END askaboutcpu
  211.  
  212. (askaboutcpu)
  213.  
  214. ;*******************************************************************
  215. ;  ASK where cybergfx libs are
  216. ;*******************************************************************
  217. (set wherelibs   (askdir (prompt #wherelibs)
  218.              (help   #wherelibs)
  219.                   (default "SYS:Libs")
  220.          )
  221. )
  222.  
  223. ;*******************************************************************
  224. ;  Spatch Crap PROCEDURE
  225. ;*******************************************************************
  226. (procedure spatch
  227.  (set todo (cat spatchbin " \"-p" pch_file "\" " "\"-o" (tackon tempdir pch_out) "\"" " \"" pch_in "\""))
  228.  (working (cat #workingpatching pch_file)) 
  229.  (set err (run todo))
  230.  (if (> err 0) (message #spatcherror1) )
  231. )
  232.  
  233. ;*******************************************************************
  234. ;  Copy libs PROCEDURE
  235. ;*******************************************************************
  236. (procedure copy_lib
  237.   (set pch_file (tackon cgx_root (tackon Libs_Dir (cat Libs_Name CPU_name ".pch"))))
  238.    (if (exists pch_file)
  239.      ( 
  240.       (if (= Libs_Dir "") (set Libs_Dir "cgxsystemlib")) ; Add cgxsystemlib for CDROM dir incase .pch is in a <rootdir>
  241.       (set pch_in  (tackon (tackon (cat diskname ":") cd_root) (cat (tackon Libs_Dir Libs_Name) CPU_name)) )
  242.       (set pch_out (tackon tempdir (cat Libs_Name CPU_name)))  (spatch)
  243.       (set file_dir tempdir)
  244.      )
  245.  
  246.      (set file_dir (tackon cgx_root Libs_Dir))
  247.    )
  248.   (if (exists (tackon file_dir (cat Libs_Name CPU_name)))
  249.     (copylib (source (tackon file_dir (cat Libs_Name CPU_name))) (dest wherelibs) (newname Libs_Name) (optional "nofail") ) 
  250.   )
  251. )
  252.  
  253. ;*******************************************************************
  254. ;  Copy libs if there
  255. ;*******************************************************************
  256. (set Libs_Dir "")
  257. (if (= 2 (exists "cgxsystemlib" (noreq)))  (set Libs_Dir "cgxsystemlib"))
  258. (set Libs_Name "cgxsystem.library") (set CPU_name cpuadd-1) (copy_lib)
  259.  
  260. ;*******************************************************************
  261. ;  END
  262. ;*******************************************************************
  263. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  264. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  265.  
  266. (run (cat "run " #mpath "/multiview " (tackon cgx_root "Changes.txt")) )
  267. (run (cat "run delete " tempdir " all"))
  268.  
  269. (set @default-dest "sys:")
  270.  
  271. (set #done "Update Complete!")
  272. (if (= @language "deutsch") (set #done "Update fertig!") )
  273.  
  274. (exit #done)
  275.