home *** CD-ROM | disk | FTP | other *** search
- ; $VER: Install Vector Connection Software 1.1 (17.09.93) © Henning Schmiedehausen 1993
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;
- ; Generic Install Script
- ;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (set #FirmenName "HK Computer")
- (set #Board "Vector Connection I/O Board")
-
- (set #Diskname "VectorConnection")
-
- (set @default-dest "SYS:")
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;
- ; Language Section
- ;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (if (<> @language "english")
- ((if (<> @language "deutsch")
- ( set @language "english")
- )
- ))
-
- (if (= @language "english")
- (
-
- (set #Yes "Yes")
- (set #No "No")
-
- (set #prolog
- (cat "This program will install the software for your " #Board
- " It will install all necessary drivers and programs."
- ))
-
- (set #ask_boardrev
- (cat "Due to a bug on the board up to Rev. 2.7, it is necessary to "
- "copy a special version of the device. Do you have a board revision "
- "up to 2.7 (It is printed in the top left corner of your board)? "
- ))
-
- (set #copy_duart
- (cat "The 'hkduart.device' must be copied to 'DEVS:'. This is "
- "the driver for the serial ports."
- ))
-
- (set #copy_pio
- (cat "The 'pio.device' must be copied to 'DEVS:'. This is "
- "the driver for the parallel ports."
- ))
-
- (set #copy_handlers
- (cat "These are the DOS Handlers for the parallel and serial "
- "ports. They must be copied to L: They provide the DOS "
- "Devices for the system."
- ))
-
- (set #copy_dprefs
- (cat "This is a daemon program, which supplies User Preferences "
- "for the serial ports. It should be installed in C:."
- ))
-
- (set #dprefs_startup
- (cat "To use the preferences mechanism of the Vector Connection Software "
- "it is necessary to run the hkdprefs daemon on Startup. This will "
- "install the necessary line in your User-StartUp. "
- ))
-
- (set #ask_redirect
- ( cat "You can install a Commodity called 'Re-Director' to redirect "
- "OpenDevice() calls from serial or parallel.device to the board. "
- "Do you want to install it now? "
- ))
-
- (set #ask_prefs
- ( cat "Should I also copy the Preferences File to ENVARC: "
- ))
-
- (set #copy_redirect
- (cat "These are redirection programs for the parallel.device and "
- "the serial.device. They are useful if you use software which "
- "uses hardwired device access. You don't need them if you've already "
- "copied the Re-Director program."
- ))
-
- (set #copy_duart_prefs
- (cat "You're running under AmigaOS 2.0 or above. So you can install "
- "this GUI based program for serial preferences. It should be copied "
- "to SYS:PREFS. "
- ))
-
- (set #copy_duart_13_prefs
- (cat "You're running under AmigaOS 1.2 or 1.3. You really should upgrade to 2.0 or better. "
- "You cannot use the GUI based preferences program but the text based preferences mechanism. "
- "These are some example prefs files, which should be copied to DEVS:duart. "
- ))
-
- (set #copy_dosfiles
- (cat "You're running under AmigaOS 2.1 or above. So you can install "
- "these DosDriver Mountlists into SYS:Storage/DosDrivers. If you "
- "want them installed at Boottime, move their icons to DEVS:DosDrivers. "
- ))
-
- (set #copy_13_dosfiles
- (cat "You're running under AmigaOS 2.0 or lower. This will copy a Mountlist File "
- "to the DEVS: Drawer. Cut and paste the entries to the Devs:Mountlist or use "
- "the FROM option of mount to mount these DOS devices."
- ))
-
- (set #copy_includes
- (cat "These files are includes for C and Assembler programmers. They should be installed "
- "in SC:Includes/Devices for SAS C or DINCLUDE:Devices for DICE. If you're using "
- "another Compiler or Assembler, please consult its Manual. "
- ))
-
- (set #install_parnet
- (cat "There are drivers for the Software Distillery Parnet included. You you want "
- "them installed?"
-
- ))
-
- (set #install_par_dist
- (cat "This is the original Parnet distribution. It should be installed in "
- "Work:PARNET."
- ))
-
- (set #install_driver
- (cat "I can now create a real Parnet installation e.g. for use with CDTV. "
- ))
-
- (set #install_par_device
- (cat "Which channel should be installed?\n"
- "(Only one channel can be installed)"
- ))
-
- (set #intpar "internal parallel port" )
- (set #pio0par "Vector Connection Port 0" )
- (set #pio1par "Vector Connection Port 1" )
-
- (set #local_unit "Which ID should the local machine use?" )
- (set #remote_unit "Which ID should the remote machine use?" )
- (set #par_dev_copy "Copying the selected device" )
- (set #par_hand_copy "Copying the Parnet Handler" )
- (set #par_serv_copy "Copying the Parnet Server" )
- (set #par_mount_copy "Copying the Mountlist" )
-
- (set #par_us_change
- (cat "To start ParNet at boot time, it is necessary, that the Server is "
- "run at startup time. This will install the necessary line in your User-StartUp."
- ))
-
- ))
-
- (if (= @language "deutsch")
- (
-
- (set #Yes "Ja")
- (set #No "Nein")
-
- (set #prolog
- (cat "Dieses Programm installiert die Software für ihr " #Board ". "
- " Alle notwendigen Programme und Treiber werden installiert."
- ))
-
- (set #ask_boardrev
- (cat "Aufgrund eines Fehlers auf der Platine bis einschliesslich V 2.7 "
- "ist es nötig, eine bestimmte Version des Devices zu kopieren. Haben sie "
- "eine Platinenversion bis einschliesslich 2.7? "
- "(Sie ist in der linken oberen Ecke der Platine aufgedruckt."
- ))
-
- (set #copy_duart
- (cat "Das 'hkduart.device' muss nach 'DEVS:' kopiert werden. Dies ist "
- "der Treiber für die seriellen Ports."
- ))
-
- (set #copy_pio
- (cat "Das 'pio.device' muss nach 'DEVS:' kopiert werden. Dies ist "
- "der Treiber für die parallelen Ports."
- ))
-
- (set #copy_handlers
- (cat "Dies sind die DOS Handler für die Parallelen und Seriellen Schnittstellen. "
- "Sie müssen nach L: kopiert werden und dienen als DOS Devices für das System. "
- ))
-
- (set #copy_dprefs
- (cat "Dies ist ein Hintergrundprogramm, bei dem der serielle Treiber seine "
- "Voreinstellungen abholt. Es sollte in C: installiert werden. "
- ))
-
- (set #dprefs_startup
- (cat "Damit der Voreinstellungsmechanismus der Vector Connection Software "
- "funktioniert, muss das Programm HKDPrefs beim Systemstart aufgerufen "
- "werden. Jetzt kann die notwendige Zeile in ihrem User-Startup installiert "
- "werden. "
- ))
-
- (set #ask_redirect
- ( cat "Sie können ein Commodity-Programm namens 'Re-Director' installieren, um "
- "OpenDevice() Aufrufe vom serial oder parallel.device auf die I/O Karte "
- "umzulenken. Soll ich es installieren? "
- ))
-
- (set #ask_prefs
- ( cat "Soll ich auch die Voreinstellungsdatei nach ENVARC: kopieren? "
- ))
-
-
- (set #copy_redirect
- (cat "Dies sind Hilfsprogramme, die die Ausgabe des 'parallel.device' und des "
- "'serial.device' auf die Vector Connection Software umlenken. Diese Programme "
- "sind nützlich, wenn Sie Software verwenden wollen, die nicht auf andere "
- "Devices umstellbar ist. Sie können diesen Schritt überspringen, wenn sie schon "
- "das Re-Director Programm kopiert haben."
- ))
-
- (set #copy_duart_prefs
- (cat "Sie haben AmigaOS 2.04 oder besser installiert. Sie können zum Wählen "
- "der Voreinstellungen ein Programm mit graphischer Oberfläche verwenden. "
- "Es soll nach SYS:Prefs kopiert werden. "
- ))
-
- (set #copy_duart_13_prefs
- (cat "Sie haben noch AmigaOS 1.2 oder 1.3 installiert. Sie sollten auf AmigaOS 2.04 "
- "updaten. Leider können sie das grafische Programm für die Voreinstellungen nicht "
- "verwenden, sondern müssen die text-basierten Voreinstellungen verwenden. "
- "Dies sind einige Beispiel-Files, die nach DEVS:duart kopiert werden sollten. "
- ))
-
- (set #copy_dosfiles
- (cat "Sie verwenden AmigaOS 2.1 oder besser. Deshalb können sie DOSTreiber Mountlists "
- "in SYS:Storage/DosDrivers installieren. Wenn sie wollen, daß diese Treiber schon "
- "beim Booten gestartet werden, dann bewegen sie die Piktogramme der Treiber nach "
- "DEVS:DosDrivers."
- ))
-
- (set #copy_13_dosfiles
- (cat "Sie verwenden AmigaOS 1.2, 1.3 oder 2.04. Dies ist eine Beispiel Mountlist, die "
- "Treiber für die seriellen und parallelen Ports enthält. Schneiden sie mit einem "
- "Text-Editor die gewünschten Einträge aus und kopieren sie sie nach DEVS:Mountlist "
- "oder verwenden sie die 'FROM' Option des Mount-Befehls. "
- ))
-
- (set #copy_includes
- (cat "Diese Files sind Include-Dateien für die Programmentwicklung in C oder Assembler. "
- "Sie sollten für SAS C in SC:Include/Devices und für DICE in DINCLUDE:Devices installiert "
- "werden. Wenn sie einen anderen C Compiler oder Assembler verwenden, so schauen sie "
- "bitte in dessen Handbuch. "
- ))
-
- (set #install_parnet
- (cat "Zur Vector Connection Software gehören Treiber für das ParNet der Software Distillery. "
- "Wollen sie, dass diese installiert werden? "
-
- ))
-
- (set #install_par_dist
- (cat "Dies ist die Original ParNet Software, wie sie im UseNet gepostet wurde. "
- "Sie sollte nach Work:ParNet installiert werden. "
- ))
-
- (set #install_driver
- (cat "Jetzt kann eine tatsächliche ParNet Installation (z.B. für das CDTV) durchgeführt werden. "
- ))
-
- (set #install_par_device
- (cat "Welche der folgenden Schnittstellen soll installiert werden? "
- "Achtung: Sie können nur eine der Schnittstellen installieren! "
- ))
-
- (set #intpar "Eingebauter Parallel Port" )
- (set #pio0par "Vector Connection Port 0" )
- (set #pio1par "Vector Connection Port 1" )
-
- (set #local_unit "Welche ID soll auf dieser Maschine verwendet werden?" )
- (set #remote_unit "Welche ID soll auf der anderen Maschine verwendet werden?" )
- (set #par_dev_copy "Ausgewähltes Device wird kopiert" )
- (set #par_hand_copy "Der ParNet Handler wird kopiert" )
- (set #par_serv_copy "Der ParNet Server wird kopiert" )
- (set #par_mount_copy "Die Mountlist für das NET: Device wird kopiert" )
-
- (set #par_us_change
- (cat "Um ParNet direkt nach dem Booten verwenden zu können, muss ein Server "
- "gestartet werden. Dies schreibt das notwendige Kommando in ihren User-Startup. "
- ))
-
-
- ))
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;
- ; Installation Procedure
- ;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (welcome)
-
- (message #prolog)
-
- ; This is the dir we clicked
-
- (complete 0)
-
- (set sourcedir (pathonly @icon))
-
- ;
- ; Copy the Devices
- ;
-
- (if (askbool (prompt #ask_boardrev)
- (help @askbool-help)
- (choices #Yes #No)
- )
- (
- (copylib (prompt #copy_duart)
- (help @copylib-help)
- (source (tackon sourcedir "devs/hkduart.device.KLUDGE"))
- (dest "DEVS:hkduart.device")
- (confirm "expert")
- (optional "askuser")
- )
-
- )
- else
- (
- (copylib (prompt #copy_duart)
- (help @copylib-help)
- (source (tackon sourcedir "devs/hkduart.device.NOKLUDGE"))
- (dest "DEVS:hkduart.device")
- (confirm "expert")
- (optional "askuser")
- )
-
- )
- )
-
- (complete 5)
-
- (copylib (prompt #copy_pio)
- (help @copylib-help)
- (source (tackon sourcedir "devs/pio.device"))
- (dest "DEVS:")
- (confirm "expert")
- (optional "askuser")
- )
-
- (complete 10)
-
- ;
- ; Copy the Handlers
- ;
-
- (copyfiles (prompt #copy_handlers)
- (help @copyfiles-help)
- (source (tackon sourcedir "L"))
- (dest "L:")
- (pattern "#?")
- (confirm "expert")
- (optional "askuser")
- )
-
- (complete 15)
-
- ;
- ; Copy the DPrefs Daemon
- ;
-
- (copyfiles (prompt #copy_dprefs)
- (help @copyfiles-help)
- (source (tackon sourcedir "C"))
- (dest "C:")
- (pattern "HKDprefs")
- (confirm "expert")
- (optional "askuser")
- )
-
- (complete 20)
-
- (startup "Vector Connection Preferences Daemon"
- (prompt #dprefs_startup)
- (help @startup-help)
- (command "run <nil: >nil: C:hkdprefs <nil: >nil:")
- )
-
-
- (complete 25)
-
- ;
- ; Copy the Redirectors
- ;
-
- (if (>= (/ (getversion) 65536) 37)
- (
- (copyfiles (prompt #ask_redirect)
- (help @copyfiles-help)
- (source (tackon sourcedir "WBStartUp"))
- (dest "SYS:WBStartUp")
- (pattern "#?")
- (infos)
- (confirm "expert")
- (optional "askuser")
- )
-
- (copyfiles (prompt #ask_prefs)
- (help @copyfiles-help)
- (source (tackon sourcedir "prefs/Env-Archive"))
- (dest "ENVARC:")
- (pattern "#?")
- (infos)
- (confirm "expert")
- (optional "askuser")
- )
- ))
-
- (copyfiles (prompt #copy_redirect)
- (help @copyfiles-help)
- (source (tackon sourcedir "TOOLS"))
- (dest "C:")
- (pattern "(ReDirect|PReDirect)")
- (confirm "expert")
- (optional "askuser")
- )
-
- (complete 30)
-
- ;
- ; Running under 2.0 or better : Copy the duart preferences program
- ;
-
- (if (>= (/ (getversion) 65536) 37)
- (
- (copyfiles (prompt #copy_duart_prefs)
- (help @copyfiles-help)
- (source (tackon sourcedir "PREFS"))
- (dest "SYS:PREFS")
- (pattern "HKDuart")
- (infos)
- (confirm "expert")
- (optional "askuser")
- ))
- else
- (
- (copyfiles (prompt #copy_duart_13_prefs)
- (help @copyfiles-help)
- (source (tackon sourcedir "DEVS/duart"))
- (dest "DEVS:DUART")
- (pattern "#?")
- (infos)
- (confirm "expert")
- (optional "askuser")
- )))
-
- (complete 40)
-
- ;
- ; Running under <=37: copy Mountlist Entries to DEVS:
- ;
- ; Running under >= 38: Copy mountfiles to DEVS:DOSDrivers
- ;
-
- (if (>= (/ (getversion "c:Version") 65536) 38)
- (
- (copyfiles (prompt #copy_dosfiles)
- (help @copyfiles-help)
- (source (tackon sourcedir "DEVS/DOSDRIVERS"))
- (dest "SYS:Storage/DosDrivers")
- (pattern "#?")
- (infos)
- (confirm "expert")
- (optional "askuser")
- ))
- ; else
- (
- (copyfiles (prompt #copy_13_dosfiles)
- (help @copyfiles-help)
- (source (tackon sourcedir (cat "DEVS/Mountlist_" @language)))
- (newname "Mountlist.Vector_Connection")
- (dest "DEVS:")
- (confirm "average")
- (optional "askuser")
- )))
-
- (complete 50)
-
- (copyfiles (prompt #copy_includes)
- (help @copyfiles-help)
- (source (tackon sourcedir "INCLUDE"))
- (dest "SC:Include")
- (pattern "#?")
- (confirm "average")
- (optional "askuser")
- )
-
- (complete 60)
-
- (if (askbool (prompt #install_parnet)
- (help @askbool-help)
- (choices #Yes #No)
- )
- (
- (copyfiles (source (tackon sourcedir "PARNET/Original"))
- (dest (askdir (prompt #install_par_dist)
- (help @askdir-help)
- (default "Work:Parnet")
- (newpath)
- ))
- (pattern "#?")
- (infos)
- (optional "askuser")
- )
-
- (complete 70)
-
- (if (askbool (prompt #install_driver)
- (help @askbool-help)
- (choices #Yes #No)
- )
- (
- ;
- ; Parnet-Installation:
- ;
- ;
- ; User-StartUp aendern
- ;
-
- (set #devicename (tackon sourcedir (select (set #devicenum (askchoice (prompt #install_par_device)
- (help @askchoice-help)
- (choices #intpar #pio0par #pio1par)
- ))
- "PARNET/Original"
- "PARNET/channel0"
- "PARNET/channel1"
- )))
-
- (set #local_unit (asknumber (prompt #local_unit)
- (help @asknumber-help)
- (default 0)
- ))
-
- (set #remote_unit (asknumber (prompt #remote_unit)
- (help @asknumber-help)
- (default 1)
- ))
-
-
- (complete 80)
-
- (copyfiles (prompt #par_dev_copy)
- (help @copyfiles-help)
- (source #devicename)
- (dest "DEVS:")
- (pattern "parnet.device")
- (confirm "expert")
- (optional "askuser")
- )
-
- (complete 85)
-
- (copyfiles (prompt #par_hand_copy)
- (help @copyfiles-help)
- (source (tackon sourcedir "PARNET/original"))
- (dest "L:")
- (pattern "netpnet-handler")
- (confirm "expert")
- (optional "askuser")
- )
-
- (complete 86)
-
- (copyfiles (prompt #par_serv_copy)
- (help @copyfiles-help)
- (source (tackon sourcedir "PARNET/original"))
- (dest "C:")
- (pattern "netpnet-server")
- (confirm "expert")
- (optional "askuser")
- )
-
- (complete 87)
-
- (delete "t:mountfile.vc" "force")
-
- (complete 88)
-
- (textfile (append (cat "NET: Stacksize = 8000\n"
- " Priority = 5\n"
- " GlobVec = -1\n"
- " Device = devs:parnet.device\n"
- " Surfaces = 0\n"
- " BlocksPerTrack = 0\n"
- " Reserved = 0\n"
- " LowCyl = 0\n"
- " HighCyl = 0\n"
- " Filesystem = l:netpnet-handler\n"
- " Unit = "
- #local_unit
- "\n"
- "#"
- ))
- (dest "T:mountfile.vc")
- (safe)
- )
-
- (complete 89)
-
- (copyfiles (source "T:mountfile.vc")
- (newname "mountlist.net")
- (dest "DEVS:")
- (optional "askuser")
- )
-
- (complete 90)
-
- (delete "t:mountfile.vc" "force")
-
- (complete 91)
-
- (startup "Vector Connection Parnet Installation"
- (prompt #par_us_change)
- (help @startup-help)
- (command (cat "MOUNT NET: FROM DEVS:Mountlist.NET\n"
- "RUN NETPNET-SERVER UNIT " #remote_unit
- ))
- )
-
- (complete 92)
-
- ))
-
- ))
-
- (complete 100)
-
-