home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / software / grafica / showamiga96_install / install_showamiga96 < prev    next >
Text File  |  2000-02-02  |  27KB  |  992 lines

  1.  
  2. ;=============================================================================
  3. ; English strings (default)
  4. ;=============================================================================
  5.  
  6.         (set #startupmsg1
  7.             (cat
  8.                 "\n\n\nWelcome to ShowAmiga96 V2.3b,          \n"
  9.                 "          the bootpic-viewer Picasso96."
  10.                 "\n\n\n\n\nThis software is subject to the \"Standard Amiga FD-Software Copyright Note\"."
  11.                 "\nIt is MAILWARE as defined in paragraph 4b."
  12.                 "\nFor more information please read \"AFD-COPYRIGHT\" (Version 1 or higher)."
  13.             )
  14.         )
  15.         (set #startupmsg2
  16.             (cat
  17.                 "\n\n\nIn contrast to ShowAmiga96 V1.x this version will be installed in its own directory. \n\n"
  18.                 "The installer will create an environment variable which points to the installation directory "
  19.                 "(no assign needed).\n\n"
  20.                 "The call of the mainprog will be inserted into Startup-Sequence automatically. The closer "
  21.                 "will be copied into the WBstartup drawer."
  22.             )
  23.         )
  24.         (set #startupmsg22
  25.             (cat
  26.                 "\n\n\nThere is already an (older) Version of ShowAmiga96 2.x installed on your system. \n\n"
  27.                 "The installer will update the program files, your settings and images won´t be changed."
  28.             )
  29.         )
  30.         (set #getpath1    "Select the install directory for ShowAmiga96 V2.3b. A drawer called ShowAmiga96 will be created there."
  31.         )
  32.         (set #getpath11 "Please select the ShowAmiga96 drawer to update."
  33.         )
  34.         (set #getpath2    "Please select your WBstartup drawer for the Closer."
  35.         )
  36.         (set #getpath3    "Please select your Prefs drawer for the preferences program."
  37.         )
  38.         (set #getpath4    "Please select your L drawer for the HappyENV handler."
  39.         )
  40.         (set #copy6    "Which translations should be installed?"
  41.         )
  42.         (set #getdriver
  43.             (cat
  44.                 "To show the bootpic as early as possible, ShowAmiga96 has to start the "
  45.                 "Picasso96-monitordriver by itself.\nPlease select your Picasso96-monitordriver."
  46.             )
  47.         )
  48.         (set #startupmsg3    "\nAdjusting ShowAmiga96 initial prefs..."
  49.         )
  50.         (set #startupmsg4
  51.             (cat
  52.                 "\nThe installation has been completed.\n\nAfter a reset you can enjoy "
  53.                 "your new bootpic. Should you encounter problems, try to find some help "
  54.                 "in the documentation. "
  55.                 "Otherwise don´t hesitate to contact me :-)\n\n"
  56.                 "Heiko Müller\n"
  57.                 "Ernst-Reuter-Str. 8\n"
  58.                 "31275 Lehrte\n"
  59.                 "Germany\n\n"
  60.                 "relaysoft@gmx.de"
  61.             )
  62.         )
  63.         (set #startupmsg5
  64.             (cat
  65.                 "\nDownload-Hint\n\nThe default bootpic (Amiga_800x600) is included in this archive just as a 8 bit image in a "
  66.                 "resolution of 800x600 pixels.\nIf you use a Workbench with another resolution/colordepth, you probably want to "
  67.                 "a add a bootpic with correct dimensions to avoid annoying screenmode changes.\n\n"
  68.                 "You can download the files (bootpic and transfer anim) in IFF-ILBM format from my homepage:\n\n"
  69.                 "http://www.relaysoft.onlinehome.de"
  70.             )
  71.         )
  72.         (set #nodriver1    "\nThe specified file \""
  73.         )
  74.         (set #nodriver2    "\" doesn´t exist! Please select an existing file."
  75.         )
  76.         (set #startupmsg6
  77.             (cat
  78.                 "\nThe installer inserts the ShowAmiga96-call into the startup-sequence. "
  79.                 "A backup file called \"Startup-Sequence.SA96\" will be created in S:.\n\n"
  80.                 "If necessary, you can edit the startup-sequence yourself later, but "
  81.                 "please read the documentation!!!"
  82.             )
  83.         )
  84.         (set #startupmsg6a
  85.             (cat
  86.                 "\nStarting with this version ShowAmiga96 requires Martin Gierichs HappyENV-Handler. "
  87.                 "\nThe Installer will change the startup-sequence now (see help for details). "
  88.                 "A backup called "
  89.                 "\"Startup-Sequence.HAPPYENV\" will be created in S:.\n\n"
  90.                 "If necessary, you can edit the startup-sequence yourself later, but "
  91.                 "please read the documentation!!!"
  92.             )
  93.         )
  94.         (set #startupmsg7    "\nRunning prefs program..."
  95.         )
  96.         (set #startupmsg8
  97.             (cat
  98.                 "\nThe installer will search for the old call of ShowAmiga96 and will remove it from startup-sequence."
  99.                 "Also the old closer will be deleted from the wbstartup-drawer.\n\n"
  100.                 "If you changed the calls of ShowAmiga96 and/or of the closer, you probably "
  101.                 "have to remove the old yourself."
  102.             )
  103.         )
  104.         (set #startupmsg9
  105.             (cat
  106.                 "\nThe old ShowAmiga96-call has been removed from startup-sequence, but the installer was "
  107.                 "unable to delete the closer (ShowAmiga96_Close) from the WBstartup-drawer.\n\n"
  108.                 "Please remove the old closer yourself or replace it with the new one."
  109.             )
  110.         )
  111.         (set #help1
  112.             (cat
  113.                 "\nThe ShowAmiga96 directory contains no user accessable files.\n\n"
  114.                 "So it needn´t be placed in Utilities, you can hide it somewhere else.\n\n"
  115.                 "A directory called ´ShowAmiga96´ will be created by the installer."
  116.             )
  117.         )
  118.         (set #help11
  119.             (cat
  120.                 "\nThe installer suggests the directory of the old installation.\n"
  121.                 "The installer will update the old files in this directory und in the subdirs."
  122.             )
  123.         )
  124.         (set #help2
  125.             (cat
  126.                 "\nThe closer must be called at the end of the boot process.\n\n"
  127.                 "This normally happens in the WBstartup drawer."
  128.             )
  129.         )
  130.         (set #help3
  131.             (cat
  132.                 "\nThe prefs programm is used to control the complete behavior of ShowAmiga96.\n\n"
  133.                 "The best place is the prefs drawer."
  134.             )
  135.         )
  136.         (set #help6
  137.             (cat
  138.                 "\nShowAmiga96 opens its screen before the monitor drivers from DEVS:Monitors are loaded. "
  139.                 "That´s the reason why ShowAmiga96 has to start the Picasso96-driver itself, all other "
  140.                 "monitordrivers are loaded a bit later. To pick the correct P96-driver, the installer "
  141.                 "needs your help."
  142.             )
  143.         )
  144.         (set #help7
  145.             (cat
  146.                 "\nNormally, ShowAmiga96 is launched directly after the command ´SetPatch´ in the Startup-Sequence. The installer "
  147.                 "is able the insert the call itself.\nIf you have changed your Startup-Sequence or if you use more than one, "
  148.                 "you may skip this part and enter the call yourself later. "
  149.                 "You will find a description how to do this in the documentation (page Installation)."
  150.             )
  151.         )
  152.         (set #help7a
  153.             (cat
  154.                 "If HappyENV is not installed yet, the startup-sequence will be changed like this:\n\n"
  155.                 ";BEGIN ShowAmiga96\n"
  156.                 "C:MountENV\n"
  157.                 "sys:utilities/ShowAmiga96/Bin/showamiga96_Rev239C18\n"
  158.                 ";END ShowAmiga96\n\n"
  159.                 "{...}\n\n"
  160.                 ";C:Copy >NIL: ENVARC: RAM:ENV ALL NOREQ\n\n"
  161.                 "{...}\n\n"
  162.                 ";Assign >NIL: ENV: RAM:ENV"
  163.             )
  164.         )
  165.         (set #help8
  166.             (cat
  167.                 "\nThe installer is able to find and disable the old ShowAmiga96 command in your Startup-Sequence itself. "
  168.             )
  169.         )
  170.         (set #help9
  171.             (cat
  172.                 "No help available."
  173.             )
  174.         )
  175.         (set #warn1
  176.             (cat
  177.                 "\nWarning!\n\n"
  178.                 "ShowAmiga96 requires at least Picasso96 V1.40\n"
  179.                 "You use an older version which could lead to\n"
  180.                 "problems."
  181.             )
  182.         )
  183.         (set #warn2
  184.             (cat
  185.                 "\nAttention!\n\n\n"
  186.                 "Please do not remove ShowAmiga96_Close from your WBstartup drawer or make sure that you launch it "
  187.                 "from somewhere else.\n\nShowAmiga96 needs the program to react on the WBstartup close condition AND "
  188.                 "to display errors that occured while booting."
  189.             )
  190.         )
  191.         (set #nohelp "No help available.")
  192.         (set #copydefs
  193.             (cat
  194.                 "Do you want to copy the default image (Amiga_800x600) and the fitting anim ?"
  195.             )
  196.         )
  197.         (set #agname "ShowAmiga96_GB.guide")
  198.         (set #catsdef 2)
  199.  
  200.  
  201.  
  202.  
  203. ;=============================================================================
  204. ; German strings
  205. ;=============================================================================
  206.  
  207. (if
  208.     (= @language "deutsch")
  209.     (
  210.         (set #startupmsg1
  211.             (cat
  212.                 "\n\n\nWillkommen zu ShowAmiga96 V2.3b,          \n"
  213.                 "          dem Bootbild-Anzeiger für Picasso96."
  214.                 "\n\n\n\n\nDiese Software unterliegt der \"Standard Amiga FD-Software Copyright Note\"."
  215.                 "\nSie ist MAILWARE wie definiert in Absatz 4b."
  216.                 "\nFür mehr Informationen lies bitte \"AFD-COPYRIGHT\" (Version 1 oder höher)."
  217.             )
  218.         )
  219.         (set #startupmsg2
  220.             (cat
  221.                 "\n\n\nIm Gegensatz zu ShowAmiga96 V1.x wird diese Version in einem eigenen Verzeichnis installiert. \n\n"
  222.                 "Um auf ein ASSIGN zu verzichten, legt das Install-Script eine ENV-Variable an, die auf "
  223.                 "das Installationsverzeichnis verweist.\n\n"
  224.                 "Der Aufruf des Programms kann wie bisher automatisch in die Startup-Sequence eingetragen werden lassen, das "
  225.                 "Schließprogramm wird ins WBStartup-Verzeichnis kopiert."
  226.             )
  227.         )
  228.         (set #startupmsg22
  229.             (cat
  230.                 "\n\n\nEs ist bereits eine (ältere) Version von ShowAmiga96 V2.x auf Ihrem System vorhanden.\n\n"
  231.                 "Der Installer wird nur die Programmdateien austauschen, die Einstellungen und Bilder bleiben erhalten"
  232.             )
  233.         )
  234.         (set #getpath1    "Bitte wählen Sie den Installationsort für ShowAmiga96 V2.3b aus. Ein Verzeichnis namens ShowAmiga96 wird automatisch erstellt."
  235.         )
  236.         (set #getpath11 "Bitte geben Sie das Verzeichnis an, in dem das Update durchgeführt werden soll."
  237.         )
  238.         (set #getpath2    "Bitte wählen Sie Ihr WBStartup-Verzeichnis für das Schließprogramm aus."
  239.         )
  240.         (set #getpath3    "Bitte wählen Sie Ihr Prefs-Verzeichnis für das Einstellungsprogramm aus."
  241.         )
  242.         (set #getpath4    "Bitte wählen Sie Ihr L-Verzeichnis für den HappyENV-Handler aus."
  243.         )
  244.         (set #copy6    "Welche Übersetzungen kopieren?"
  245.         )
  246.         (set #getdriver
  247.             (cat
  248.                 "ShowAmiga96 startet den Picasso96-Monitortreiber unabhängig von den übrigen Treibern. "
  249.                 "Wählen Sie bitte Ihren P96-Monitortreiber aus."
  250.             )
  251.         )
  252.         (set #startupmsg3    "\nPasse ShowAmiga96-Grundeinstellungen an..."
  253.         )
  254.         (set #startupmsg4
  255.             (cat
  256.                 "\nDie Installation ist jetzt abgeschlossen.\n\nNach einem Neustart können "
  257.                 "Sie sich an Ihrem neuen Bootbild erfreuen. Sollten Probleme auftreten, "
  258.                 "so mag ein Blick in die Anleitung sicherlich hilfreich sein. "
  259.                 "Ansonsten bin ich ja auch noch da ;-)\n\n"
  260.                 "Heiko Müller\n"
  261.                 "Ernst-Reuter-Str. 8\n"
  262.                 "31275 Lehrte\n\n"
  263.                 "relaysoft@gmx.de"
  264.             )
  265.         )
  266.         (set #startupmsg5
  267.             (cat
  268.                 "\nDownload-Hinweis\n\nDas default-Bootbild (Amiga_800x600) ist in diesem Archiv nur als 8-Bit Image in der "
  269.                 "Auflösung 800x600 Pixel enthalten.\nWenn Sie eine Workbench mit anderer Auflösung/Farbtiefe "
  270.                 "fahren, möchten Sie wahrscheinlich das Bootbild in einer passenden Größe hinzufügen, um "
  271.                 "lästige Screenmodewechsel zu vermeiden.\n\n"
  272.                 "Die Dateien (Bootbild und Transfer-Anim) im IFF-ILBM-Format können von meiner Homepage "
  273.                 "heruntergeladen werden:\n\n"
  274.                 "http://www.relaysoft.onlinehome.de"
  275.             )
  276.         )
  277.         (set #nodriver1    "\nDie angegebene Datei \""
  278.         )
  279.         (set #nodriver2    "\" existiert nicht! Wählen Sie bitte eine vorhandene Datei."
  280.         )
  281.         (set #startupmsg6
  282.             (cat
  283.                 "\nDas Installationsprogramm fügt jetzt den ShowAmiga96-Aufruf in die "
  284.                 "Startup-Sequence ein. Eine Sicherungskopie wird unter dem Namen "
  285.                 "\"Startup-Sequence.SA96\" in S: angelegt.\n\n"
  286.                 "Wenn Sie wollen, können Sie die Änderung später auch von Hand vornehmen, "
  287.                 "aber dabei unbedingt die Anleitung beachten!!!"
  288.             )
  289.         )
  290.         (set #startupmsg6a
  291.             (cat
  292.                 "\nShowAmiga96 benötigt ab Version 2.3b den HappyENV-Handler von Martin Gierich. "
  293.                 "\nDas Installationsprogramm nimmt jetzt Änderungen an der Startup-Sequence vor (Hilfe für Details), die "
  294.                 "für den Betrieb von HappyENV nötig sind. Eine Sicherungskopie wird unter dem Namen "
  295.                 "\"Startup-Sequence.HAPPYENV\" in S: angelegt.\n\n"
  296.                 "Wenn Sie wollen, können Sie die Änderung später auch von Hand vornehmen, "
  297.                 "aber dabei unbedingt die Anleitung beachten!!!"
  298.             )
  299.         )
  300.         (set #startupmsg7    "\nStarte Einstellungsprogramm..."
  301.         )
  302.         (set #startupmsg8
  303.             (cat
  304.                 "\nDas Installationsprogramm prüft jetzt, ob eine alte Version von ShowAmiga96 in der Startup-Sequence aufgerufen wird. "
  305.                 "Dieser Aufruf wird nicht mehr benötigt und auskommentiert.\n\nWeiterhin wird versucht, das alte Schließprogramm (ShowAmiga96_Close) aus der "
  306.                 "WBstartup-Schublade zu löschen."
  307.             )
  308.         )
  309.         (set #startupmsg9
  310.             (cat
  311.                 "\nDer alte ShowAmiga96-Aufruf wurde aus der Startup-Sequence entfernt, das Schließprogramm "
  312.                 "konnte jedoch nicht gelöscht werden.\n\n"
  313.                 "Bitte entfernen Sie vor dem nächsten Neustart den alten Aufruf von ShowAmiga96_Close per Hand, falls Sie "
  314.                 "das Programm nicht bereits mit der neuen Version überschrieben haben."
  315.             )
  316.         )
  317.         (set #help1
  318.             (cat
  319.                 "\nDas ShowAmiga96-Verzeichnis enthält keine Dateien, auf die der User direkten Zugriff haben muß.\n\n"
  320.                 "Es muß also nicht unbedingt in Utilities liegen, sondern kann auch irgendwo ´versteckt´ werden.\n\n"
  321.                 "Ein Verzeichnis namens ´ShowAmiga96´ wird automatisch vom Installer angelegt."
  322.             )
  323.         )
  324.         (set #help11
  325.             (cat
  326.                 "\nDer Installer schlägt automatisch das Verzeichnis der aktuellen ShowAmiga96-Installation vor.\n"
  327.                 "In diesem und den Unterverzeichnissen werden die veralteten Programmdateien ausgetauscht."
  328.             )
  329.         )
  330.         (set #help2
  331.             (cat
  332.                 "\nDas Schließprogramm muß unbedingt am Ende des Bootvorgangs gestartet werden.\n\n"
  333.                 "Standardmäßig wird es in das WBStartup-Verzeichnis kopiert und mit der niedrigsten STARTPRI aufgerufen."
  334.             )
  335.         )
  336.         (set #help3
  337.             (cat
  338.                 "\nMit dem Prefs-Programm wird das gesamte Verhalten von ShowAmiga96 kontrolliert.\n\n"
  339.                 "Die Prefs-Schublade der Workbench ist der geeignete Platz für die Installation."
  340.             )
  341.         )
  342.         (set #help6
  343.             (cat
  344.                 "\nDamit ShowAmiga96 seinen Bildschirm schon zu Beginn der Startup-Sequence öffnen kann, "
  345.                 "muß es den Picasso96-Treiber zuvor selbst starten. Alle übrigen "
  346.                 "werden ganz normal etwas später aktiviert.\nUm aus der Vielzahl der möglichen P96-Monitor"
  347.                 "treiber den richtigen herauszufinden, ist der Installer auf Ihre Hilfe angewiesen."
  348.             )
  349.         )
  350.         (set #help7
  351.             (cat
  352.                 "\nFür gewöhnlich wird ShowAmiga96 am direkt nach dem Befehl "SetPatch" in der Startup-Sequence gestartet. Der Installer "
  353.                 "kann den Aufruf selbst in die Datei eintragen.\nWenn Sie Ihre Startup-Sequence stark verändert "
  354.                 "haben oder ShowAmiga96 an einer anderen Stelle starten wollen, können Sie diesen Teil überspringen "
  355.                 "und später nach Anleitung den Aufruf per Hand eintragen."
  356.             )
  357.         )
  358.         (set #help7a
  359.             (cat
  360.                 "Falls HappyENV noch nicht installiert ist, wird die Startup-Sequence folgendermaßen geändert:\n\n"
  361.                 ";BEGIN ShowAmiga96\n"
  362.                 "C:MountENV\n"
  363.                 "sys:utilities/ShowAmiga96/Bin/showamiga96_Rev239C18\n"
  364.                 ";END ShowAmiga96\n\n"
  365.                 "{...}\n\n"
  366.                 ";C:Copy >NIL: ENVARC: RAM:ENV ALL NOREQ\n\n"
  367.                 "{...}\n\n"
  368.                 ";Assign >NIL: ENV: RAM:ENV"
  369.             )
  370.         )
  371.         (set #help8
  372.             (cat
  373.                 "\nDer Installer kann den alten Aufruf von ShowAmiga96 in der Startup-Sequence finden und auskommentieren. "
  374.                 "\nWenn Sie dies per Hand machen wollen, denken Sie bitte daran, ggf. auch den Aufruf für das alte Schließprogramm zu "
  375.                 "entfernen, falls es sich nicht in WBstartup befindet und automatisch überschrieben wird."
  376.             )
  377.         )
  378.         (set #help9
  379.             (cat
  380.                 "\nVoreinstellungsmäßig wurde das alte Schließprogramm in die WBstartup-Schublade kopiert. "
  381.                 "Bei Bedarf könnte es aber auch an einem anderen Ort installiert werden und der Aufruf "
  382.                 "beispielsweise aus einem Skript erfolgen.\n\n"
  383.                 "Der Installer hat das Schließprogramm nicht in der WBstartup-Schublade gefunden, so daß Sie "
  384.                 "den abgeänderten Aufruf per Hand entfernen müssen.\n\n"
  385.                 "AUSNAHME: Das alte Schließprogramm wurde durch das neue überschrieben. In diesem Fall "
  386.                 "kann alles unverändert bleiben."
  387.             )
  388.         )
  389.         (set #warn1
  390.             (cat
  391.                 "\nWarnung!\n\n"
  392.                 "ShowAmiga96 benötigt mindestens Picasso96 V1.40\n"
  393.                 "Sie benutzen eine ältere Version, mit der es\n"
  394.                 "Probleme geben könnte."
  395.             )
  396.         )
  397.         (set #warn2
  398.             (cat
  399.                 "\nAchtung!\n\n\n"
  400.                 "Bitte entfernen Sie ShowAmiga96_Close nicht aus Ihrer WBstartup-Schublade oder stellen Sie sicher, daß das "
  401.                 "Programm nach dem Booten auf andere Weise gestartet wird.\n\nShowAmiga96 verwendet es neben dem Setzen der "
  402.                 "WBstartup-Schließbedingung auch zum Anzeigen von Fehlern, die während des Bootvorgangs aufgetreten sind."
  403.             )
  404.         )
  405.         (set #nohelp "Keine Hilfe verfügbar")
  406.         (set #copydefs
  407.             (cat
  408.                 "Soll das Default-Bild (Amiga_800x600) und die passende Anim kopiert werden ?"
  409.             )
  410.         )
  411.         (set #agname "ShowAmiga96_D.guide")
  412.         (set #catsdef 1)
  413.     )
  414. )
  415.  
  416. ;=============================================================================
  417. ; Spanish strings
  418. ;=============================================================================
  419.  
  420. (if
  421.     (= @language "español")
  422.     (
  423.         (set #agname "ShowAmiga96_E.guide")
  424.         (set #catsdef 4)
  425.     )
  426. )
  427.  
  428. ;=============================================================================
  429. ; Swedish strings
  430. ;=============================================================================
  431.  
  432. (if
  433.     (= @language "svenska")
  434.     (
  435.         (set #agname "ShowAmiga96_S.guide")
  436.         (set #catsdef 8)
  437.     )
  438. )
  439.  
  440.  
  441. ;=============================================================================
  442. ; Defaults einstellen
  443. ;=============================================================================
  444.  
  445. (set #oldpath (getenv("SHOWAMIGA96")))
  446. (set #mainpath "Sys:Utilities/")
  447. (set #closepath "Sys:WBstartup/")
  448. (set #prefspath "Sys:Prefs/")
  449. (set #lpath "Sys:L/")
  450. (set #cpath "Sys:C/")
  451. (set #driverpath "DEVS:Monitors/")
  452. (set #localepath "Sys:Locale/Catalogs/")
  453. (set #editsseq1 "bin/editsseq ")
  454. (set #editsseq2 "bin/editsseq2")
  455. (set #checkexist "bin/checkexist")
  456. (set #remold "bin/remold ")
  457. ;(set #saveenvarc "bin/saveenvarc ")
  458.  
  459.  
  460. ;=============================================================================
  461. ; Los geht´s
  462. ;=============================================================================
  463.  
  464. (complete 0)
  465. (message    #startupmsg1
  466.     (all)
  467. )
  468.  
  469. (set #vernum (getversion "LIBS:Picasso96API.library"))
  470.  
  471. (if(< #vernum 131340)
  472.     (
  473.         (message    #warn1
  474.             (all)
  475.         )
  476.     )
  477. )
  478.  
  479. (if(<>(#oldpath)(""))
  480.     (
  481.         (set #mainpath #oldpath)
  482.         (message    #startupmsg22
  483.             (all)
  484.         )
  485.         (welcome)
  486.         (set #mainpath
  487.             (askdir    (prompt    #getpath11)
  488.                 (help    #help11)
  489.                 (default    #mainpath)
  490.             )
  491.         )
  492.         (set #isupdate true)
  493.     )
  494.     (
  495.         (message    #startupmsg2
  496.             (all)
  497.         )
  498.         (welcome)
  499.         (set #mainpath
  500.             (askdir    (prompt    #getpath1)
  501.                 (help    #help1)
  502.                 (default    #mainpath)
  503.             )
  504.         )
  505.         (set #mainpath (tackon #mainpath "ShowAmiga96"))
  506.         (set #isupdate false)
  507.     )
  508. )
  509.  
  510.  
  511. ;=============================================================================
  512. ; Installationspfade einholen
  513. ;=============================================================================
  514.  
  515. (complete 5)
  516. (set #closepath
  517.     (askdir    (prompt    #getpath2)
  518.         (help    #help2)
  519.         (default    #closepath)
  520.     )
  521. )
  522. (message    #warn2
  523.     (all)
  524. )
  525.  
  526. (complete 7)
  527. (set #prefspath
  528.     (askdir    (prompt    #getpath3)
  529.         (help    #help3)
  530.         (default    #prefspath)
  531.     )
  532. )
  533.  
  534. (complete 10)
  535. (set #lpath
  536.     (askdir    (prompt    #getpath4)
  537.         (help    #nohelp)
  538.         (default    #lpath)
  539.     )
  540. )
  541.  
  542.  
  543. ;=============================================================================
  544. ; Kataloge kopieren
  545. ;=============================================================================
  546.  
  547. (complete 15)
  548. (set #catsdef
  549.         (askoptions
  550.         (prompt    #copy6)
  551.         (help    #nohelp)
  552.         (choices    "Deutsch"
  553.                 "English"
  554.                 "Español"
  555.                 "Svenska")
  556.         (default    #catsdef)
  557.     )
  558. )
  559.  
  560. (if    (BITAND #catsdef 1)
  561.     (
  562.         (copyfiles
  563.             (source    "Locale/Catalogs/deutsch")
  564.             (prompt    #copy6)
  565.             (help    #nohelp)
  566.             (dest    (tackon #localepath "deutsch"))
  567.             (all)
  568.         )
  569.     )
  570. )
  571. (if    (BITAND #catsdef 4)
  572.     (
  573.         (copyfiles
  574.             (source    "Locale/Catalogs/Español")
  575.             (prompt    #copy6)
  576.             (help    #nohelp)
  577.             (dest    (tackon #localepath "Español"))
  578.             (all)
  579.         )
  580.     )
  581. )
  582. (if    (BITAND #catsdef 8)
  583.     (
  584.         (copyfiles
  585.             (source    "Locale/Catalogs/Svenska")
  586.             (prompt    #copy6)
  587.             (help    #nohelp)
  588.             (dest    (tackon #localepath "Svenska"))
  589.             (all)
  590.         )
  591.     )
  592. )
  593.  
  594.  
  595. ;=============================================================================
  596. ; bei Firstinstall nach Monitortreibernamen fragen und Startup-Sequence ändern
  597. ;=============================================================================
  598.  
  599. (complete 20)
  600. (if(not #isupdate)
  601.     (
  602.         (while (OR (= (fileonly(#driverpath)) "") (NOT #driverok))
  603.             (
  604.                 (set #driverpath
  605.                     (askfile    (prompt    #getdriver)
  606.                         (help    #help6)
  607.                         (default    #driverpath)
  608.                     )
  609.                 )
  610.                 (set #driverok (exists #driverpath (noreq)))
  611.                 (if (NOT #driverok)
  612.                     (message    (cat #nodriver1 #driverpath #nodriver2) (all))
  613.                 )
  614.             )
  615.         )
  616.  
  617.         (run #remold
  618.             (prompt    #startupmsg8)
  619.             (help    #help8)
  620.             (confirm)
  621.         )
  622.         (if(=(exists "env:killedoldsa96" (noreq)) 1)
  623.             (
  624.                 (delete "env:killedoldsa96" (safe))
  625.                 (if (= (exists "sys:wbstartup/showamiga96_close" (noreq)) 1)
  626.                     (delete "sys:wbstartup/showamiga96_close" (infos))
  627.                     (message    #startupmsg9
  628.                         (help    #nohelp)
  629.                         (all)
  630.                     )
  631.                 )
  632.             )
  633.         )
  634.     )
  635. )
  636.  
  637.  
  638. ;=============================================================================
  639. ; ENVs erstellen
  640. ;=============================================================================
  641.  
  642. (complete 25)
  643. (textfile
  644.     (dest    "ENV:SHOWAMIGA96")
  645.     (append    #mainpath)
  646. )
  647. (complete 27)
  648. (textfile
  649.     (dest    "ENVARC:SHOWAMIGA96")
  650.     (append    #mainpath)
  651. )
  652.  
  653.  
  654. ;=============================================================================
  655. ; Verzeichnis erstellen
  656. ;=============================================================================
  657.  
  658. (complete 29)
  659. (if(not #isupdate)
  660.     (
  661.         (makedir #mainpath
  662.             (infos)
  663.         )
  664.     )
  665. )
  666.  
  667.  
  668. ;=============================================================================
  669. ; Bin kopieren
  670. ;=============================================================================
  671.  
  672. (complete 30)
  673. (set #binpath (tackon #mainpath "Bin"))
  674. (copyfiles
  675.     (source    "Bin")
  676.     (help    #nohelp)
  677.     (dest    #binpath)
  678.     (all)
  679. )
  680.  
  681.  
  682. ;=============================================================================
  683. ; Module kopieren
  684. ;=============================================================================
  685.  
  686. (complete 55)
  687. (set #modpath (tackon #mainpath "Modules"))
  688. (copyfiles
  689.     (source    "Modules")
  690.     (help    #nohelp)
  691.     (dest    #modpath)
  692.     (all)
  693. )
  694.  
  695.  
  696. ;=============================================================================
  697. ; Anleitungen kopieren
  698. ;=============================================================================
  699.  
  700. (complete 63)
  701. (set #dokupath (tackon #mainpath "Docs"))
  702. (copyfiles
  703.     (source    "Docs")
  704.     (help    #nohelp)
  705.     (dest    #dokupath)
  706.     (all)
  707. )
  708.  
  709.  
  710. ;=============================================================================
  711. ; Images/Anims kopieren
  712. ;=============================================================================
  713.  
  714. (complete 65)
  715. (set #ideapath (tackon #mainpath ".sa96idea"))
  716. (set #ideaok (exists #ideapath (noreq)))
  717. (set #idebpath (tackon #mainpath ".sa96ideb"))
  718. (set #idebok (exists #idebpath (noreq)))
  719. (set #animpath (tackon #mainpath "Anims"))
  720. (set #imgpath (tackon #mainpath "Images"))
  721.  
  722. (if (NOT #ideaok)
  723.     (
  724.         (if(not #isupdate)
  725.             ( ; neue Inst
  726.                 (copyfiles
  727.                     (source    "Images")
  728.                     (help    #nohelp)
  729.                     (dest    #imgpath)
  730.                     (all)
  731.                 )
  732.                 (copyfiles
  733.                     (source    "Anims")
  734.                     (help    #nohelp)
  735.                     (dest    #animpath)
  736.                     (all)
  737.                 )
  738.             )
  739.             ( ; Update von 2.2
  740.                 (if(= (askbool(prompt #copydefs)(help #nohelp)) 1)
  741.                     (
  742.                         (copyfiles
  743.                             (source    "Images")
  744.                             (help    #nohelp)
  745.                             (dest    #imgpath)
  746.                             (all)
  747.                         )
  748.                         (copyfiles
  749.                             (source    "Anims")
  750.                             (help    #nohelp)
  751.                             (dest    #animpath)
  752.                             (all)
  753.                         )
  754.                     )
  755.                 )
  756.             )
  757.         )
  758.     )
  759. )
  760.  
  761.  
  762.  
  763. ;=============================================================================
  764. ; Anims Verzeichnis erstellen
  765. ;=============================================================================
  766.  
  767. (complete 75)
  768. (set #animok (exists #animpath (noreq)))
  769. (if (NOT #animok)
  770.     (
  771.         makedir #animpath
  772.     )
  773. )
  774.  
  775. ;=============================================================================
  776. ; Rest kopieren und Prefs anpassen
  777. ;=============================================================================
  778.  
  779. (complete 80)
  780. (if(not #isupdate)
  781.     (
  782.         (copyfiles
  783.             (source    "")
  784.             (choices    ".order" ".prefs" ".sa96id")
  785.             (dest    #mainpath)
  786.         )
  787.  
  788.         (set #prefsini (cat "bin/setprefs " #driverpath))
  789.         (complete 82)
  790.         (working    #startupmsg3)
  791.         (run #prefsini
  792.             (prompt    #startupmsg3)
  793.         )
  794.     )
  795. )
  796. (copyfiles
  797.     (source    ".sa96idea")
  798.     (dest    #mainpath)
  799. )
  800.  
  801.  
  802. ;(set #saveenvarc (cat "bin/saveenvarc " (expandpath "ENVARC:") " " (tackon #binpath "ShowAmiga96_Rev208711")))
  803. ;(run #saveenvarc
  804. ;    (prompt    #startupmsg3)
  805. ;)
  806.  
  807.  
  808. (set #closefile (tackon #closepath "ShowAmiga96_Close"))
  809. (set #iconposx -1)
  810. (set #iconposy -1)
  811. (set #iconok (exists #closefile (noreq)))
  812. (if (= #iconok 1)
  813.     (
  814.         (iconinfo
  815.             (dest #closefile)
  816.             (getposition "#iconposx" "#iconposy")
  817.         )
  818.     )
  819. )
  820.  
  821. (copyfiles
  822.     (source    "WBStartup/ShowAmiga96_Close")
  823.     (help    #nohelp)
  824.     (infos)
  825.     (noposition)
  826.     (dest    #closepath)
  827. )
  828.  
  829. (tooltype
  830.     (dest #closefile)
  831.     (setposition #iconposx #iconposy)
  832. )
  833.  
  834. (complete 85)
  835.  
  836. (set #prefsfile (tackon #prefspath "ShowAmiga96_Prefs"))
  837. (set #defpicturedir "")
  838. (set #iconposx -1)
  839. (set #iconposy -1)
  840.  
  841. (set #iconok (exists #prefsfile (noreq)))
  842. (if (= #iconok 1)
  843.     (
  844.         (iconinfo
  845.             (dest #prefsfile)
  846.             (gettooltype "DEFPICTUREDIR" "#defpicturedir")
  847.         )
  848.         (iconinfo
  849.             (dest #prefsfile)
  850.             (getposition "#iconposx" "#iconposy")
  851.         )
  852.     )
  853. )
  854.  
  855.  
  856. (copyfiles
  857.     (source    "Prefs/ShowAmiga96_Prefs")
  858.     (help    #nohelp)
  859.     (noposition)
  860.     (infos)
  861.     (dest    #prefspath)
  862. )
  863.  
  864. (copyfiles
  865.     (source    "HappyENV/HappyENV-Handler")
  866.     (help    #nohelp)
  867.     (dest    #lpath)
  868. )
  869.  
  870. (copyfiles
  871.     (source    "HappyENV/MountENV")
  872.     (help    #nohelp)
  873.     (dest    #cpath)
  874. )
  875.  
  876. (makedir (tackon #mainpath "HappyENV")
  877. )
  878.  
  879. (copyfiles
  880.     (source    "HappyENV/HappyENV.guide")
  881.     (dest    (tackon #mainpath "HappyENV"))
  882. )
  883.  
  884. (if(<> #defpicturedir "")
  885.     (
  886.         (tooltype
  887.             (dest #prefsfile)
  888.             (settooltype "DEFPICTUREDIR" #defpicturedir)
  889.         )
  890.     )
  891.     (
  892.         (tooltype
  893.             (dest #prefsfile)
  894.             (settooltype "(DEFPICTUREDIR" "<Bildquelldateiverzeichnis>)")
  895.         )
  896.     )
  897. )
  898.  
  899. (tooltype
  900.     (dest #prefsfile)
  901.     (setposition #iconposx #iconposy)
  902. )
  903.  
  904.  
  905.  
  906. ;=============================================================================
  907. ; ShowAmiga96 in Startup-sequence eintragen
  908. ;=============================================================================
  909.  
  910. (complete 90)
  911.  
  912. (run (cat #checkexist " SHOWAMIGA96_REV2"))
  913. (if(=(exists "env:sa96notexists" (noreq)) 1)
  914.     (
  915.         ; noch gar keine 2.x installiert
  916.         (set #binpath1 (tackon #binpath "ShowAmiga96_Rev208711"))
  917.         (set #editsseq1 (cat #editsseq1 #binpath1))
  918.         (run #editsseq1
  919.             (prompt    #startupmsg6)
  920.             (help    #help7)
  921.             (confirm)
  922.         )
  923.     )
  924. )
  925.  
  926. (run (cat #checkexist " SHOWAMIGA96_REV208711"))
  927. (if(=(exists "env:sa96notexists" (noreq)) 0)
  928.     (
  929.         ; Version 2.0, 2.1, 2.2 oder 2.3 ist installiert
  930.         (run (cat #editsseq2 " save")
  931.         )
  932.         (run #editsseq2
  933.             (prompt    #startupmsg6a)
  934.             (help    #help7a)
  935.             (confirm)
  936.         )
  937.     )
  938. )
  939.  
  940.  
  941. ;=============================================================================
  942. ; Prefs starten und Installation verlassen
  943. ;=============================================================================
  944.  
  945.  
  946. (run (tackon #binpath "getdriver"))
  947. (set #driverpathname (getenv "showamiga96_driver"))
  948. (set #driverpathname (cat #driverpathname ""))
  949. (if(>((strlen #driverpathname)) 2)
  950.     (
  951.         (tooltype
  952.             (dest #driverpathname)
  953.             (settooltype "QUIET" "Yes")
  954.         )
  955.     )
  956. )
  957.  
  958. (complete 100)
  959. (message    #startupmsg4
  960.     (all)
  961. )
  962. (message    #startupmsg5
  963.     (all)
  964. )
  965.  
  966.  
  967.  
  968. (if(not #isupdate)
  969.     (
  970.         (set #prefspath (tackon #prefspath "ShowAmiga96_Prefs"))
  971.         (set #prefspath (cat "run >nil: " #prefspath))
  972.         (run #prefspath 
  973.             (prompt    #startupmsg7)
  974.         )
  975.     )
  976.     (
  977.         (if (NOT #ideaok)
  978.             (
  979.                 (run (cat "run >nil: bin/showag docs/" #agname " Neu"))
  980.             )
  981.         )
  982.  
  983.     )
  984. )
  985. (if (NOT #idebok)
  986.     (
  987.         (run (cat "run >nil: bin/showag docs/" #agname " Neua"))
  988.     )
  989. )
  990.  
  991. (exit (quiet))
  992.