home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 4
/
AACD04.ISO
/
AACD
/
Online
/
AMIPopUp
/
Install
< prev
next >
Wrap
Text File
|
1999-07-18
|
17KB
|
544 lines
; $VER: AMIPopUp Install V1.4 (16.11.98) - written by Sascha "SieGeL" Pfalz
; Installer and Installer project icon
; (c) Copyright 1985-98 Amiga International Inc. All Rights Reserved.
;
; For best view set TAB to 2
;
; This script follows the rules for the Installer, all text vars have a
; t_ preceeding the var name, all other vars have the # in front of the
; names and all sub procedures (if any) will start with P_ .
;
; V1.0 (24.06.98) - Initial Version, Script is able to update or full install
; V1.1 (11.08.98) - Fixed the OS Check to check ONLY for Kick V3.x systems
; V1.2 (08.10.98) - Added spanish texts written by Dámaso D. Estévez, thanks!
; V1.3 (12.10.98) - Script now checks language, if unknown uses english...
; V1.4 (16.11.98) - Added Checks & Installation of MUI sub-classes
;===================
;= Check-Variables =
;===================
(set #MUI "MUI")
(set #MUIMASTER_VMIN 11)
(set #MUIMASTER_PATH "MUI:Libs/muimaster.library")
(set #AMIPOPUP "AMIPopUp")
(set #AMIGUIDE "AMIPopUp.guide")
(set #AMIGUIDE_GER "AMIPopUp_ger.guide")
(set #AMIHIST "AMIPopUp.history")
(set #PREPHIST "PrepMail.history")
(set #AMICATDE "catalogs/deutsch/AMIPopUp.catalog")
(set #AMICATSW "catalogs/svenska/AMIPopUp.catalog")
(set #AMICATSP "catalogs/español/AMIPopUp.catalog")
(set #AMICATPO "catalogs/polski/AMIPopUp.catalog")
(set #AMICATIT "catalogs/italiano/AMIPopUp.catalog")
(set #PREPMAIL "PrepMail")
(set #INFOTEXT "MUI:Libs/MUI/InfoText.mcc")
(set #TEXTINPUT "MUI:Libs/MUI/TextInput.mcc")
; First check if a supported language could be found, if not use english
(IF (AND (<> @language "deutsch") (<> @language "español")) (set @language "english"))
;================
;= GERMAN TEXTS =
;================
(IF (= @language "deutsch")
(
(set default_lang 2)
(set t_StartMsg (cat "\nInstallations-Skript für AMIPopUp & PrepMail\n\n"
"Dieses Skript installiert AMIPopUp und alle relevanten\n"
"Dateien auf Ihrem System.\n\n"
"AMIPopUp ist © 1998-99 by Sascha 'SieGeL' Pfalz\n"
"MUI ist © 1993-99 by Stefan Stuntz\n\n"
"InfoText.mcc by Benny Kjær Nielsen\n"
"TextInput.mcc by Oliver Wagner"))
(set t_bad-kick (cat "\nSie benötigen mindestens AmigaOS V3.0 oder\n\n"
"höher, um AMIPopUp zu benutzen !\n\n"
"-> Bitte updaten Sie Ihr System <-"))
(set t_wrong_mui (cat "Falsche MuiMaster.library Version!\n\n"
"Installiert ist V%ld.%ld, benötigt wird aber mind. V11 !\n\n"
"Bitte updaten Sie Ihr MUI System auf V3.6+\n(Library-Version 11+) !"))
(set t_no_mui (cat "Konnte MUI nicht finden !\n"
"User-Editor benötigt unbedingt MUI V3.6+ um zu arbeiten !\n\n"
"Bitte erst das MUI System installieren (es lohnt sich) und\n"
"dann diese Installation nochmal beginnen !"))
(set t_AskForDest "Bitte Ziel-Pfad für %s angeben:")
(set t_copyfile "Kopiere jetzt %s...")
(set t_selectlocale (cat "Bitte Sprache(n) zum Installieren/Updaten auswählen:\n"
"(Alle Kataloge werden nach PROGDIR:Catalogs/ kopiert)"))
(set t_askfordocs "Dokumentation installieren/updaten ?")
(set t_selectdocs "Bitte auswählen, welche Teile der Dokumentation installiert/geupdated werden sollen:")
(set t_askforddest "Bitte Zielverzeichnis für die Dokumentation auswählen:")
(set t_copycatalog "Kopiere Katalog Datei...")
(set t_askdocshelp (cat "Wenn Sie wünschen kann der Installer die mitgelieferten\n"
"Dokumentationen installieren. Sie haben dann die Möglichkeit,"
"ein Verzeichnis für die Doks anzugeben."))
(set t_lastnotice (cat "\nInstallation erfolgreich.\n\n"
"Bitte lesen Sie UNBEDINGT die Hinweise in der Dokumentation "
"nach, wie PrepMail in Ihre smb.conf Datei eingetragen werden muss!!!\n\n"))
))
;=================
;= SPANISH TEXTS =
;=================
; by Dámaso D. Estévez <amidde@arrakis.es>
(IF (= @language "español")
(
(set default_lang 8)
(set t_StartMsg (cat "\nGuión instalador de AMIPopUp y PrepMail\n\n"
"Este guión instalará AMIPopUp y todos los ficheros\n"
"necesarios en su sistema.\n\n"
"AMIPopUp es © 1998-99 de Sascha 'SieGeL' Pfalz\n"
"MUI es © 1993-99 de Stefan Stuntz\n\n"
"InfoText.mcc es Benny Kjær Nielsen\n"
"TextInput.mcc es Oliver Wagner"))
(set t_bad-kick (cat "\n\n¡¡Debe de disponer del SO 3.0 o superior\n\n"
"para poder utilizar AMIPopUp!!\n\n"
"-> ¡Por favor, actualice su sistema! <-"))
(set t_wrong_mui (cat "¡Versión de la biblioteca\n"
"'MuiMaster.library' incorrecta!\n\n"
"¡Se encuentra instalada la versión %ld.%ld,\n"
"requiriéndose al menos la versión 11!\n\n"
"Por favor actualice su sistema MUI a la\n"
"versión 3.6 o superior que incluirá\n"
"la versión 11 o superior de dicha biblioteca!"))
(set t_no_mui (cat "¡Imposible encontrar el sistema MUI!\n"
"¡AMIPopUp requiere MUI 3.6+ para funcionar!\n"
"Por favor, instale en primer lugar el sistema MUI\n"
"y reinicie este guión instalador después\n"
"de haber realizado la tarea anterior."))
(set t_AskForDest "Especifique destino para %s:")
(set t_copyfile "Copiando fichero %s...")
(set t_selectlocale (cat "Por favor, elija el/los idioma/s a instalar/actualizar:\n"
"(el inglés es interno; los demás catálogos serán copiados en PROGDIR:Catalogs/)."))
(set t_askfordocs "¿Desea instalar/actualizar la documentación?")
(set t_selectdocs "Por favor, elija qué partes de la documentación deben de ser instaladas/actualizadas:")
(set t_askforddest "Elija el directorio de destino para la documentación:")
(set t_copycatalog "Copiando catálogo...")
(set t_askdocshelp (cat "Le permite que la documentación suministrada\n"
"sea copiada en el directorio de su elección."))
(set t_lastnotice (cat "\nInstalación realizada con éxito.\n\n"
"Por favor, ¡¡¡asegúrese de que lee\n"
"la documentación sobre la adición de\n"
"PrepMail a su fichero smb.cnf!!!\n\n"))
))
;=================
;= ENGLISH TEXTS =
;=================
(IF (= @language "english")
(
(set default_lang 4)
(set t_StartMsg (cat "\nInstallation Script of AMIPopUp & PrepMail\n\n"
"This script will install AMIPopUp and all required\n"
"files to your System.\n\n"
"AMIPopUp is © 1998-99 by Sascha 'SieGeL' Pfalz\n"
"MUI is © 1993-99 by Stefan Stuntz\n\n"
"InfoText.mcc by Benny Kjær Nielsen\n"
"TextInput.mcc by Oliver Wagner"))
(set t_bad-kick (cat "\n\nYou must be using AmigaOS V3.0 or higher\n\n"
"to use AMIPopUp !\n\n"
"-> Please update your machine ! <-"))
(set t_wrong_mui (cat "Wrong MuiMaster.library Version !\n\n"
"Installed is V%ld.%ld, required is at least V11 !\n\n"
"Please update your MUI System to at least V3.6+\nLibrary-Version 11+) !"))
(set t_no_mui (cat "Unable to find MUI System !\n"
"AMIPopUp requires MUI V3.6+ to work !\n"
"Please install first the MUI System and restart this Installation\n"
"after the MUI system is installed."))
(set t_AskForDest "Specify destination for %s:")
(set t_copyfile "Now copying file %s...")
(set t_selectlocale (cat "Please choose language(s) to install/update:\n"
"(English is built-in, all other catalogs will be copied to PROGDIR:Catalogs/"))
(set t_askfordocs "Do you wish to install/update the documentation ?")
(set t_selectdocs "Please choose which parts of the documentation should be installed/updated:")
(set t_askforddest "Select Destination directory for the documentation:")
(set t_copycatalog "Copy catalog file...")
(set t_askdocshelp (cat "If you wish Installer will copy the supplied docs in a\n"
"directory of your choice."))
(set t_lastnotice (cat "\nInstallation successful.\n\n"
"Please make sure that you read the docs about adding PrepMail "
"to your smb.conf file !!!\n\n"))
))
;****************************************************************************
;*** MAIN INSTALLATION SCRIPT STARTS HERE ! ***
;****************************************************************************
(set #osver (/ (getversion) 65536)) ; Determine OS Version...
(if (< #osver 39) ( (ABORT t_bad-kick))) ; ...and stop if OS < 37
(complete 0)
(message t_StartMsg)
(complete 1)
(welcome)
;======================================================================
;= FIRST SYSTEM-CHECKS TO DETERMINE USED AMIGA AND INSTALLED SOFTWARE =
;======================================================================
(set #MUI_ASSIGN (getassign #MUI)) ; Check if MUI exists!
(if (<> #MUI_ASSIGN "")
(
(set #muiver (/ (getversion #MUIMASTER_PATH) 65536)) ; Get Version
(set #muirev (* (getversion #MUIMASTER_PATH) 65536)) ; ???
(set #muirev (/ #muirev 65536)) ; Get Revision
(if (< #muiver #MUIMASTER_VMIN) (ABORT (t_wrong_mui #muiver #muirev)))
(complete 6)
)
(
(abort t_no_mui)
))
;======================================================================
;= PROMPT FOR THE DESTINATION DIRECTORY & COPY MAIN FILE =
;======================================================================
(if (<> 0 (exists #AMIPOPUP))
(
(set #mypath "")
(until (<> #mypath "")
(
(set #mypath
(askdir (prompt (t_AskForDest #AMIPOPUP))
(default "MUI:")
(help @askdir-help)))
))
(complete 12)
(set @default-dest #mypath)
(copylib (prompt (t_copyfile #AMIPOPUP))
(source "AMIPopUp")
(dest @default-dest)
(confirm)
(help @copylib-help)
(infos))
)
(
(set @default-dest "MUI:")
)
)
(complete 20)
;======================================================================
;= CHECK FOR PREPMAIL AND INSTALL IT, TOO =
;======================================================================
(if (<> 0 (exists #PREPMAIL))
(
(set #preppath "")
(until (<> #preppath "")
(
(set #preppath
(askdir (prompt (t_AskForDest #PREPMAIL))
(default "AmiTCP:bin")
(help @askdir-help)))
))
(complete 22)
(copylib (prompt (t_copyfile #PREPMAIL))
(source "PrepMail")
(dest #preppath)
(confirm)
(help @copylib-help))
))
;======================================================================
;= INSTALL LOCALE CATALOGS =
;======================================================================
(set #def 0) ; Init var
(if (<> 0 (exists #AMICATDE))
(
(set #choice1 "pdeutsch")
(if (= @language "deutsch") (set #def (+ #def 1)))
)
(
(set #choice1 "p")
))
(if (<> 0 (exists #AMICATSW))
(
(set #choice2 "svenska")
(if (= @language "svenska") (set #def (+ #def 2)))
)
(
(set #choice2 "")
))
(if (<> 0 (exists #AMICATSP))
(
(set #choice3 "español")
(if (= @language "español") (set #def (+ #def 4)))
)
(
(set #choice3 "")
))
(if (<> 0 (exists #AMICATPO))
(
(set #choice4 "polish")
(if (= @language "polish") (set #def (+ #def 8)))
)
(
(set #choice4 "")
))
(if (<> 0 (exists #AMICATIT))
(
(set #choice5 "italiano")
(if (= @language "italiano") (set #def (+ #def 16)))
)
(
(set #choice5 "")
))
(set #catalogs
(askoptions (prompt t_selectlocale)
(help @askoptions-help)
(choices #choice1
#choice2
#choice3
#choice4
#choice5)
(default #def)))
(complete 30)
(if (IN #catalogs 0)
(
(set #mkpath (tackon @default-dest "catalogs/deutsch"))
(makedir #mkpath)
(copylib (prompt t_copycatalog)
(source "catalogs/deutsch/AMIPopUp.catalog")
(dest #mkpath)
(help @copyfiles-help))))
(complete 40)
(if (IN #catalogs 1)
(
(set #mkpath (tackon @default-dest "catalogs/svenska"))
(makedir #mkpath)
(copylib (prompt t_copycatalog)
(source "catalogs/svenska/AMIPopUp.catalog")
(dest #mkpath)
(help @copyfiles-help))))
(if (IN #catalogs 2)
(
(set #mkpath (tackon @default-dest "catalogs/español"))
(makedir #mkpath)
(copylib (prompt t_copycatalog)
(source "catalogs/español/AMIPopUp.catalog")
(dest #mkpath)
(help @copyfiles-help))))
(if (IN #catalogs 3)
(
(set #mkpath (tackon @default-dest "catalogs/polski"))
(makedir #mkpath)
(copylib (prompt t_copycatalog)
(source "catalogs/polski/AMIPopUp.catalog")
(dest #mkpath)
(help @copyfiles-help))))
(if (IN #catalogs 4)
(
(set #mkpath (tackon @default-dest "catalogs/italiano"))
(makedir #mkpath)
(copylib (prompt t_copycatalog)
(source "catalogs/italiano/AMIPopUp.catalog")
(dest #mkpath)
(help @copyfiles-help))))
;======================================================================
;= INSTALL AMIGA-GUIDE DOCUMENTATION & HISTORY FILE =
;======================================================================
(complete 55)
(set #myguide (exists #AMIGUIDE))
(set #myhist (exists #AMIHIST))
(set #mygerguide (exists #AMIGUIDE_GER))
(set #myprephist (exists #PREPHIST))
(set #docdef 0)
(if (OR (<> 0 #myguide) (<> 0 #myhist) (<> 0 #mygerguide) (<> 0 #myprephist))
(
(if (= 1 (AskBool (prompt t_askfordocs) (help t_askdocshelp)))
(
(if (<> 0 #myguide)
(
(set #selguide "AmigaGuide Manual - English (25kb)")
(set #docdef (+ #docdef 1))
)
(
(set #selguide "")
)
)
(if (<> 0 #mygerguide)
(
(set #selgerguide "AmigaGuide Manual - Deutsch (28kb)")
(set #docdef (+ #docdef 2))
)
(
(set #selgerguide "")
)
)
(if (<> 0 #myhist)
(
(set #selhis "AMIPopUp.History ( 6kb)")
(set #docdef (+ #docdef 4))
)
(
(set #selhis "")
)
)
(if (<> 0 #myprephist)
(
(set #prephis "PrepMail.History ( 2kb)")
(set #docdef (+ #docdef 8))
)
(
(set #prephis "")
)
)
(complete 60)
(set #docparts
(askoptions (prompt t_selectdocs)
(help @askoptions-help)
(choices #selguide
#selgerguide
#selhis
#prephis)
(default #docdef)))
(complete 70)
(if (<> 0 #docparts)
(
(set #docdest
(askdir (prompt t_askforddest)
(help @askdir-help)
(default @default-dest)))
(complete 75)
(if (<> "" #docdest)
(
(if (IN #docparts 0)
(
(copyfiles (prompt "Install AmigaGuide...")
(help @copyfiles-help)
(source "AMIPopUp.guide")
(dest #docdest)
(infos))
(complete 85)
))
(if (IN #docparts 1)
(
(copyfiles (prompt "Install AmigaGuide...")
(help @copyfiles-help)
(source "AMIPopUp_ger.guide")
(dest #docdest)
(infos))
(complete 90)
))
(if (IN #docparts 2)
(
(copyfiles (prompt "Install History...")
(help @copyfiles-help)
(source "AMIPopUp.history")
(dest #docdest)
(infos))
))
(if (IN #docparts 3)
(
(copyfiles (prompt "Install History...")
(help @copyfiles-help)
(source "PrepMail.history")
(dest #docdest)
(infos))
))
))
))
))
))
;======================================================================
;= CHECK FOR TextInput.mcc AND InfoText.mcc SUBCLASSES =
;======================================================================
(complete 95)
(if (= 0 (exists #INFOTEXT))
(
(copyfiles (prompt "Install InfoText.mcc ...")
(help @copyfiles-help)
(source "subclasses/InfoText.mcc")
(dest "MUI:Libs/MUI/"))
))
(complete 96)
(if (= 0 (exists #TEXTINPUT))
(
(copyfiles (prompt "Install TextInput#?.mcc ...")
(help @copyfiles-help)
(source "SubClasses/")
(pattern "TextInput#?")
(dest "MUI:Libs/MUI/"))
))
;======================================================================
;= END OF INSTALLATION - NOTICE USER ABOUT SMB.CONF ADDING !!! =
;======================================================================
(complete 99)
(message t_lastnotice)
(complete 100)
(exit)