home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 2000-03-18 | 98.6 KB | 2,420 lines
;** ;** Install_AEMail - AEMail installation script for Installer ;** ;** Copyright (c) 1996-2000 John F. Zacharias ;** All rights reserved. ;** ;** This script has been tested with Installer 43.3 which is included with ;** this archive: ;** ;** Installer and Installer project icon ;** (c) Copyright 1995-96 Escom AG. All Rights Reserved. ;** Reproduced and distributed under license from Escom AG. ;** ;** INSTALLER SOFTWARE IS PROVIDED "AS-IS" AND SUBJECT TO CHANGE; ;** NO WARRANTIES ARE MADE. ALL USE IS AT YOUR OWN RISK. NO LIABILITY ;** OR RESPONSIBILITY IS ASSUMED. ;** ;** Use following Icon tooltypes / Command line options: ;** ;** APPNAME=AEMail Version x.xx ;** MINUSER=AVERAGE ;** ;** ;** Installer script modified on 03/31/00 for AEMail Version 2.30 ;** Modified to handle installation from CDROM (set ;; ;; The source directory name ;; source-dir (if (= 1 (exists @icon)) (pathonly (expandpath @icon)) (expandpath @icon))) (set version_3_0 39) (set version_3_5 44) (set aem-vernum (getversion (tackon source-dir "AEMail"))) (set aem-vernew (/ aem-vernum 65536) aem-revnew (- aem-vernum (* aem-vernew 65536)) aem-verstr ("%ld.%02ld" aem-vernew aem-revnew)) (debug "The value of 'source-dir' is " source-dir) (debug "The file part of 'source-dir' is " (fileonly source-dir)) (debug "The path part of 'source-dir' is " (pathonly source-dir)) (debug "The value of 'aem-vernew' is " aem-vernew) (debug "The value of 'aem-revnew' is " aem-revnew) (debug "The value of 'aem-verstr' is " aem-verstr) (set aem-dpref "" aem-dsk1 "" aem-dsk2 "") (if (= "-Disk" (substr source-dir 12 5)) (set aem-dpref (substr source-dir 0 12) aem-dsk1 (cat aem-dpref "-Disk_1") aem-dsk2 (cat aem-dpref "-Disk_2")) ((makeassign aem-dsk1 source-dir (safe)) (makeassign aem-dsk2 source-dir (safe)))) (debug "The value of 'aem-dpref' is " aem-dpref) (debug "The value of 'aem-dsk1' is " aem-dsk1) (debug "The value of 'aem-dsk2' is " aem-dsk2) (set aem-rexx-dir "") ; ************* PLEASE COPY THIS PROCEDURE ALONG WITH THE STRINGS IT USES ; ************* TO THE INSTALLER SCRIPT OF YOUR CLASSACT APPLICATION. ; ************* IT WILL TAKE CARE OF INSTALLING THE CLASSACT CLASSES YOU ; ************* PROVIDED WITH YOUR APPLICATION TO THE USER'S SYSTEM. ; $VER: ClassAct_Install 1.16 (9.3.97) by Osma Ahvenlampi (set cpu (database "cpu")) (set cpu020 (and (<> cpu "68000") (<> cpu "68010"))) (set v39 (>= (/ (getversion "exec.library" (resident)) 65536) 39)) ; percentage of the size of included ClassAct classes versus the whole ; distribution (ie. total "complete" percentage after ClassAct is installed) (set classact-complete 90) ; ClassAct installer scripts ;*********************************** ;English Strings ;*********************************** (set #classdest-prompt "Please select the directory where you want the ClassAct classes installed.\n(See help for details)") (set #classdest-help (cat "ClassAct is a GUI toolkit consisting of shared BOOPSI classes.\n\nSome programs require some or all of the ClassAct classes installed on your system. " (if v39 (cat "OS 3.0 has a standard directory for BOOPSI classes, the SYS:Classes directory. It is recommended that you install ClassAct there.") (cat "OS 2.0 does not have a standard place for disk resident BOOPSI classes. On OS 3.0 these classes are stored in the SYS:Classes directory. It is recommended that you create this directory and install ClassAct there.\nThis directory must be added in the LIBS: assign. This can be done by placing the command\nAssign >NIL: LIBS: SYS:Classes ADD\nto User-Startup. This installer will do this for you.") ) ) ) (set #classes-020 "Do you want to use the OS 3.0, 020 optimised version of ClassAct?") (set #help-020 "Some ClassAct libraries have versions optimised for use on 020 or better equipped OS 3.0 or later machines. If your Amiga is such equipped, you should install these. The 68000/2.0 versions will also work, but are slightly slower.") (set #noclasses-message "The directory you selected for your ClassAct classes is not a part of the LIBS: assign.\n\nIt is necessary to add this assign so that the classes will be found properly.") (set #creating-dir "Creating directory ") (set #usbackup-prompt "User-Startup will now be backed up.") (set #usbackup-help "This installer will next make a modification in User-Startup. Before doing this the old User-Startup will be backed up to S:User-Startup.old") (set #adding-1 "Adding ") (set #adding-2 " to LIBS: assign\n") (set #adding-help "This is necessary so that the custom classes can be found.") (set #junod-button "It seems you have a late Commodore 'V42' button.gadget installed on your system.\n\nClassAct's button.gadget is far more capable than this gadget, and we recommend that you replace it. The ClassAct button.gadget is backwards compatible to the Commodore gadget. Do you wish to back up the Commodore gadget and replace it with the ClassAct version?") (set #junod-backed "The Commodore 'V42' button.gadget has been backed up with the name button.gadget.v42.\n\nThe ClassAct button.gadget will be installed in its place.") (set #junod-kept "The Commodore 'V42' button.gadget was not replaced with the more capable ClassAct version.\n\nPrograms depending on the availability of ClassAct-only features will be likely to work wrong.") ;(set #caprefs-message "CAPrefs is a small utility that sets some user preferences for ClassAct applications. These include the bevel style (Thin/Gadtools/Xen), window backfills, and group label details.\n\nPlease use the ClassAct GUI prefs editor to alter the default settings provided. ClassAct prefs will be installed in your system Prefs drawer.\n\n") (set #caprefs-message "ClassAct has several user-configurable aspects that affect the look of ClassAct interfaces.\n\nThese settings can be changed using the ClassAct preferences tool that will be installed in yout Prefs drawer.\n\nA small tool, CAPrefs, will be added to your user-startup to load the settings on reboot.") (set #caprefs-startup-1 "Adding the command\n\n") (set #caprefs-startup-2 "\n\nTo your s:User-Startup.") (set #decompressing-classact "Compressed ClassAct distribution detected\n\nDecompressing to T:") (set #deleting-cltmp "Deleting temporary files") ;*********************************** ;Spanish Strings ;*********************************** (if (= @language "español") ( (set #classdest-prompt "Por favor, seleccione el directorio donde desea instalar las clases de ClassAct.\n(Vea la ayuda para más detalles)") (set #classdest-help (cat "ClassAct es un kit de interface gráfica consistente es clases compartidas BOOPSI.\n\nAlgunos programas requieren que algunas o todas de las clases de ClassAct estén instaladas en su sistema. " (if v39 (cat "El OS 3.0 tiene un directorio estándar para las clases BOOPSI: el directorio SYS:Classes. Se recomienda que instale ClassAct ahí.") (cat "El OS 2.0 no tiene un sitio estándar para las clases BOOPSI residentes en disco. En el OS 3.0 esas clases son almacenadas en el directorio SYS:Classes. Se recomienda que cree este directorio e instale ClassAct ahí.\nEste directorio debe ser añadido a la asignación de LIBS:. Esto puede ser hecho colocando el comando\nAssign >NIL: LIBS: SYS:Classes ADD\nal User-Startup. Este instalador lo hará por usted.") ) ) ) (set #classes-020 "¿Quiere usar la versión optimizada para OS 3.0 y 020 de ClassAct?") (set #help-020 "Algunas librerías de ClassAct tienen versiones optimizadas para el uso en máquinas con OS 3.0 y 020 o superior. Si su Amiga es una de tales máquinas debería instalar estas. Las versiones 68000/2.0 también funcionarán, pero son ligeramente más lentas") (set #noclasses-message "El subdirectorio que seleccionó para sus clases ClassAct no forma parte de la asignación de LIBS:.\n\nEs necesario añadir esta asignación para que las clases puedan ser localizadas adecuadamente.") (set #creating-dir "Creando directorio ") (set #usbackup-prompt "Ahora se hará una copia de seguridad del User-Startup.") (set #usbackup-help "Este instalador hará ahora una modificación en el User-Startup. Antes de hacer esto se hará una copia de seguridad del User-Startup en S:User-Startup.old") (set #adding-1 "Añadiendo ") (set #adding-2 "a la asignación de LIBS:\n") (set #adding-help "Esto es necesario para que las clases puedan ser encontradas.") (set #junod-button "Parece que tiene el último button.gadget de Comodore ('V42') instalado en su sistema.\n\nEl button.gadget de ClassAct es superior a este gadget y le recomendamos que lo remplace. El button.gadget de ClassAct es compatible con el de Commodore. ¿Desea hacer una copia de seguridad del gadget de Commodore y remplazarlo por la versión de ClassAct?") (set #junod-backed "Se ha hecho una copia de seguridad del button.gadget 'V42' de Commodore con el nombre button.gadget.v42.\n\nEl button.gadget de ClassAct será instalado en su lugar.") (set #junod-kept "El button.gadget 'V42' de Commodore no fué remplazado con la versión superior de ClassAct.\n\nLos programas que dependan de la disponibilidad de las características de la versión de ClassAct funcionarán mal probablemente") ;(set #caprefs-message "CAPrefs es una pequeña utilidad que inicializa algunas preferencias del usuario para las aplicaciones ClassAct. Estas incluyen el estilo de resaltado (Fino/GadTools/Xen), relleno de ventanas, y detalles de las etiquetas de grupo.\n\nPor favor, use las preferencias de interface de ClassAct en su cajón de sistema 'Prefs' .\n\n") (set #caprefs-message "ClasAct tiene varios aspectos configurables por el usuario que afectan a la apariencia de las interfaces ClassAct.\n\nEstos ajustes pueden ser modificados usando la herramienta de preferencias de ClassAct que será instalada en su cajón 'Prefs'.\n\nUna pequeña herramienta, CAPrefs, será añadida a su user-startup para cargar los ajustes al arrancar.") (set #caprefs-startup-1 "Añadiendo el comando\n\n") (set #caprefs-startup-2 "\n\nA su s:User-Startup.") (set #decompressing-classact "Distribución de Classact comprimida detectada\n\nDescomprimiendo a T:") (set #deleteing-cltmp "Borrando ficheros temporales") ) ) ;*********************************** ; Italian Strings ;*********************************** (if (= @language "italiano") ( (set #classdest-prompt "Per favore scegli la directory in cui vuoi installare le classi ClassAct.\n(Vedi Aiuto per i dettagli)") (set #classdest-help (cat "ClassAct è un toolkit GUI che consiste di classi BOOPSI condivise.\n\nCerti programmi richiedono che alcune o tutte le classi ClassAct siano installate sul tuo sistema. " (if v39 (cat "Il SO 3.0 ha una directory standard per le classi BOOPSI, la directory SYS:Classes. Si raccomanda d'installare ClassAct proprio lì.") (cat "Il SO 2.0 non ha un posto standard per le classi BOOPSI residenti su disco. Nell'OS 3.0 queste classi sono immagazzinate nella directory SYS:Classes. Si raccomanda di creare questa directory e d'installarvi ClassAct.\nQuesta directory dev'essere aggiunta nell'assign LIBS:. Ciò può essere fatto mettendo il comando\nAssign >NIL: LIBS: SYS:Classes ADD\nnella User-Startup. Questo script d'installazione lo farà per te.") ) ) ) (set #classes-020 "Vuoi usare la versione ottimizzata per SO 3.0 e CPU 020 di ClassAct?") (set #help-020 "Alcune librerie ClassAct hanno versioni ottimizate per l'uso su macchine equipaggiate con una CPU 020 o superiore e il SO 3.0. Se il tuo Amiga é così equipaggiato, dovresti installarle. Le versioni 68000/2.0 funzioneranno comunque, ma sono più lente.") (set #noclasses-message "La directory che hai scelto per le tue classi ClassAct non é parte dell'assign LIBS:.\n\nE' necessario aggiungere questo assegnamento affinché le classi siano trovate correttamente.") (set #creating-dir "Creo la directory ") (set #usbackup-prompt "La User-Startup sarà ora copiata per sicurezza.") (set #usbackup-help "Questa installazione ora modificherà la User-Startup. Prima di fare ciò, la vecchia User-Startup sarà copiata per sicurezza in S:User-Startup.old") (set #adding-1 "Aggiungo ") (set #adding-2 " all'assign LIBS:\n") (set #adding-help "Questo è necessario per far trovare al sistema le classi custom.") (set #junod-button "Sembra che hai installato un recente button.gadget 'V42' della Commodore sul tuo sistema.\n\nIl button.gadget di ClassAct é molto più potente di questo gadget, e raccomandiamo di sostituirlo. Il button.gadget di ClassAct é compatibile con il gadget Commodore. Vuoi copiare per sicurezza il gadget Commodore e sostituirlo con la versione ClassAct?") (set #junod-backed "Il button.gadget della Commodore 'V42' é stato copiato per sicurezza col nome button.gadget.v42.\n\nIl button.gadget di ClassAct sarà installato al suo posto.") (set #junod-kept "Il button.gadget 'V42' della Commodore non é stato sostituito dalla versione ClassAct più potente.\n\nI programmi che dipendono dalla disponibilità delle caratteristiche di ClassAct probabilmente funzioneranno male.") ;(set #caprefs-message "CAPrefs è una piccola utility che setta alcune preferenze dell'utente per le applicazioni ClassAct. Tra queste, lo stile dei bevel (Thin/Gadtools/Xen), i backfill delle finestre, ed il dettaglio della group label.\n\nPer favore usa l'editor di preferenze ClassAct GUI per modificare i settaggi standard forniti. ClassAct prefs sarà installato nel cassetto Prefs del tuo sistema.\n\n") (set #caprefs-message "ClassAct ha diversi aspetti configurabili dall'utente che modificano l'aspetto delle interfacce ClassAct.\n\nQuesti settaggi possono essere cambiati usando il programma di preferenze ClassAct sarà installato nel tuo cassetto Prefs.\n\nUna piccola utility, CAPrefs, sarà aggiunta alla tua user-startup per caricare i settaggi al reboot.") (set #caprefs-startup-1 "Aggiungo il comando\n\n") (set #caprefs-startup-2 "\n\nalla tua S:User-Startup.") (set #decompressing-classact "Trovata una distribuzione ClassAct compressa\n\nLa decomprimo in T:") (set #deleting-cltmp "Cancello i file temporanei") ) ) ;*********************************** ; Swedish Strings ;*********************************** (if (= @language "svenska") ( (set #classdest-prompt "Var god välj den låda där du vill installera ClassAct-klasserna.\n(Se hjälpen för detaljer.)") (set #classdest-help (cat "ClassAct är en verktygslåda för skapandet av användargränssnitt (GUI), som består av ett antal så kallade delade BOOPSI-klasser.\n\nEn del program kräver att en del, eller alla, ClassAct-klasser är installerade i din Amiga. " (if v39 (cat "OS 3.0 har en standardlåda för BOOPSI-klasser, Sys:Classes. Det rekommenderas att du installerar ClassAct där.") (cat "OS 2.0 har inte någon standardlåda för diskbaserade BOOPSI-klasser. I OS 3.0 lagras sådana klasser i lådan Sys:Classes. Det rekommenderas att du skapar denna låda, och installerar ClassAct där.\nDenna låda måste vara en del av Libs:-tilldelningen. Detta kan göras genom att placera kommandot\nAssign >NIL: Libs: Sys:Classes ADD\ntill filen S:User-Startup. Den här installeraren kommer att göra det åt dig.") ) ) ) (set #classes-020 "Vill du använda OS 3.0-versionen av ClassAct, som är optimerad för en 68020?") (set #help-020 "Några ClassAct-klasser finns i versioner som är optmierade för en 68020 och OS 3.0 eller bättre. Om din Amiga har sådan utrustning (eller bättre), så bör du installera dem. Versionerna för 68000/2.0 fungerar också, men de är något långsammare.") (set #noclasses-message "Den låda du har valt för ClassAct-klasserna är inte en del av Libs:-tilldelningen.\n\nDet är nödvändigt att lägga till denna tilldelning, så att klasserna kan hittas utan problem.") (set #creating-dir "Skapar lådan ") (set #usbackup-prompt "S:User-Startup kommer nu att backas upp.") (set #usbackup-help "Den här installeraren kommer strax att modifiera filen S:User-Startup. Innan detta görs, kommer den gamla S:User-Startup att backas upp till S:User-Startup.old") (set #adding-1 "Lägger till ") (set #adding-2 " till Libs:-tilldelningen\n") (set #adding-help "Detta måste göras för att klasserna ska kunna hittas.") (set #junod-button "Det ser ut som om du har Commodores 'V42' button.gadget installed i din Amiga.\n\nClassActs button.gadget kan mycket mer än denna knapp, och vi rekommenderar att du ersätter den. ClassAct-versionen av button.gadget är bakåtkompatibel med Commodore-knappen. Vill du backa upp Commodore-knappen, och ersätta den med ClassAct-versionen?") (set #junod-backed "Commodores 'V42' button.gadget har backats upp som button.gadget.v42.\n\nClassActs button.gadget kommer att installeras istället.") (set #junod-kept "Commodores 'V42' button.gadget har inte ersatts av den mer kapabla ClassAct-versionen.\n\nProgram som förlitar sig på tillgängligheten av ClassAct-specifika funktioner kommer troligen inte att fungera som de ska.") ;(set #caprefs-message "CAPrefs är ett litet program som sätter användarinställningarna för ClassAct-program. Dessa inställningar inkluderar ramstil (smal/gadtools/xen), fönsterbakgrunder samt detaljer rörande gruppetiketter.\n\nVar god använd ClassActs grafiska inställningsredigerare för att ändra de förvalda inställningarna. ClassActs inställningsredigerare kommer att installeras i din Amigas Prefs-låda.\n\n") (set #caprefs-message "ClassAct har flera användardefinierbara aspekter som påverkar hur ClassAct-gränssnitt ser ut.\n\nDessa inställningar kan ändras genom att använda ClassActs inställningsredigerare, som kommer att installeras i din Amigas Prefs-låda.\n\nEtt litet program, CAPrefs, kommer att läggas till din S:User-Startup, för att läsa in inställningarna vid systemuppstart.") (set #caprefs-startup-1 "Lägger till kommandot\n\n") (set #caprefs-startup-2 "\n\ntill din s:User-Startup.") (set #decompressing-classact "Komprimerad ClassAct-distribution upptäckt\n\nPackar upp till T:") (set #deleting-cltmp "Raderar temporära filer") ) ) (procedure install-classact ; call this procedure to copy the classes included in the Classes directory ; in your distribution dir. ; ; (if (exists "ClassAct.lha") ; ClassAct is compressed - need to decompress first ; ( ; Distribution includes LHEX ; (working (cat #decompressing-classact)) ; ; ClassAct.lha contains paths/files "Classes/*", "C/CheckAssign", "Prefs/CAPrefs" and "Prefs/ClassAct" ; ; (run "lhex -aqfw=T:ClassAct/ x ClassAct.lha") ; (set #classact-source "T:ClassAct") ; ) ; (set #classact-source (pathonly @icon)) ; ) ; (if (exists "ClassAct.lzx") ; ClassAct is compressed - need to decompress first ; ( ; Distribution includes UNLZX ; (working (cat #decompressing-classact)); ; ; ClassAct.lzx contains paths/files "Classes/*", "C/CheckAssign", "Prefs/CAPrefs" and "Prefs/ClassAct" ; ; (run "unlzx -amq x ClassAct.lzx T:ClassAct/") ; (set #classact-source "T:ClassAct") ; ) ; (set #classact-source (pathonly @icon)) ; ) (if (exists (tackon #classact-source "Classes")) ; The archive contains a ClassAct library update. ( (set comp-dest (/ (* classact-complete 2) 10)) (set comp-libs (/ (* classact-complete 3) 10)) (set comp-dirs (/ (* classact-complete 4) 10)) (set comp-junod (/ (* classact-complete 5) 10)) (set comp-020 (/ (* classact-complete 6) 10)) (set comp-gad (/ (* classact-complete 7) 10)) (set comp-im (/ (* classact-complete 8) 10)) (set comp-prefs (/ (* classact-complete 9) 10)) ; has the user installed ClassAct in CLASSACT: ? (set #classact-dest (getassign "CLASSACT" "A")) (set @default-dest #classact-dest) (if (= #classact-dest "") (set #classact-dest "SYS:Classes")) ; is ClassAct already in SYS:Classes ? (if (or (not (exists (tackon #classact-dest "Gadgets/layout.gadget") (noreq))) (= @user-level 2)) ; no, ask where it should be placed (set #classact-dest (askdir (prompt #classdest-prompt) (help #classdest-help) (default #classact-dest) (newpath) ) ) ) (complete comp-dest) (if (<> (run (cat "\"" (tackon #classact-source "C/CheckAssign\"") " LIBS: " #classact-dest)) 0) ( (message #noclasses-message) (if (not (exists #classact-dest)) (makedir #classact-dest (prompt (cat #creating-dir #classact-dest))) ) (set #addassign (cat "Assign >NIL: LIBS: " #classact-dest " ADD\n")) (startup "CLASSACT" (command #addassign) (prompt (cat #adding-1 #classact-dest #adding-2)) (help #adding-help) ) (run (#addassign)) ) ) (complete comp-libs) (set #classact-gadgets (tackon #classact-dest "Gadgets")) (set #classact-images (tackon #classact-dest "Images")) (if (not (exists #classact-gadgets (noreq))) (makedir #classact-images (prompt (cat #creating-dir #classact-gadgets)) ) ) (if (not (exists #classact-images (noreq))) (makedir #classact-images (prompt (cat #creating-dir #classact-images)) ) ) (complete comp-dirs) (if (exists "SYS:Classes/Gadgets/button.gadget") (if (and (= 2752514 (getversion "SYS:Classes/Gadgets/button.gadget")) (= 4868 (getsize "SYS:Classes/Gadgets/button.gadget"))) (if (askbool (prompt #junod-button) (help @askbool-help) (default 1)) ( (rename "SYS:Classes/Gadgets/button.gadget" "SYS:Classes/Gadgets/button.gadget.v42") (message #junod-backed) ) (message #junod-kept) ) ) ) (complete comp-junod) (if (and (and cpu020 v39) (exists (tackon #classact-source "Classes/Gadgets/layout.gadget.020"))) (set classes-020 (askbool (prompt #classes-020) (help #help-020) (default 1))) (set classes-020 0) ) (complete comp-020) (set #source-path (tackon #classact-source "Classes/Gadgets")) (foreach #source-path "#?.gadget" ( (set thislib (tackon #source-path @each-name)) (if (and classes-020 (exists (cat thislib ".020"))) (set thislib (cat thislib ".020")) ) (copylib (source thislib) (dest #classact-gadgets) (newname @each-name) (prompt (cat #installing @each-name)) (help #classdest-help) (optional "force" "askuser") ) ) ) (complete comp-gad) (set #source-path (tackon #classact-source "Classes/Images")) (foreach #source-path "#?.image" ( (set thislib (tackon #source-path @each-name)) (if (and classes-020 (exists (cat thislib ".020"))) (set thislib (cat thislib ".020")) ) (copylib (source thislib) (dest #classact-images) (newname @each-name) (prompt (cat #installing @each-name)) (help #classdest-help) (optional "force" "askuser") ) ) ) (complete comp-im) (set #source-path (tackon #classact-source "Classes")) (foreach #source-path "#?.class" ( (set thislib (tackon #source-path @each-name)) (if (and classes-020 (exists (cat thislib ".020"))) (set thislib (cat thislib ".020")) ) (copylib (source thislib) (dest #classact-dest) (newname @each-name) (prompt (cat #installing @each-name)) (help #classdest-help) (optional "force" "askuser") ) ) ) ) ) (if (exists (tackon #classact-source "Prefs/ClassAct")) ; The archive contains ClassAct prefs tools ( (message #caprefs-message) (copylib (source (tackon #classact-source "Prefs/CAPrefs")) (dest "C:") (prompt (cat #installing "CAPrefs")) ) (copylib (source (tackon #classact-source "Prefs/ClassAct")) (dest "SYS:Prefs") (prompt (cat #installing "ClassAct Prefs")) (infos) ) (complete comp-prefs) (if (not (exists "ENVARC:ClassAct" (noreq))) ( (makedir "ENVARC:ClassAct" (prompt (cat #creating-dir "ENVARC:ClassAct")) ) (textfile (dest "ENVARC:ClassAct/ClassAct") (append "") ) ) ) (set caprefs-cmd "C:CAPrefs >NIL:\n") (startup "CAPREFS" (prompt (cat #caprefs-startup-1 caprefs-cmd #caprefs-startup-2)) (help #caprefs-message) (command caprefs-cmd) ) ) ) ; (if (or (exists "ClassAct.lha") (exists "ClassAct.lzx")) ; (run "C:Delete T:ClassAct ALL" ; ; (delete "T:ClassAct" (all) ; ; (prompt #deleting-cltmp) ; ) ; ) (complete classact-complete)) ; ************** END OF CLASSACT INSTALL PROCEDURE. COPY THE BLOCK ABOVE ; ************** TO YOUR CLASSACT APPLICATION INSTALLER. ; ************** Start of Mailcap build procedure (aemp-build_mailcap) (procedure aemp-build_mailcap ((set aem-mimetypes (askoptions (prompt "Indicate those mime types/subtypes you want " "display programs for") (help "Check which types/subtypes that you will specify " "a display program for. If you specify the type/all " "option you must have a program that can determine " "the appropriate display subtype") (choices "text/all" "images/all" "images/gif" "images/jpeg" "images/x-iff" "audio/all" "audio/basic" "video/all" "video/mpeg")) aem-curmailcap 0) (delete aem-mailcap_file) (while (<> 0 aem-mimetypes) ((if (BITAND aem-mimetypes 1) ((set aem-curmimet (select aem-curmailcap "text/*" "images/*" "images/gif" "images/jpeg" "images/x-iff" "audio/*" "audio/basic" "video/*" "video/mpeg") aem-mimefile (askfile (prompt "Indicate program to display " aem-curmimet) (help "Select the program in the file list that will " "be used the display the file described by the " "indicated mime type/subtype") (default "")) aem-mimefile (askstring (prompt "Add the parameters required for the mime " "display program you selected\n\n" "You must always add '%s' to specify where " "the file you are displaying goes.\n") (help "You will need to add parmeters that may be " "required by the display program that you " "specified. One required parameter required " "by ALL programs is '%s' to specify where " "the file name for the file you are " "displaying goes.\n") (default (cat aem-mimefile " %s"))) aem-mimeonwb (askbool (prompt "Does the mime display program have to open " "on the Workbench?" (help "Some programs will always open on the " "Workbench. Others will open on their own " "screen. If your display program opens on " "the Workbench, you must reply 'YES' to this " "request.\n"))) aem-mimefile (if (= 1 aem-mimeonwb) (cat "WB;" aem-mimefile) ("%s" aem-mimefile))) (textfile (prompt "Creating .mailcap file") (help "Creating .mailcap file") (dest aem-mailcap_file) (include aem-mailcap_file) (append ("%s; \"%s\"\n" aem-curmimet aem-mimefile))))) (set aem-curmailcap (+ 1 aem-curmailcap)) (set aem-mimetypes (shiftright aem-mimetypes 1)) ))) ) ; ************* End of Mailcap build procedure (aemp-build_mailcap) ; ************* Start of Get User Icon procedure (aemp-get-users) (procedure aemp-get-users (set aem-userno 1) (set aem-username-1 "" aem-username-2 "" aem-username-3 "" aem-username-4 "" aem-username-5 "" aem-username-6 "" aem-username-7 "" aem-username-8 "" aem-username-9 "") (if (<> 1 @pretend) (foreach @default-dest "#?.info" ((set aem-iconnameln (strlen @each-name)) (set aem-iconname (substr @each-name 0 (- aem-iconnameln 5))) (set aem-iconpath (tackon @default-dest aem-iconname)) (debug "@eachname is "@each-name) (debug "aem-iconname is "aem-iconname) (debug "aem-iconpath is "aem-iconpath) ((iconinfo (prompt "Getting Project Icon") (dest aem-iconpath) (getdefaulttool "aem-icontool")) (debug "aem-icontool is " aem-icontool) (debug "The value of 'aem-userno' is " aem-userno) (if (= "AEMail" aem-icontool) ((debug "aem-iconname is " aem-iconname) (symbolset (cat "aem-username-" aem-userno) aem-iconname) (set aem-userno (+ 1 aem-userno)))))))) ) ; ************* End of Get User Icon procedure (aemp-get-users) (set exec-version (/ (getversion) 65536)) (set avail-mem (+ (database "total-mem"))) (set system-cpu (database "cpu")) (set wb-version 0) (if (exists ("libs:version.library")) ((set wb-version (/ (getversion ("libs:version.library")) 65536)))) (debug "The value of 'exec-version' is " exec-version) (debug "The value of 'wb-version' is " wb-version) (set full-aem-name "AEMail Version 2.30") (set aem-INSTALL (askchoice (prompt "\n\nWhat type of AEMail Installion are you performing?\n") (help "Indicate whether this is a demo version of AEMail, " "a previously registered version of AEMail, " "or a new registered version of AEMail. If it is " "a new registered version you will need to have your " "key code available. You will be asked for it.") (choices "A Demo Version" "A Previously Registered Version" "A New Registered Version") (default 0))) (set aem-Regfile "") (if (= 1 aem-INSTALL) ((if (= 2 (exists "AEMail2:" (noreq))) (set aem-Regfile "AEMail2:.registration") (if (= 2 (exists "AEMail:" (noreq))) (set aem-Regfile "AEMail:.registration"))) (if (<> 1 (exists aem-Regfile (noreq))) (abort "No existing .registration file can not be found.\n\n" "Re-install at the 'Demo' level and notify " "jzachar@calweb.com to obtain correct key file.")) (copyfiles (prompt "Copying .registration file to ram") (source aem-Regfile) (dest "RAM:") (newname ".AEMregistration") (optional "nofail")) )) (set continue 0 aem-regkey "" aem-regname "" aem-aemr (tackon source-dir "AEMR")) (if (= 2 aem-INSTALL) ((while (= continue 0) (set aem-regkey (askstring (prompt "You are installing a registered version of " "AEMail.\n\n" "Please enter the key code provided with your " "copy of AEMail.") (help "You must enter your key code EXACTLY as provided " "using the correct upper and lower case letters.") (default aem-regkey)) aem-regname (askstring (prompt "Please enter the name you want AEMail registered " "under:") (help "You must enter a registered name\n\n")) aem-regserno (run aem-aemr aem-regkey "\""aem-regname"\" RAM:" (safe))) (debug "The value of aem-aemr is "aem-aemr) (debug "The value of aem-regkey is "aem-regkey) (debug "The value of aem-regname is "aem-regname) (debug "The value of aem-regserno is "aem-regserno) (if (> 100 aem-regserno) ((if (= 1 aem-regserno) ((message "You did not enter either a key or registration " "name\n\nTry Again!") (set continue 0))) (if (= 2 aem-regserno) ((message "You entered an incorrect key code\n\nTry Again!") (set continue 0))) (if (= 50 aem-regserno) ((message "Failed to create .registration file\n\n" "Continuing as an unregistered version. Contact " "jzachar@calweb.com for further instructions.") (set continue 1)))) (set continue (askbool (prompt "\nIs the following information correct?\n\n" "registration name: " aem-regname "\n" " serial number: " aem-regserno "\n\n" "If not, you can repeat the registration process") (help "Check the serial number with the number on the " "provided information sheet. If it or your " "registration name or incorrect you can select " "\"No, Enter Again\" or, if everything is all " "right, select \"Yes, Repeat Registration\"\n") (choices "Yes, Continue" "No, Repeat Registration"))))) (rename "RAM:.registration" "RAM:.AEMregistration"))) (set aem-name "AEMail" aem-assign (cat aem-name ":") aem-default-tcp 3) (if (= 1 (exists "ENV:TermiteTCP.prefs" (noreq))) (set aem-Termite 2 aem-default-tcp 3) (set aem-Termite 0)) (if (= 2 (exists "AMITCP:bin" (noreq))) (set aem-have-AMITCP 1 aem-default-tcp 1) (set aem-have-AMITCP 0)) (if (= 2 (exists "Miami:" (noreq))) (set aem-have-MIAMI 1 aem-default-tcp 0) (set aem-have-MIAMI 0)) (set continue 0) (while (= continue 0) ((set aem-TCPIP (askchoice (prompt "Indicate which TCP/IP software you are using") (help "Information on the TCP/IP software you are using " "is needed to determine which StartNet and StopNet " "are used. If you choose 'Miami' you must have an " "ASSIGN for 'Miami:'. If you select 'AmiTCP', you " "must have an 'AMITCP:bin' directory. 'Termite TCP' " "and 'Other' will not assign a StartNet or StopNet " "script". (choices "Miami" "AmiTCP" "Termite TCP" "Other") (default aem-default-tcp)))) (if (= 0 aem-TCPIP) (if (= 1 aem-have-MIAMI) (set aem-have-AMITCP 0 aem-Termite 0 continue 1) ((set continue (askbool (prompt "You do not have an ASSIGN for the Miami Directory\n" "Do you wish to continue without the ASSIGN or " "select another TCP/IP stack?" (help cd devl "If you select 'Continue' you will not be able to " "use the 'startnet.miami' or 'stopnet.miami' scripts " "unless you load Miami before starting AEMail") (choices "Continue" "Select another stack")))) (if (= 1 continue) (set aem-have-MIAMI 1 aem-have-AMITCP 0 aem-Termite 0)))) (if (= 1 aem-TCPIP) (if (= 1 aem-have-AMITCP) (set aem-have-MIAMI 0 aem-Termite 0 continue 1) (message "You do not have an ASSIGN for 'AMITCP:bin' " "If you select 'Proceed' you can select " "another TCP/IP stack; otherwise, you should " "abort the install." (help "If you are using AmiTCP you must have an " "ASSIGN for 'AmiTCP:' and a 'AmiTCP:bin' " "directory."))) (set aem-have-MIAMI 0 aem-have-AMITCP 0 continue 1))))) (debug "The value of 'aem-TCPIP' is " aem-TCPIP) (set aem-haveenv 0) (if (= 1 (exists "ENV:AEMail_Dir" (noreq))) ((set @default-dest (getenv ("AEMail_Dir")) len (strlen @default-dest) aem-haveenv 1) (if (= "\n" (substr @default-dest (- len 1) 1)) (set @default-dest (substr @default-dest 0 (- len 1))))) (set @default-dest (if (= 2 (exists "AEMail2:" (noreq))) (expandpath "AEMail2:") ((if (= 1 aem-have-AMITCP) (expandpath "AMITCP:bin") (@default-dest)))))) (set aem-oldver "") (if (= 1 (exists "ENV:AEMail_Ver" (noreq))) ((set aem-oldver (getenv ("AEMail_Ver")) len (strlen aem-oldver)) (if (= "\n" (substr aem-oldver (- len 1) 1)) (set aem-oldver (substr aem-oldver 0 (- len 1)))))) (set aem-updateonly 0) (if (= aem-oldver aem-verstr) (if (= 1 aem-haveenv) (set aem-updateonly (askbool (prompt "\n\nYou have previously installed version " aem-verstr " of AEMail. Do you wish to add and or update your " "users only or do a full install?") (help "Since you have already installed this version of " "AEMail you do not have to re-install the program or " "the documentation files unless you are making changes " "to the way they were installed. If you are just " "adding or changing a user, you can bypass the full " "install.") (choices "Update Users Only" "Full Install"))))) (debug "The value of '@default-dest' is " @default-dest) (debug "The value of 'aem-oldver' is " aem-oldver) (debug "The value of 'aem-haveenv' is " aem-haveenv) (debug "The value of 'aem-updateonly' is " aem-updateonly) (debug "The value of 'aem-verstr' is " aem-verstr) (if (= "AEMail" (fileonly @default-dest)) (set @default-dest (pathonly @default-dest))) (debug "The value of '@default-dest' is " @default-dest) (if (= 0 aem-updateonly) (if (= 2 @user-level) (set ;; ;; Sets up where to place AEMail program ;; @default-dest (askdir (prompt "Enter the drawer in which you want AEMail installed\n" "A drawer called AEMail will be created " "if it does not already exist (except if AmiTCP:bin is " "specified)") (help "If you are using AmiTCP, AEMail should be installed in " "'AmiTCP:bin'\n\n" "However, you may install it anywhere you like\n\n" "If it is not 'AmiTCP:bin' a drawer called 'AEMail' " "will be created.\n") (default @default-dest) (newpath))))) (debug "The value of '@default-dest' is " @default-dest) (if (= 1 aem-have-AMITCP) (if (<> @default-dest (expandpath "AMITCP:bin")) (set aem-have-AMITCP 0))) (if (= "AEMail" (fileonly @default-dest)) (set @default-dest (pathonly @default-dest))) (debug "The value of '@default-dest' is " @default-dest) (if (= 0 aem-have-AMITCP) (set @default-dest (tackon @default-dest "AEMail"))) (debug "The value of '@default-dest' is " @default-dest) (if (= 0 (exists @default-dest (noreq))) ((makedir @default-dest (infos)) (onerror ((delete @default-dest (prompt "Deleting AEMail directory") (help "Deleting AEMail directory") (optional "force") (safe) (all) (infos)) (delete "T:AEMfiles" (prompt "Deleting T: AEMail files") (optional "force") (safe) (all) (infos))))) (onerror (delete "T:AEMfiles" (prompt "Deleting T: AEMail files") (optional "force") (safe) (all) (infos)))) (set aem-default-dest @default-dest) (set aem-dft-maildir (if (= 2 (exists aem-assign (noreq))) ((getassign aem-name)) ("")) aem-mail-name (if (= 2 (exists aem-assign (noreq))) (fileonly(getassign aem-name)) ("AEMail_Mail")) ) (debug "aem-dft-maildir = " aem-dft-maildir) (debug "aem-mail-name = " aem-mail-name) ; Use ENV:PAGER program, Multiview, or copy "More" to T: for use (set pager-cmd (if (exists "ENV:PAGER" (noreq)) (getenv "PAGER")) pager-cmd (if pager-cmd pager-cmd (if (= 1 (exists "SYS:Utilities/Multiview" (noreq))) ("SYS:Utilities/Multiview") ((copyfiles (prompt "Copying " (tackon source-dir "c/More") " to T: for use") (source (tackon source-dir "c/More")) (dest "T:") (safe) (optional "nofail")) "T:More")))) (debug "pager command is " pager-cmd) (makedir "T:AEMfiles" (safe)) (makedir "T:AEMfiles/ARexx" (safe)) (copyfiles (prompt "Copying AEMail.readme to T:") (source (tackon source-dir "AEMail.readme")) (dest "T:AEMfiles") (safe) (infos)) (copyfiles (prompt "Copying AEMail Project icon to T:") (source (tackon source-dir "AEMail.inf")) (newname "AEMail.info") (safe) (dest "T:AEMfiles")) (copyfiles (prompt "Copying default AEMail mailcap file to T:") (source (tackon source-dir "mailcap")) (safe) (dest "T:AEMfiles")) (if (= 0 aem-updateonly) ( (copyfiles (prompt "Copying LHA to T:") (source (tackon source-dir "c/LHex")) (safe) (dest "T:")) (copyfiles (prompt "Copying AEMail to " @default-dest) (source (tackon source-dir "AEMail")) (dest @default-dest)) (if (= 1 (exists (tackon source-dir "AEMR") (noreq))) (copyfiles (prompt "Copying Registration program to T:") (source (tackon source-dir "AEMR")) (dest "T:AEMfiles"))) (copyfiles (prompt "copy registration.form to " @default-dest) (source (tackon source-dir "registration.form")) (dest @default-dest) (noposition) (infos)) (if (<> 1 (exists (tackon @default-dest "startnet.miami") (noreq))) (copyfiles (prompt "Copy Miami Start Net script to " @default-dest) (source (tackon source-dir "startnet.miami")) (dest @default-dest))) (if (<> 1 (exists (tackon @default-dest "stopnet.miami") (noreq))) (copyfiles (prompt "Copy Miami Stop Net script to " @default-dest) (source (tackon source-dir "stopnet.miami")) (dest @default-dest))) (set AEM-default-dest @default-dest) (askdisk (prompt "Please insert \""aem-dsk2"\" in any floppy drive.") (help @askdisk-help) (dest aem-dsk2) (assigns)) ; (welcome #welcome) (set #classact-source (cat aem-dsk2 ":")) (debug "The value of '#classact-source' is " #classact-source) ; Only install ClassAct if exec less then 3.5 ; With OS 3.5 ClassAct is part of the system ; You are given the option of not installing ClassAct ; if it is already installed (if (< wb-version version_3_5) ((set aem-installca (askbool (prompt "\nDo you want to install ClassAct?") (help "If you already have ClassAct installed on your " "system you can reply 'NO' to this message.") (choices "Yes" "No"))) (if (= 1 aem-installca) (install-classact)))) (set @default-dest AEM-default-dest) (set doc-files (cat aem-dsk2 ":Documentation.lha") rexx-files (cat aem-dsk2 ":ARexx.lha")) (if (= 1 (exists doc-files (noreq))) ((set doc-files ("\"%s\"" doc-files) rexx-files ("\"%s\"" rexx-files)) (debug "The value of 'doc-files' is " doc-files) (debug "The value of 'rexx-files' is " rexx-files) (message "\n\nSelect PROCEED to decompress the AEMail Documentation and " "ARexx files to RAM\n\n" "Be patient, this will take a while\n\n" "If you are installing from diskette, the decompression " "will take approx 3 minutes\n\n" "From your hard drive, the decompression will take approx 20 seconds") (set aem-lha (run "T:lhex -fwT:AEMfiles x " doc-files " >NIL:" (safe))) (set aem-lha (run "T:lhex -fw=T:AEMfiles/ARexx x " rexx-files " >NIL:" (safe))) (delete "T:lhex" (prompt "Deleting T:lha file") (optional "force") (safe))) ( (copyfiles (prompt "Copying AEMail.guide to T:AEMfiles") (source (tackon source-dir "Documentation/AEMail.guide")) (dest "T:AEMfiles") (safe) (infos)) (copyfiles (prompt "Copying AEMail.doc to T:AEMfiles") (source (tackon source-dir "Documentation/AEMail.doc")) (dest "T:AEMfiles") (safe) (infos)) (copyfiles (prompt "Copying email.txt to T:AEMfiles") (source (tackon source-dir "Documentation/email.txt")) (dest "T:AEMfiles") (safe) (infos)) (copyfiles (prompt "copy ARexx files to T:AEMfiles/ARexx") (source (tackon source-dir "ARexx/")) (dest "T:AEMfiles/ARexx/") (all) (noposition) (safe) (infos)) )) (if (< exec-version version_3_0) (tooltype (dest "T:AEMfiles/AEMail.guide") (setdefaulttool "AmigaGuide")) (tooltype (dest "T:AEMfiles/AEMail.guide") (setdefaulttool "MultiView"))) (set aem-docs-dir-dft (tackon @default-dest "documentation") aem-rexx-dir-dft (tackon @default-dest "ARexx")) (if (< 0 @user-level) (set aem-docs (askoptions (prompt "Select which AEMail documentation files you want copied\n\n") (help @askoptions-help) (choices "AEMail.readme" "AEMail.doc" "AEMail.guide" "email.txt" ) (default 15))) (set aem-docs 15)) (if (= 2 @user-level) (if (<> 0 aem-docs) (set aem-docs-dir (askdir (prompt "Which directory do you want the documentation files " "copied to\n") (help "You may select a different directory than the " "'documentation' sub-directory in your program's " "directory to copy the documentation files to.\n") (newpath) (default aem-docs-dir-dft)))) (set aem-docs-dir aem-docs-dir-dft) ) (if (= 2 @user-level) (set aem-rexx-dir (askdir (prompt "Which directory do you want the ARexx files " "copied to\n") (help "You may select a different directory than the " "'ARexx' sub-directory in your program's " "directory to copy the ARexx files to.\n\n" "One possibility is yto copy them directly into " "the Rexx: directory.") (newpath) (default aem-rexx-dir-dft))) (set aem-rexx-dir aem-rexx-dir-dft) ) (if (<> 2 (exists aem-docs-dir (noreq))) (makedir aem-docs-dir (infos))) (if (<> 2 (exists aem-rexx-dir (noreq))) (makedir aem-rexx-dir (infos))) (if (= 1 (exists (tackon @default-dest "AEMail.readme") (noreq))) (delete (tackon @default-dest "AEMail.readme") (prompt "Deleting old AEMail.readme file") (infos))) (if (= 1 (exists (tackon aem-docs-dir "AEMail.readme") (noreq))) (delete (tackon aem-docs-dir "AEMail.readme") (prompt "Deleting old AEMail.readme file") (infos))) (if (= 1 (exists (tackon @default-dest "AEMail.doc") (noreq))) (delete (tackon @default-dest "AEMail.doc") (prompt "Deleting old AEMail.doc file") (infos))) (if (= 1 (exists (tackon @default-dest "AEMail.guide") (noreq))) (delete (tackon @default-dest "AEMail.guide") (prompt "Deleting old AEMail.guide file") (infos))) (set aem-readtool (if (= pager-cmd "T:More") ("more") (pager-cmd))) (if (<> 0 aem-docs)( (if (BITAND aem-docs 1) ((copyfiles (prompt "Copying AEMail.readme file to " @default-dest) (source "T:AEMfiles/AEMail.readme") (dest @default-dest) (infos)) (tooltype (dest (tackon @default-dest "AEMail.readme")) (noposition) (setdefaulttool aem-readtool)))) (if (BITAND aem-docs 2) ((copyfiles (prompt "Copying AEMail.doc file to " aem-docs-dir) (source "T:AEMfiles/AEMail.doc") (dest aem-docs-dir) (infos)) (tooltype (dest (tackon aem-docs-dir "AEMail.doc")) (noposition) (setdefaulttool "more")))) (if (BITAND aem-docs 4) ((copyfiles (prompt "Copying AEMail.guide file to " aem-docs-dir) (source "T:AEMfiles/AEMail.guide") (dest aem-docs-dir) (infos)) (tooltype (dest (tackon aem-docs-dir "AEMail.guide")) (noposition)))) (if (BITAND aem-docs 8) ((copyfiles (prompt "Copying email.txt file to " aem-docs-dir) (source "T:AEMfiles/email.txt") (dest aem-docs-dir) (infos)) (tooltype (dest (tackon aem-docs-dir "email.txt")) (noposition) (setdefaulttool "more")))) )) (copyfiles (prompt "copy ARexx files to " aem-rexx-dir) (source "T:AEMfiles/ARexx/") (dest aem-rexx-dir) (all) (noposition) (infos)))) (if (= 1 (exists "RAM:.AEMregistration" (noreq))) ((copyfiles (prompt "creating .registration file") (source "RAM:.AEMregistration") (dest @default-dest) (newname ".registration")) (delete "RAM:.AEMregistration" (prompt "Deleting RAM:.AEMregistration") (optional "force") (safe)))) (set aem-modify '') (if (< aem-oldver "2.00") (set aem-nousers 1 aem-startuser 1 aem-usermsg "") ((aemp-get-users) (set aem-modify " or updated" aem-startuser 0 aem-usermsg "\n\nIf you reply with 0 no users will be added or updated." aem-nousers (askbool (prompt "You have previously installed a version of AEMail " "that's 2.00 or above with the users listed below.\n" "\nDo you wish to add, delete, and or update your " "users or accept the ones you have?\n" "\n"aem-username-1 "\n"aem-username-2 "\n"aem-username-3 "\n"aem-username-4 "\n"aem-username-5 "\n"aem-username-6 "\n"aem-username-7 "\n"aem-username-8 "\n"aem-username-9) (help "\n\nSince you have already installed a version of " "AEMail that's 2.00 or above you have established your " "users.\n\nYou do not have to re-do the user installation " "unless you are making changes to the users or adding " "a new one.") (choices "Add/Delete/Update Users" "Accept Current Users"))))) (debug "The value of 'aem-userno' is " aem-userno) (set aem-delete-users 0) (if (= 1 aem-nousers) ((if (<> 0 aem-userno) (set aem-delete-users (askbool (prompt "\nDo you wish to delete any users?") (help "\n\nIf you wish to delete any of your users reply " "Yes to this message\n") (choices "Yes" "No")))) (debug "aem-delete-users is " aem-delete-users) (while (= 1 aem-delete-users) ((aemp-get-users) (set aem-userpick (askchoice (prompt "Select the user you wish to delete") (help "Indicate the user you want deleted") (choices aem-username-1 aem-username-2 aem-username-3 aem-username-4 aem-username-5 aem-username-6 aem-username-7 aem-username-8 aem-username-9))) (select aem-userpick (set aem-iconname-dflt aem-username-1) (set aem-iconname-dflt aem-username-2) (set aem-iconname-dflt aem-username-3) (set aem-iconname-dflt aem-username-4) (set aem-iconname-dflt aem-username-5) (set aem-iconname-dflt aem-username-6) (set aem-iconname-dflt aem-username-7) (set aem-iconname-dflt aem-username-8) (set aem-iconname-dflt aem-username-9)) (iconinfo (prompt "Get Configuration File and Mail Directory") (dest (tackon @default-dest aem-iconname-dflt)) ( gettooltype "CONFIG" "aem-config-del") ( gettooltype "MAIL_DIR" "aem-mail_dir-del")) (delete (tackon @default-dest (cat aem-iconname-dflt ".info")) (confirm) (prompt "Deleting " aem-iconname-dflt".info") (help "Do you want to delete " aem-iconname-dflt".info?")) (set aem-yesno (askbool (prompt aem-iconname-dflt " has a configuration file called " aem-config-del ".\n\nDo you want this file deleted?") (help "Unless you want to use this configuration file again, " "You will want to delete it.") (choices "Yes" "No"))) (if (= 1 aem-yesno) (delete aem-config-del (prompt "Deleting " aem-config-del) (infos))) (set aem-yesno (askbool (prompt aem-iconname-dflt " has a Mail Directory called " aem-mail_dir-del ".\n\nDo you want this directory deleted?") (help "If this mail directory is being used by another user " "you should not delete it.") (choices "Yes" "No"))) (if (= 1 aem-yesno) (delete aem-mail_dir-del (prompt "Deleting " aem-mail_dir-del) (infos) (all))) (set aem-delete-users (askbool (prompt "\nDo you wish to delete another user?") (help "\n\nIf you wish to delete another user reply " "Yes to this message\n") (choices "Yes" "No"))))))) (set aem-maxusers aem-nousers) (if (= aem-nousers 1) (set aem-maxusers (asknumber (prompt "Please enter the number of users that will be added" aem-modify ". Each user will have a different " "email address and a separate " "project icon and configuration file will be created for " "each user." aem-usermsg) (help "You can have up to 10 separate users of AEMail with different " "email addresses. Each user must have their own configuration " "file (which you will be asked for later) and separate project " "icons. Each user may have their own or a common storage area " "for their mail.") (range aem-startuser 10) (default 1)))) (set aem-curuser 1) (set aem-default-editor "") (while (<= aem-curuser aem-maxusers) ( (aemp-get-users) (set continue 0) (while (= continue 0) (set aem-userpick (askchoice (prompt "Select the name of the icon you want this user to have" "\n\nIf you are updating a user, select the name the user " "currently has") (help "Indicate the icon you want to use") (choices "Create new icon" aem-username-1 aem-username-2 aem-username-3 aem-username-4 aem-username-5 aem-username-6 aem-username-7 aem-username-8 aem-username-9))) (select aem-userpick (set aem-iconname-dflt (cat "AEMail_User_"aem-userno)) (set aem-iconname-dflt aem-username-1) (set aem-iconname-dflt aem-username-2) (set aem-iconname-dflt aem-username-3) (set aem-iconname-dflt aem-username-4) (set aem-iconname-dflt aem-username-5) (set aem-iconname-dflt aem-username-6) (set aem-iconname-dflt aem-username-7) (set aem-iconname-dflt aem-username-8) (set aem-iconname-dflt aem-username-9)) ((set aem-iconname (askstring (prompt "\nEnter (confirm) the name of the icon that you want your " "user to have. A project icon will be created with that " "name if it does not already exists." "\n\nYou will be told if an icon with that name already " "exists or not and you will be asked to confirm that that " "name is the one you want.\n\n" "DO NOT PLACE THE .info SUFFIX ON THE NAME") (help "You must use icon names that are unique. Any name may be " "used. If the name currently exists and you want to keep " "it, it is assumed that you are updating an icon from an " "older installation of AEMail.") (default aem-iconname-dflt))) (set aem-iconnameln (strlen aem-iconname)) (debug "aem-iconname is " aem-iconname) (debug "aem-iconnameln is " aem-iconnameln) (if (> aem-iconnameln 5) (set aem-iconpref (substr aem-iconname (- aem-iconnameln 5))) (set aem-iconpref "")) (debug "aem-iconpref is " aem-iconpref) (if (= aem-iconpref ".info") (set aem-iconname (substr aem-iconname 0 (- aem-iconnameln 5)))) (debug "aem-iconname is " aem-iconname) (set aem-iconname-info (cat aem-iconname ".info")) (debug "aem-iconname is " aem-iconname) (debug "aem-iconname-info is " aem-iconname-info) (if (= 1 (exists (tackon @default-dest aem-iconname-info) (noreq))) (set aem-existmsg "does exist" aem-existmsg2 "since a project icon already exists, it will not be created" aem-haveicon 1) (set aem-existmsg "does not exist" aem-existmsg2 "a project icon will be created with that name" aem-haveicon 0)) (set aem-defaulttool "AEMail" aem-config "" aem-mail_dir "" aem-passprotect "" aem-options_1 "" aem-options_2 "" aem-options_3 "" aem-options_4 "" aem-options_5 "" aem-interlace "" aem-username "" aem-password "" aem-from "" aem-replyto "" aem-organization "" aem-realname "" aem-domain "" aem-popserver "" aem-smtpserver "" aem-editor "" aem-startnet "" aem-stopnet "") (if (= "" aem-default-editor) (set aem-default-editor aem-editor)) (set aem-iconpath (tackon @default-dest aem-iconname)) (debug "'aem-iconpath' is " aem-iconpath) (if (= 1 aem-haveicon) ((iconinfo (prompt "Checking icon") (dest aem-iconpath) ( gettooltype "CONFIG" "aem-config") ( gettooltype "MAIL_DIR" "aem-mail_dir") ( gettooltype "INTERLACE" "aem-interlace") ( gettooltype "USERID" "aem-username") ( gettooltype "PASSWRD" "aem-password") ( gettooltype "REALNAME" "aem-realname") ( gettooltype "FROM" "aem-from") ( gettooltype "REPLYTO" "aem-replyto") ( gettooltype "ORGANIZATION" "aem-organization") ( gettooltype "DOMAIN" "aem-domain") ( gettooltype "POP_SERVER" "aem-popserver") ( gettooltype "SMTP_SERVER" "aem-smtpserver") ( gettooltype "EDITOR" "aem-editor") ( gettooltype "STARTNET" "aem-startnet") ( gettooltype "STOPNET" "aem-stopnet") ( gettooltype "DELETEMAIL" "aem-options_1") ( gettooltype "STRIPDUPS" "aem-options_2") ( gettooltype "FULLHEADER" "aem-options_3") ( gettooltype "HDRINREPLY" "aem-options_4") ( gettooltype "AUTOCONNECT" "aem-options_5") ( gettooltype "PASSPROTECT" "aem-passprotect") ( getdefaulttool "aem-defaulttool")))) (debug "'aem-defaulttool' is " aem-defaulttool) (debug "'aem-config' is " aem-config) (debug "'aem-mail_dir' is " aem-mail_dir) (if (<> "" (pathonly aem-config)) (set aem-config (tackon @default-dest aem-config))) (debug "config with path is " aem-config) (set aem-badicon 0) (if (= 1 aem-haveicon) (if (<> "AEMail" aem-iconname) (if (<> "AEMail" aem-defaulttool) (set aem-badicon 1)) (if (= "JUNK" aem-defaulttool) (set aem-haveicon 0)))) (if (= 1 aem-badicon) (message "\n\nAn icon for \""aem-iconname"\" does exist but it is " "not a Project icon for AEMail. If you picked an icon " "name that is used for another program you can not use " "it for AEMail.\n\n" "Selecting 'Proceed' will ask you to re-enter the icon " "name.") (set continue (askbool (prompt "\n\nAn icon for \""aem-iconname"\" "aem-existmsg".\n\n" "Replying 'Yes' accepts the icon name and "aem-existmsg2 ".\n\nReplying 'No' will ask you to reenter " "the icon name.") (help "A 'no' response will allow you to enter a new " "icon name. If it exists, it must be a Project icon " "for AEMail.") (default 1)))) )) (if (= 0 aem-haveicon) (copyfiles (prompt "Copying AEMail.info to " @default-dest) (source "T:AEMfiles/AEMail.info") (newname aem-iconname-info) (dest @default-dest))) (tooltype (prompt "Setting Project icon default tool") (dest aem-iconpath) (setposition -1 -1) (setdefaulttool "AEMail")) (set aem-changecnfg 0) (set aem-config-dflt (cat aem-iconname ".cnfg")) (if (= 0 aem-updateonly) (if (= 1 aem-curuser) (if (= "" aem-config) (if (= 1 (exists "s:aemail.cnfg" (noreq))) (if (= 2 @user-level) ((set aem-changecnfg (askbool (prompt "You have an existing 'aemail.cnfg' file in " "the s: directory. Do you want to copy " "this file to another location?\n\n" "If you copy it to another location, " "you can also change it's name.") (help "The older versions of AEMail set up " "your default configuration for the main " "user at 's:aemail.cnfg'. You no longer " "have to use the s: directory or use the " "'aemail.cnfg' name for your main user.\n\n" "However, if you plan to call AEMail from " "the shell you will need a 's:aemail.cnfg' " "file") (choices "Copy" "Don't Copy"))) (if (= 0 aem-changecnfg) (set aem-config "s:aemail.cnfg"))) (set aem-config "s:aemail.cnfg")))))) (debug "aem-config = " aem-config) (if (= 1 aem-changecnfg) ((set continue 0) (while (= continue 0) ((set aem-config (askfile (prompt "Enter the new name and location of your 's:aemail.cnfg' " "file.") (help "You indicated you wanted to change the name and/or " "location of your 's:aemail.cnfg' file. Enter the " "new name/location for the configuration file. It will " "be copied and re-named and set up as the configuration " "file for your main user") (default (tackon @default-dest aem-config-dflt)))) (if (= "AEMail" (fileonly aem-config)) (message "\n\n\"AEMail\" can not be used as a configuration " "file name!\n\nSelecting 'Proceed' will ask you to " "re-enter the configuration file name") (set continue 1)))) (copyfiles (prompt "copying and renaming 's:aemail.cnfg' file.") (source "s:aemail.cnfg") (dest (pathonly aem-config)) (newname (fileonly aem-config))))) (set continue 0) (if (= "" aem-config) (while (= continue 0) ((set aem-config (askfile (prompt "Enter the name of your configuration file for " "the " aem-iconname " user.") (help "You can enter a non-existant file name. AEMail " "will create this file when it is first loaded.") (default (tackon @default-dest aem-config-dflt)))) (if (= "AEMail" (fileonly aem-config)) (message "\n\n\"AEMail\" can not be used as a configuration " "file name!\n\nSelecting 'Proceed' will ask you to " "re-enter the configuration file name") (if (= 0 (exists aem-config)) (set continue 1) (set continue (askbool (prompt "The configuration file you have chosen " "("aem-config") " "already exists. Remember, each " "configuration file for each user must " "be unique\n\n" "It is possible that the file you picked " "is a legitimate configuration file for " "this user. Select 'Proceed' if you want " "to continue with this file or 'Ask " "again' if you want to enter another " "configuration file name.") (help "Each configuration file for each user " "must be unique. You may have chosen a " "configuration file that was previously " "set up for this user. If so, you can " "ignore this warning and select 'proceed'") (choices "Proceed" "Ask again")))))))) (if (= "" aem-mail_dir) (if (<> "" aem-dft-maildir) ((set continue (askbool (prompt "You have an assignment of '" aem-dft-maildir "' as your mail directory (AEMail: assign). " "Do you want to accept this as your mail " "directory for this user (\""aem-iconname"\")?\n\n" "If you reply 'No' you will be asked for the " "name and path of the mail directory for this " "user. The directory will be created if it does " "not exist.") (help "All versions of AEMail prior to 2.00 used the " "AEMail: assign statement to assign the mail " "directory to the primary user. This changed " "with version 2.00. The directory is now always " "identified in the MAIL_DIR= tooltype\n\n" "You are upgrading from a prior AEMail version " "and have an AEMail: assign statement.\n\n " "More than one user can use the same mail " "directory."))) (if (= 1 continue) (set aem-mail_dir aem-dft-maildir)))) ((set aem-yesno (askbool (prompt "This user (\""aem-iconname "\") has a mail " "directory called:\n\n" aem-mail_dir "\n\nDo you want to continue with " "that directory or change to another?" "\n\nWARNING: If the directory you change to does " "not exist, it will be created empty.") (help "If you reply 'Change Mail Directory' you will be " "prompted for the new name. If the new directory " "does not already exist, it will be created empty.") (choices "Keep Mail Directory" "Change Mail Directory"))) (if (= 0 aem-yesno) (set aem-dft-maildir aem-mail_dir aem-mail_dir "")))) (if (= "" aem-mail_dir) ((if (= "" aem-dft-maildir) (set aem-dft-maildir (tackon @default-dest aem-mail-name))) (set aem-mail_dir (askdir (prompt "Enter the name of the mail directory you want to " "use for this user (\"" aem-iconname "\"). A " "directory will be created if it does not exist.") (help "You can select an existing directory or create a new " "one. More than one user can use the same mail " "directory.") (default aem-dft-maildir) (newpath))) (if (<> 2 (exists aem-mail_dir (noreq))) (makedir aem-mail_dir (prompt "making directory for mail") (infos))))) (if (= "" aem-passprotect) (set aempassprotect "NO")) (if (= "YES" aem-passprotect) (set aem-passprotectmsg "") (set aem-passprotectmsg "NOT ")) (set aem-yesno (askbool (prompt "The mail file for this user (\""aem-iconname"\") is " aem-passprotectmsg "currently password protected.\n\n" "Do you want to password protect the mail file " "for this user.\n\n" "The password that is used is the same password " "that is used to access your pop server") (help "If you reply 'Yes', that password that you used " "for the configuration will be required before " "your mail file can be accessed. If you do not " "set this password when you are asked to " "configure AEMail later, you can set the " "password when you first load this user's " "configuration.\n\n" "You can also remove pass protection by replying 'No'".))) (if (= 1 aem-yesno) (set aem-passprotect "YES") (set aem-passprotect "NO")) (tooltype (prompt "Setting CONFIG, MAIL_DIR, PASSPROTECT. and INTERLACE tool types") (dest aem-iconpath) (settooltype "MAIL_DIR" aem-mail_dir) (if (<> "" aem-passprotect) (settooltype "PASSPROTECT" aem-passprotect)) (settooltype "CONFIG" aem-config)) (set aem-configure 0 aem-needconfig 0 aem-options 3 aem-need-AREXX 0 aem-needstrtarexx 0 aem-needstoparexx 0) (if (= 1 aem-have-MIAMI) (set aem-need-AREXX 1 aem-needstrtarexx 1 aem-startnet (tackon aem-default-dest "startnet.miami") aem-needstoparexx 1 aem-stopnet (tackon aem-default-dest "stopnet.miami")) (if (= 1 aem-have-AMITCP) (set aem-need-AREXX 1 aem-startnet (tackon aem-default-dest "startnet") aem-stopnet (tackon aem-default-dest "stopnet")))) (if (= 1 aem-Termite) ((set aem-from (getenv "ttcp-email-address") aem-tccp-len (strlen aem-from) aem-tccp-cnt 0) (while (<> aem-tccp-cnt aem-tccp-len) (if (= "@" (substr aem-from aem-tccp-cnt 1)) (set aem-username (substr aem-from 0 aem-tccp-cnt) aem-tccp-cnt (+ 1 aem-tccp-cnt) aem-domain (substr aem-from aem-tccp-cnt)) (set aem-tccp-cnt (+ 1 aem-tccp-cnt)))))) (if (<> 1 (exists aem-config (noreq))) (set aem-configure (askbool (prompt "\nYou can configure AEMail now or you can wait until " "AEMail is first loaded. Do you want to configure now?\n") (help "AEMail is configured either by Tool Types in it's icon " "or by a configuration screen which is automatically " "called up when you first execute AEMail if the Tool " "Type parameters were not given. By replying " "'Yes, Configure Now' you will be setting the Tool Type " "parameters\n") (choices "No, Configure Later" "Yes, Configure Now")) ) (set aem-configure (askbool (prompt "\nYou have an existing configuration file called:\n\n" aem-config "\n\n" "Do you want to use it or do you want to re-configure " "AEMail now?\n") (help "By replying 'Yes, Re-configure Now' " "you will be renaming the current configuration file " "to:\n\n" (cat aem-config ".old") "\n\n" "and resetting the configuration by tool type " "parameters\n") (choices "Use existing Config File" "Yes, Re-Configure Now"))) ) (if (= 0 aem-configure) ((delete (cat aem-config ".old") (prompt "deleting any previous old configuration file")) (rename aem-config (cat aem-config ".old") (prompt "Renaming old configuration file")) (if (= "" aem-domain) ((set aem-domain (getenv "DOMAIN")) (if (= "" aem-domain) (set aem-domain (getenv "DOMAINNAME"))) (if (= "." (substr aem-domain 0 1)) (set aem-domain (substr aem-domain 1))))) (if (= "" aem-username) (set aem-username (getenv "USER"))) (if (= "" aem-realname) (set aem-realname (getenv "REALNAME"))) (Set continue 0) (message "\n\nWe need to know something about your Internet provider and what " "the POP and SMTP Servers on your provider's machine are called. " "Also, when you signed up for your InterNet service you chose or " "were given a login name and password for your POP server. " "You will be prompted for these names now. If you have any " "questions as to what parameters to use, select 'help' " "or consult information provided by your Internet provider.") (while (= continue 0) (set aem-domain (askstring (prompt "\nFor user \""aem-iconname"\":\n" "\nEnter the domain name for your InterNet Provider " "required for getting mail\n\n") (help "The domain name is usually the part of your e-mail address " "that follows the '@' sign. If something else is required " "by your Internet Provider, provide it here.\n\n" "As an example, my email " "address is\n\njzachar@calweb.com\n\nThe domain name " "for my Internet provider is therefor 'calweb.com'.") (default aem-domain)) aem-popserver (if (= "" aem-domain) ("") (if (= "" aem-popserver) (cat "pop." aem-domain) (aem-popserver))) aem-smtpserver (if (= "" aem-domain) ("") (if (= "" aem-smtpserver) (cat "smtp." aem-domain) (aem-smtpserver))) aem-popserver (askstring (prompt "\nFor user \""aem-iconname"\":\n" "\nEnter the name of your POP Server\n\n") (help "POP stands for 'Post Office Protocol' and your " "POP Server is the name assigned to the host " "computer that holds your Internet mail. Normally " "this would be 'pop.' or 'mail.' prepended to your " "Domain name.\n\n" "Consult your Internet provider if the POP Server " "is called something other than '"aem-popserver "' enter that name in this string requester ") (default aem-popserver)) aem-smtpserver (askstring (prompt "\nFor user \""aem-iconname"\":\n" "\nEnter the name of your SMTP Server\n") (help "SMTP stands for 'Simple Mail Transfer Protocol' and " "your SMTP server is the name assigned to the host " "computer that sends your Internet mail. Normally " "this would be 'smtp.' or 'mail.' prepended to your " "Domain name.\n\n" "Consult your Internet provider if the SMTP Server " "is called something other than '"aem-smtpserver "' enter that name in this string requester ") (default aem-smtpserver)) aem-username (askstring (prompt "\nFor user \""aem-iconname"\":\n" "\nEnter the login name you have been assigned by your " "InterNet Provider for logging into your POP Server\n\n" "NOTE: Your provider may have allowed you to chose this login " "name.\n") (help "You must give your login name. The login name consists " "of lowercase letters a-z and numbers. Its recommended maximum " "length is 8 characters.\n\n" "Examples of acceptable login names are 'jzachar' and " "'an345'.") (default aem-username)) aem-password (askstring (prompt "\nFor user \""aem-iconname"\":\n" "\nEnter the password you need to log into your " "POP Server.\n\n" "NOTE: Your provider may have assigned you your password" " or you were allowed to chose your own.\n") (help "This may be the same password that you use to log " "into your Internet Provider. Consult your Internet " "Provider (ISP) if it is different.") (default aem-password)) continue (askbool (prompt "Is the following information correct for user " aem-iconname "?\n\n" "SMTP Domain name: " aem-domain "\n" "POP Server Name: " aem-popserver "\n" "SMTP Server Name: " aem-smtpserver "\n" "Login name: " aem-username "\n" "Password: " aem-password "\n\n") (help "If you have made a mistake on any of the entries you " "can select \"No, Enter Again\" or, if eveything is all right, " "select \"Yes, Continue\"\n") (choices "Yes, Continue" "No, Enter Again")) ) ) (Set continue 0) (set aem-from ("%s@%s" aem-username aem-domain)) (message "\n\nWhen you signed up for your InterNet service you were " "also assigned an email address to receive mail with. You will " "be prompted for this now.") (while (= continue 0) (set aem-from (askstring (prompt "\nFor user \""aem-iconname"\":\n" "\nEnter your full email address (user@domain):\n") (help "You must give your email address. The email address " "is what you are known by on the Internet and consists of " "a username and domain name separated by an '@' sign.\n\n" "NOTE: The username and domain name could be the same " "as the POP login name and SMTP Domain Name you were " "prompted for before, or they MAY NOT be - consult your " "ISP.") (default aem-from)) continue (askbool (prompt "\n\nIs the following information correct?\n\n" "Email Address: " aem-from "\n\n") (help "If you have made a mistake with this entry you " "can select \"No, Enter Again\" or, if eveything is all right, " "select \"Yes, Continue\"\n") (choices "Yes, Continue" "No, Enter Again")) ) ) (Set continue 0) (message "\n\nThere is certain identity information that you " "may give to further identify you on the Internet. These include " "your real name, a possible reply address, and the organization " "that you belong to. You will be prompted for these now. These are " "all optional parameters and you can leave them blank if you wish.") (set aem-replyto aem-from) (while (= continue 0) (set aem-realname (askstring (prompt "\nFor user \""aem-iconname"\":" "\n\nEnter the real name for "aem-from ":\n") (help "The real name can contain any characters except " "comma (','), colon (':') or bar ('|').") (default aem-realname)) aem-replyto (askstring (prompt "\nFor user \""aem-iconname"\":" "\n\nEnter the email address you want replies " "sent to\n\n") (help "This may be the same as your regular email address. " "This address is optional and can be left blank.") (default aem-replyto)) aem-organization (askstring (prompt "\nFor user \""aem-iconname"\":\n" "\nEnter the organization you belong to (optional):\n") (help "The organization is optional and can be left blank.") (default aem-organization)) continue (askbool (prompt "\n\nIs the following information correct?\n\n" "Real name: " aem-realname "\n" "Reply To Address: " aem-replyto "\n" "Organization: " aem-organization "\n\n") (help "If you have made a mistake on any of the entries you " "can select \"No, Enter Again\" or, if eveything is all right, " "select \"Yes, Continue\"\n") (choices "Yes, Continue" "No, Enter Again")) ) ) (message "\n\nAEMail requires an editor to prepare messages to send. " "You can use the standard AmigaDOS editor, ed, or any " "editor of your choice.") (set aem-edonwb-msg "" aem-default-ed aem-default-editor continue 0) (if (<> "" aem-default-editor) (if (= "WB;" (substr aem-default-editor 0 3)) (set aem-edonwb-msg "Opening on the Workbench" aem-default-ed (substr aem-default-editor 3)))) (if (<> "" aem-default-ed) (set continue (askbool (prompt "You previously specified " aem-default-ed aem-edonwb-msg " as your editor. Do you want " "to use this editor for user \"" aem-iconname "\"?")))) (if (= 1 continue) (set aem-editor aem-default-editor) ((set aem-editor (askfile (prompt "For user \""aem-iconname"\":\n" "Enter the Editor you want to use with AEMail.") (help "AEMail requires an editor to prepare messages to " "send. After your select the editor from the file " "requester you will be asked to enter parameter " "information required by your editor.\n") (default "SYS:c/ed")) aem-editor (askstring (prompt "\nFor user \""aem-iconname"\":\n\n" "Add the parameters required for your editor.\n\n" "You must always add '%s' to specify where your " "mail file name goes.\n") (help "You will need to add parmeters that may be " "required by your editor. One required parameter " "required by ALL editors is '%s' to specify where " "the mail file name goes.\n") (default (cat aem-editor " %s"))) aem-edonwb (askbool (prompt "\nFor user \""aem-iconname"\":\n\n" "Does your editor have to open on the Workbench?" (help "Some editors, like Commodore's ED will always open " "on the Workbench. Others will open on their own " "screen. If your editor opens on the Workbench, " "you must reply 'YES' to this request.\n"))) aem-editor (if (= 1 aem-edonwb) (cat "WB;" aem-editor) ("%s" aem-editor)) ))) (set aem-neednetscrpts (askbool (prompt "\nFor user \""aem-iconname"\":\n\n" "Do you want Start Net and/or Stop Net scripts?\n") (help "If you reply 'Yes', you will be prompted for your " "Start Net and Stop Net scripts.\n" "If you reply 'No', AEMail will run without any " "Start Net or Stop Net scripts.\n"))) (if (= 1 aem-neednetscrpts) (if (<> "" aem-startnet) (set aem-neednetscrpts (askbool (prompt "Are the StartNet and/or StopNet scripts you want to " "use for this user (\""aem-iconname"\") the following:\n\n" "Start Net: " aem-startnet "\n" "Stop Net: " aem-stopnet "\n") (help "Only reply 'NO' if your Start Net and Stop Net scripts " "are not the scripts listed listed below:\n\n" aem-startnet "\n" aem-stopnet "\n")))) (set aem-needstrtarexx 0 aem-startnet "" aem-needstoparexx 0 aem-stopnet "")) (if (= 0 aem-neednetscrpts) ((set need-startnet (askbool (prompt "\nFor user \""aem-iconname"\":\n\n" "Do you need a Start Net script?") (help "If you reply 'No' AEMail will run without a Start Net " "script\n\nIf you reply 'YES' you will be prompted " "for the location of your Start Net script"))) (if (= 1 need-startnet) (set aem-startnet (askfile (prompt "Enter the Start Net script you want to use " "with AEMail.") (help "If you are NOT using the standard AmiTCP startnet " "script in AmiTCP:bin or the standard Miami script " "you will have to provide the " "script you are using.\n") (default (tackon aem-default-dest "startnet"))) aem-needstrtarexx (askbool (prompt "Is this an AmigaDOS script or an AREXX script?") (help "The standard AmiTCP Start Net script is an AmigaDos " "script that calls AREXX\n\n " "The standard Miami script is an AREXX script " "AND must be called from AREXX\n") (choices "AREXX script" "AmigaDOS script"))) (set aem-startnet "" aem-needstrtarexx 0)) (set need-stopnet (askbool (prompt "\nFor user \""aem-iconname"\":\n\n" "Do you need a Stop Net script?") (help "If you reply 'No' AEMail will run without a Stop Net " "script\n\nIf you reply 'YES' you will be prompted " "for the location of your Stop Net script"))) (if (= 1 need-stopnet) (set aem-stopnet (askfile (prompt "Enter the Stop Net script you want to use with AEMail.") (help "If you are NOT using the standard AmiTCP stopnet " "script in AmiTCP:bin or the standard Miami script " "you will have to provide the " "script you are using.\n") (default (tackon aem-default-dest "stopnet"))) aem-needstoparexx (askbool (prompt "Is this an AmigaDOS script or an AREXX script?") (help "The standard AmiTCP Stop Net script is an AmigaDos " "script that calls AREXX\n\n " "The standard Miami script is an AREXX script " "AND must be called from AREXX\n") (choices "AREXX script" "AmigaDOS script"))) (set aem-stopnet "" aem-needstoparexx 0)))) (set aem-options (askoptions (prompt "Select those AEMail options you want AEMail to open with\n\n") (help @askoptions-help) (choices "Delete Mail from Server" "Strip Duplicate Messages" "Display Full Header" "Include Header in Reply" "Automatic Connection at Startup" ) (default 3)) ))) (if (= 1 aem-needstrtarexx) (set aem-startnet (cat "rx " aem-startnet))) (if (= 1 aem-needstoparexx) (set aem-stopnet (cat "rx " aem-stopnet))) (debug "'aem-username' is " aem-username) (debug "'aem-realname' is " aem-realname) (debug "'aem-replyto' is " aem-replyto) (tooltype (prompt "Setting AEMail Tool Types") (dest aem-iconpath) (if (<> "" aem-username) (settooltype "USERID" aem-username)) (if (<> "" aem-password) (settooltype "PASSWRD" aem-password)) (if (<> "" aem-realname) (settooltype "REALNAME" aem-realname)) (if (<> "" aem-from) (settooltype "FROM" aem-from)) (if (<> "" aem-replyto) (settooltype "REPLYTO" aem-replyto)) (if (<> "" aem-organization) (settooltype "ORGANIZATION" aem-organization)) (if (<> "" aem-domain) (settooltype "DOMAIN" aem-domain)) (if (<> "" aem-popserver) (settooltype "POP_SERVER" aem-popserver)) (if (<> "" aem-smtpserver) (settooltype "SMTP_SERVER" aem-smtpserver)) (if (<> "" aem-editor) (settooltype "EDITOR" aem-editor)) (if (<> "" aem-startnet) (settooltype "STARTNET" aem-startnet)) (if (<> "" aem-stopnet) (settooltype "STOPNET" aem-stopnet)) (if (BITAND aem-options 1) (settooltype "DELETEMAIL" "YES")) (if (BITAND aem-options 2) (settooltype "STRIPDUPS" "YES")) (if (BITAND aem-options 4) (settooltype "FULLHEADER" "YES")) (if (BITAND aem-options 8) (settooltype "HDRINREPLY" "YES")) (if (BITAND aem-options 16) (settooltype "AUTOCONNECT" "YES")) ) (set aem-mailcapdir "T:AEMfiles" aem-existmailcap 0 aem-keepmailcap 0) (if (= "" aem-rexx-dir) (set aem-rexx-dir (if (= 2 (exists (tackon @default-dest "ARexx"))) (tackon @default-dest "ARexx") (@default-dest)))) (if (= 1 (exists (tackon aem-mail_dir "mailcap"))) ((set aem-keepmailcap 1) (if (= 2 @user-level) (set aem-keepmailcap (askbool (prompt "There is an existing mailcap file in the '" aem-mail_dir "' used by this user (\""aem-iconname "\").\n\n" "Do you wish to keep this mailcap or substitute " "another?") (help "If you select 'Keep Existing', the installation " "script will not write over your existing mailcap " "file.\n\n" "Select 'Substitute Another' if you want to select " "another mailcap including the special mailcap for " "displaying HTML in your ARexx Drawer, or if you " "want to use the default mailcap that comes with " "the installation.") (choices "Keep Existing" "Substitute Another")))))) (if (= 0 aem-keepmailcap) (if (= 2 @user-level) (set aem-existmailcap (askbool (prompt "For user \""aem-iconname"\":\n" "\nDo you want to use an existing mailcap file used by " "ANOTHER program or the special mailcap file for display " "HTML documents in the ARexx directory?\n\nIf you want to " "use the default mailcap file without the HTML display " "that comes with AEMail, reply 'NO' to this message.") (help "AEMail can run with a mailcap file created for another " "program. If you reply 'YES' to this message you will " "be prompted for the directory containing your mailcap " "file. That also applies to the special mailcap file " "in the ARexx drawer. The mailcap file you pick will " "be copied to your mail drawer for this user."))))) (set continue 0) (if (= 1 aem-existmailcap) (while (= 0 continue) ((set continue 1) (set aem-mailcapdir (askdir (prompt "Enter the drawer that contains your mailcap file\n\n" "If you use the special mailcap file for HTML display " "it must be in the ARexx directory in " @default-dest " along with the 'html.aem' ARexx script for it to " "properly work.") (help "AEMail can run with a mailcap file created for another " "program or the special mailcap in you ARexx directory. " "Enter the directory that contains the mailcap " "file that you want and it will be copied to your mail " "directory.") (default aem-rexx-dir) (newpath))) (if (<> 1 (exists (tackon aem-mailcapdir "mailcap")(noreq))) ((set continue (askbool (Prompt "A mailcap file does not exist in the directory you " "have specified. Continuing will result in no mailcap " "file being copied to your mail directory.") (Help "If you reply 'Try Again' you will be asked for " "the mailcap drawer again. Selecting 'Continue' will " "mean that no mailcap file will be copied to your " "mail directory. If an existing mailcap file was in " "your mail directory, it will remain. If not, you " "have to create the mailcap file with the AEMail " "'Viewer' page of the 'Configuration' screen or " "run the installation script again to update this " "user.") (choices "Continue" "Try Again"))) (if (= 1 continue) (set aem-keepmailcap 1))))))) (if (= 0 aem-keepmailcap) (if (= 0 aem-existmailcap) (if (< exec-version version_3_0) ((message "You are running under AmigaDos 2.1 and have not " "specified an existing mailcap file. You will " "have to build your mailcap file with the 'Viewer' " "page of AEMail's 'Configuration' screen which can be " "reached by selecting the 'Configuration/Edit' menu " "item under the 'Project' menu in AEMail.\n\n" "You can not use the default mailcap that comes with " "AEMail.") (set aem-keepmailcap 1))))) (if (= 0 aem-keepmailcap) (copyfiles (prompt "Copying mailcap to " aem-mail_dir) (source (tackon aem-mailcapdir "mailcap")) (dest aem-mail_dir))) (set aem-curuser (+ 1 aem-curuser)) (debug "aem-curuser is " aem-curuser) )) ; (exit) (textfile (prompt "Creating ENV:AEMail_Dir") (help "Creating ENV:AEMail_Dir") (dest "ENV:AEMail_Dir") (append @default-dest)) (textfile (prompt "Creating ENVARC:AEMail_Dir") (help "Creating ENVARC:AEMail_Dir") (dest "ENVARC:AEMail_Dir") (append @default-dest)) (textfile (prompt "Creating ENV:AEMail_Ver") (help "Creating ENV:AEMail_Ver") (dest "ENV:AEMail_Ver") (append aem-verstr)) (textfile (prompt "Creating ENVARC:AEMail_Ver") (help "Creating ENVARC:AEMail_Ver") (dest "ENVARC:AEMail_Ver") (append aem-verstr)) (startup aem-name (prompt "Adding AEMAIL2 assign to S:User-Startup") (help "An ASSIGN statement for AEMAIL2 will now be added to the S:User-Startup") ; (command ("ASSIGN %s \"%s\"\n" aem-assign aem-mail_dir)) (command ("ASSIGN AEMAIL2: \"%s\"\n" aem-default-dest)) (command ("ASSIGN C: sys:REXXC ADD"))) ; (makeassign aem-name aem-mail_dir) (makeassign "AEMAIL2" @default-dest) (makeassign aem-dsk1) (makeassign aem-dsk2) (message "\n\nThe installation of AEMail is now complete. You can execute AEMail " "now by double clicking on one of the project icons without rebooting your " "system. Please read the AEMail.Readme file before executing AEMail.") (if (= 0 aem-updateonly) (set AEM-End (run pager-cmd " T:AEMfiles/AEMail.readme" (safe)))) (delete "T:AEMfiles" (prompt "Deleting T: AEMail files") (optional "force") (safe) (infos) (all)) (exit)