home *** CD-ROM | disk | FTP | other *** search
- ; Script to install Directory Opus version 5.0
- ;
- ; Directory Opus Install Version $VER: Install-Opus 5.0 30.3.94
- ; COPYRIGHT ©1995 GP SOFTWARE, AUSTRALIA
- ;
-
- (onerror
- (makeassign "Opus5_Install" (safe))
- )
-
-
- (complete 0)
-
- ;check user has Dos 2
- (set DOSTYPE (/ (getversion) 65536))
- (if
- (NOT (>= DOSTYPE 37))
- (abort "Directory Opus 5 benötigt AmigaDOS 2.04 oder höher."
- " Bevor Sie Opus 5 benutzen können, müssen Sie auf V2.04 oder höher upgraden.")
- )
-
-
- (set wbisgo 0)
-
- ; just in case the installation was restarted
-
- (makeassign "Opus5_Install" (safe))
-
- ; see if this is really an update
-
-
- (set is_update 0)
- (set DOPus_Dest (getassign "DOpus5" "a"))
-
-
- ; if update, be sure they want program in same place
-
- (if DOPus_Dest
- (if (askbool
- (prompt "Opus 5 ist schon in diesem System installiert.\n"
- "Die aktuelle Kopie befindet sich in \"" DOPus_Dest"\"."
- "\n\nWollen Sie in dieses Verzeichnis installieren?"
- )
- (help
- "Der Installer hat entdeckt, daß Sie schon eine Kopie von "
- "Opus 5 installiert haben. Sollte dies falsch sein oder "
- "Sie wollen das Update woanders installieren, wählen Sie "
- "NEIN an, ansonsten JA."
- )
- (default 1)
- )
-
- ; if user wants in same place
-
- (set is_update 1)
-
- ; if user wants in different place
-
- (set DOPus_Dest
- (tackon
- (askdir
- (prompt "Directory Opus 5 wird in seinem eigenen Verzeichnis installiert.\n\nWo soll das Verzeichnis 'Opus 5' erzeugt werden?")
- (help @askdir-help)
- (default @default-dest)
- )
- "Opus5"
- )
- )
- )
-
-
- ; else if not an update, get a location for program
- ;
- (set DOPus_Dest
- (tackon
- (askdir
- (prompt "Directory Opus 5 wird in seinem eigenen Verzeichnis installiert.\n\nWo soll das Verzeichnis 'Opus 5' erzeugt werden?")
- (help @askdir-help)
- (default @default-dest)
- )
- "Opus5"
- )
- )
- )
-
-
- ; now lock on to Install Disk volume
-
- ; (askdisk
- ; (prompt "\nBitte legen Sie die Diskette \"Opus5_Install\" ein.")
- ; (help "Opus 5 wird dann "
- ; "von \"DOpus\" in Ihr System kopiert.")
- ; (dest "DOpus")
- ; (newname "Opus5_Install")
- ; )
-
- ; make DOpus drawer & icon if not there
-
- (if (not is_update)
- (makedir DOPus_Dest (infos))
- )
-
- ; at this point we have a valid destination, so we tell installer where
- ; the application will end up so the exit page will be correct -- also,
- ; the installation log file (if any) will be copied to the destination
-
- (set @default-dest DOPus_Dest)
-
- (working "Lese Directory Opus Dateien von der Installdisk.")
-
- (copyfiles
- (source "Opus5_Install:lhex")
- (dest "ram:")
- )
-
-
-
- (working "Entpacke Directory Opus 5 und Zusatzdateien.")
-
- (textfile
- (dest "RAM:install_cmd")
- (append
- "ram:lhex >NIL: <NIL: -qfw ""\""DOpus_Dest"\"" " x Opus5_Install:DO5.lha \n"
- )
- )
-
- (execute "RAM:install_cmd")
- (run "delete ram:#?_cmd")
- (run "delete ram:lhex")
-
- (complete 80)
-
-
-
- ;Get the users startup choices
- (set mode (askchoice
- (prompt "Opus 5 kann beim Booten des Rechners automatisch gestartet werden. Welchen Start wünschen Sie?")
- (help @askchoice-help )
- (choices "Opus 5 beim Booten starten"
- "Opus 5 beim Booten verborgen starten"
- "Opus 5 als Workbenchersatz !"
- "Opus 5 beim Booten nicht starten")
- (default 0)
- )
- )
-
-
- (complete 90)
-
-
-
-
-
- ; start on boot normal
- (if (= mode 0)
- (
- (copyfiles
- (source (tackon DOpus_dest "wbstartup/Opus5_Startup"))
- (dest "SYS:WBStartup")
- (infos)
-
- )
-
- (tooltype
- (dest "SYS:WBStartup/Opus5_Startup")
- (settooltype "CX_POPUP" "YES")
-
- )
- )
- )
-
-
- ; start on iconified normal
- (if (= mode 1)
- (
-
- (copyfiles
- (source (tackon DOpus_dest "wbstartup/Opus5_Startup"))
- (dest "SYS:WBStartup")
- (infos)
-
- )
-
- (tooltype
- (dest "SYS:WBStartup/Opus5_Startup")
- (settooltype "CX_POPUP" "NO")
-
- )
- )
-
- )
-
-
-
- ; use as wb replacement
-
- (if (= mode 2)
- (
- (set wbisgo 1)
-
- (if (= (exists "c:loadwb") 1)
- (rename "c:LoadWB" "c:LoadWB_old")
- )
-
- (copyfiles
- (source (tackon DOpus_dest "c/LoadDB"))
- (dest "c:")
- )
- (rename "c:LoadDB" "c:LoadWB")
- )
- )
-
-
- ; start on boot iconified
-
-
- (complete 95)
-
- ; modify S:User-Startup
-
-
- ; set the script for user startup
-
- (startup "DirectoryOpus 5"
- (prompt
- "Die folgenden Zeilen müssen angefügt werden an die "
- "\"S:User-Startup\", damit Ihr System ordnungsgemäß "
- "konfiguriert ist.\n\n"
- "ASSIGN DOpus5: \"" DOpus_Dest "\"\n"
- "PATH DOpus5:c Add \n"
- )
- (help "Dies fügt Befehle in die S:user-startup ein, damit "
- "Directory Opus korrekt funktionieren kann")
- (command "ASSIGN DOpus5: \"" DOpus_Dest "\"\n")
- (command "PATH DOpus5:c Add \n")
- )
-
-
-
- ;make sure assignment is set up so that Opus 5 can run
-
- (makeassign "DOpus5" DOPus_Dest)
-
- (textfile
- (dest "RAM:serialise_cmd")
- (append
- "dopus5:DirectoryOpus \n"
- )
- )
-
- (execute "RAM:serialise_cmd"
- (prompt "Directory Opus 5 registrieren\n"
- "---------------------------\n"
- "Um Ihre wertvolle Investition zu schützen und "
- "die Installation zu komplettieren, sollten Sie"
- " jetzt Opus mit Ihren persönlichen Daten und der Seriennummer "
- " der Installationsdisk registrieren.\n\n"
- "Dies wäre auch ein guter Moment, die Registrierkarte"
- " auszufüllen und an Ihren Vertreiber zurückzusenden."
- " Technische Unterstützung und Garantie wird nur"
- " gewährt, wenn eine gültige Registrierung beim Vertrieb"
- " vorliegt."
- )
- (help
- "Directory Opus 5 muß vor Benutzung registriert sein. Bitte wählen Sie 'Weiter' und geben Sie die geforderten Daten ein."
- )
- (confirm)
- )
-
- (run "delete ram:#?_cmd")
-
-
-
- (if (= wbisgo 1)
- (
- (message "Da Sie Directory Opus als Workbenchersatz"
- " benutzen wollen, entfernen Sie bitte"
- " alle Disks aus den Laufwerken und Booten Ihren Rechner erneut.\n\n"
- "*************************\n"
- "******* WARNUNG *********\n"
- "*************************\n"
- " Vor diesem Neustart MUSS Opus 5 registriert worden sein."
- )
- )
- )
-
-
-
- ; reinitialize assigns
-
- (if (not @pretend)
- (makeassign "DOpus5" DOPus_Dest)
-
- )
-
-
-
- (complete 100)
-
- ; cleanup
- (makeassign "Opus5_Install" (safe))
-
- ; bye bye HC
-
- (exit text)
-
-
-