home *** CD-ROM | disk | FTP | other *** search
- ; CD Answer Installation Script - Generic jdk
- ; <<CDA>> Jun 1 1993;3.2
-
- ; single/multiple disk version
- ;
- ; To customize this install script:
- ; 1. Put the product name (1-8 characters) in a file called
- ; 'PRODNAME'. There should be no carriage return/line feed at
- ; the end of the name- the file should contain just the characters
- ; of the name.
- ; 2. Put the application name (CD Author 4 character project identifier)
- ; in a file called 'APPLNAME'. Again, no other chars should be
- ; the file. Multiple applications are formed by adding a space,
- ; then another application identifier
- ; 3. Put the start-up message in a file called PRODSCRN.<language>
- ; There should not be more than 10 lines.
- ;
- ; The first disk must contain the \INSTALL directory.
- ; This contains the general system files for the install
- ; process and may be repeated on disk #2, etc.
- ; The application specific files are kept in a directory
- ; named 'DISK1'. If additional disks are required, create
- ; an (empty) file on the current disk named '\MORE' and
- ; put the overflow files in a directory named \DISK2 (3, 4, ...).
-
- BREAK abort
-
- ; install disk
- PARSE_PATH <$ProgDir>
- SET insdrive = <$Drive>
- SET ins = <insdrive>\INSTALL
- SET curdisk = 1
- GOSUB need_disk
-
- ; here are some defaults:
-
- ;TFPL 8-6-93
- ;CONFIG Colors = 0 2 0 30 0 30 0 30 0 112 0 143 0 79 0 79 0 48 0 15 0 30 0 79 0 143 1 30
- ;CONFIG ColorSet = 55
- ;TFPL
-
- ; default destination drive
- PARSE_PATH <$CurDir>
- SET def_dest = C:\
- IF NOT "<$Drive>"=="<insdrive>" DO SET def_def = <$Drive>
-
- ; default CD-ROM interface (FS_HSGEN {High Sierra} or FS_ISGEN {ISO})
- SET def_cdtype = High Sierra
- SET def_driver = FS_HSGEN
- IF EXISTS <insdrive>\INSTALL\<def_driver>.* GOTO ok_driver
- SET def_cdtype = ISO
- SET def_driver = FS_ISGEN
- :ok_driver
-
- ; language
- SET def_lang = <$Language>
-
- ; application name(s) (4 char ident(s) on CD-ROM)
- READFILE names = <ins>\APPLNAME.
-
- ; product name (application name for batch file, subdirectory name)
- READFILE prod = <ins>\PRODNAME.
-
- ; default dest drive and directory
- PARSE_PATH <def_dest><prod>.CD
- SET dstdrive = <$Drive>
- SET path = <$Dir>
- CD <dstdrive>\
-
- ; read and display Application Installation Screen
- IF NOT EXISTS <insdrive>\INSTALL\PRODSCRN.<def_lang> GOTO no_banner
- READFILE screen = <insdrive>\INSTALL\PRODSCRN.<def_lang>
- GOTO show_banner
- :no_banner
- SET screen =
- ---- Istallazione di CD Answer per:\n\n
- ---- <prod>\n\n
- ---- Applicazione(i): <names>
- :show_banner
- CLEAR
- TEXT <screen>
- SET screen =
- WAIT
-
- GOTO okdir
- :getdir
- CLEAR
- TEXT \nErrore -\n\n
- ---- Il path "<dstdrive><path>" non è legale!\n
- ----Per istallare il programma, ci vuole una unità come un
- ---- sottodirettorio valido.
- WAIT
- :okdir
- CLEAR
- TEXT La software di ricupero di dati deve esser istallata in un disco
- ---- duro o in un disco flessibile formato. I valori standard sono unità <dstdrive>\n
- ----(di solito il disco duro), e un sottodirettorio chiamato <path>.\n
- ----Per usare questi valori, premere due volte la tastiera ┘ (Invio). Per\n
- ----cambiarli, scrivere il nome della unità o del sottodirettorio dopo\n
- ----l'avviso corrispondente. Quindi premere ┘ (Invio).
-
- INPUT 6,8,5 dstdrive = Istallare nell'unità ?
- INPUT 6,10,40 path = Istallare nel direttorio ?
- SET dest = <dstdrive><path>
- SET confile = <ins>\_DW_.CFG
-
- IF "<dstdrive>"=="" GOTO getdir
- IF "<path>"=="\" GOTO getdir
- IF "<path>"=="" GOTO getdir
- IF NOT DIREXISTS <dstdrive>\ GOTO getdir
-
- CD <dstdrive>\
-
- IF NOT DIREXISTS <dest> GOTO nopath
- IF NOT EXISTS <dest>\DW.EXE GOTO nopath
- CLEAR
- TEXT Il direttorio "<dest>" già esiste.
- NEWMENU 1, 3, 68
- ;TFPL -8-6-93
- MENU Installare il software e solo l'interfaccia italiana
- MENU INSTALLARE il software e l'interfaccia per tutte le lingue
- ;TFPL
- MENU Cancellare la versione vecchia;non installare il software nuovo
- MENU Cambiare la configurazione;non copiare il software
- MENU Interrompere l'installazione senza fare nessun cambio
- ENDCHOICES
-
- ;TFPL -8-6-93
- CHOICE 1
- CLEAR
- TEXT Effacement du contenu antérieur de <dest>...
- FOREACH name = <names>
- DEL <dest>\<name>*.*
- NEXT
- DEL <dest>\FS_*.DRV
- DEL <dest>\SC_*.DRV
- DEL <dest>\PR_*.DRV
- DEL <dest>\GR_*.DRV
- DEL <dest>\_DW_*.*
- DEL <dest>\ADL_MSGS.*
- DEL <dest>\DW.EXE
- DEL <dest>\UPDATE.EXE
- SET ch = 2
- GOTO okpath
-
- ;TFPL
-
- CHOICE 2
- CLEAR
- TEXT Cancellando il contenuto anteriore di <dest>...
- FOREACH name = <names>
- DEL <dest>\<name>*.*
- NEXT
- DEL <dest>\FS_*.DRV
- DEL <dest>\SC_*.DRV
- DEL <dest>\PR_*.DRV
- DEL <dest>\GR_*.DRV
- DEL <dest>\_DW_*.*
- DEL <dest>\ADL_MSGS.*
- DEL <dest>\DW.EXE
- DEL <dest>\UPDATE.EXE
- SET ch = 3
- GOTO okpath
-
- CHOICE 3
- CLEAR
- TEXT Cancellando <dest> direttorio...
- FOREACH name = <names>
- DEL <dest>\<name>*.*
- NEXT
- DEL <dest>\FS_*.DRV
- DEL <dest>\SC_*.DRV
- DEL <dest>\PR_*.DRV
- DEL <dest>\GR_*.DRV
- DEL <dest>\_DW_*.*
- DEL <dest>\ADL_MSGS.*
- DEL <dest>\DW.EXE
- DEL <dest>\UPDATE.EXE
- IF NOT EXISTS <dest>\*.* GOTO remdest
- TEXT <dest> direttorio ha archivi sconosciuti; direttorio non è stato cancellato!!
- WAIT
- GOTO norem
- :remdest
- RD <dest>
- :norem
- DEL <dstdrive>\<prod>.BAT
- GOTO end2
-
- CHOICE 4
- SET alter = Y
- SET confile = <dest>\_DW_.CFG
- GOTO okpath
-
- CHOICE 5
- GOTO end2
- ENDCHOICES
-
- :nopath
- MD <dest>
- IF NOT DIREXISTS <dest> GOTO getdir
-
- ;TFPL -8-6-93
- TEXT New Installation
- NEWMENU 1, 3, 65
- MENU Istallare la software e solo l'interfaccia italiana
- MENU Istallare la software e l'interfaccia per tutte le lingue
- ENDCHOICES
-
- CHOICE1
- SET ch = 2
- GOTO okpath
-
- CHOICE2
- SET ch = 3
- GOTO okpath
- ENDCHOICES
-
- :okpath
-
- ;----------------------------------------------------------------------------
-
- IF NOT EXISTS <confile> GOTO no_config
- DISP 5,14 Leggendo la configurazione...
- READCONFIG <confile>
- :no_config
-
- ;----------------------------------------------------------------------------
-
- HSCOUNT hs
- IF NOT <hs>==0 GOTO have_hs
-
- CLEAR
- TEXT Problema - Non c'è nessuna unità CD-ROM istallata.\n\n
- ----Si prega di usare il disco d'istallazione proporzionato por il fabbricante dell'
- ---- unità CD-ROM per istallare la software del device driver. Quindi
- ---- ripeta questo programma d'istallazione.\n\n
- ----Note: Il programma d'istallazione dell'unità CD-ROM copierà alcuni
- ---- archivi sul disco di sistema e cambiarà gli archivi CONFIG.SYS e
- ---- AUTOEXEC.BAT\n
- ----Se Lei non ha altri programmi che usano il programma MSCDEX, si raccomanda
- ---- elliminare la riga che chiama questo programma di suo archivio AUTOEXEC.BAT
- ---- perché questa software non lo bisogna.\n\n
- ----Dopo aver istallato i drivers CD-ROM si deve ricominciare il sistema.
-
- WAIT
- ABORT
-
- :have_hs
- ;TFPL 19-11-93
- GOTO get_hs_letter
-
- SET msg =
- IF <hs>==1 GOTO instOne
-
- TEXT Una selezione di <def_cdtype> drivers CD-ROM sono disponibili:\n\n
- ----Selezione il device driver CD-ROM <def_cdtype> di questa lista di device
- ----drivers disponibili usando le tastiere y . Quindi\n
- ----premere ┘ (Invio). Premere Esc per interrompere l'istallazione.
- GOTO :instMore
-
- :instOne
- SET msg = Un driver CD-ROM <def_cdtype> è stato istallato (guardare CONFIG.SYS):\n\n
-
- :instMore
- HSDRIVER hsname = 25, 8
- CONFIG Driver = "<def_driver>=<hsname>"
- CLEAR
- TEXT <msg>Il driver CD-ROM <def_cdtype> selezionato si chiama "<hsname>".
- ---- Se questo non è corretto, premere Esc per interrompere l'istallazione e
- ---- controllare l'archivio CONFIG.SYS\n\n
- ----Questa software NON ha bisogno del programma MSCDEX.EXE (Microsoft CD-ROM
- ---- Extensions). Se nessun altro programma l'ha bisogno dunque Lei può
- ---- elliminare questo programma del suo archivio \AUTOEXEC.BAT (dove può essere
- ---- stato istallato dal programma d'istallazione).
-
- WAIT
-
- CLEAR
- TEXT Copiando Interface CD-ROM <def_cdtype>...
- SET driver_name = <def_driver>.DRV
- GOSUB copy_driver
-
- ;TFPL 19-11-93
- :get_hs_letter
- CLEAR
- :tfpl_drive
- GOTO tfp1
- :drive_error
- TEXT Error: The database is not available on the specified drive...\n\n
- :tfp1
- TEXT \n\n
- ----Scrivete la lettera del vostro lettore\n
- ----(di solito "D")...
-
- INPUT 2,10,1 inst_drive = CD-ROM ?
- IF "inst_drive"=="" GOTO drive_error
- IF NOT DIREXISTS <inst_drive>:\ GOTO drive_error
- IF NOT EXISTS <inst_drive>:\TTLEDD00 GOTO drive_error
-
- ;SET instdrive = <inst_drive>:\
- CONFIG Driver = "<inst_drive>:\"
- ;CONFIG MaskPath = "<inst_drive>:\DISK1"
-
-
- ;----------------------------------------------------------------------------
- :disp_choice
- CLEAR
- TEXT Presenta Alternative:\n\n
- ---- Usare le tastiere e per scegliere un tipo di schermo\n
- ---- e premere ┘ (Invio).
-
- NEWMENU ? 6 46
- MENU Schermo Standard - Senza capacità grafica
- MENU Adattatore VGA
- MENU Adattatore MCGA
- MENU Adattatore EGA
- MENU Adattatore CGA
- MENU Carta Grafica Hercules
- MENU Olivetti, AT&T o Compaq Plasma
- MENU Pagina intera
-
- IF "<$Screen:1:3>"=="VGA" DO MENU_DEFAULT 2
- IF "<$Screen:1:4>"=="MCGA" DO MENU_DEFAULT 3
- IF "<$Screen:1:3>"=="EGA" DO MENU_DEFAULT 4
- IF "<$Screen:1:3>"=="CGA" DO MENU_DEFAULT 5
- IF "<$Screen:1:3>"=="HER" DO MENU_DEFAULT 6
- IF "<$Screen:1:3>"=="COR" DO MENU_DEFAULT 8
- IF "<$Screen:1:3>"=="MDS" DO MENU_DEFAULT 8
-
- SET Port = N
- SET Graphic = N
-
- CHOICE 1
- SET scr_type = SC_STD
- SET Port = ?
- CHOICE 2
- SET scr_type = SC_VGA
- SET Port = ?
- CHOICE 3
- SET scr_type = SC_MCGA
- SET Port = ?
- CHOICE 4
- SET scr_type = SC_EGA
- SET Port = ?
- CHOICE 5
- SET scr_type = SC_CGA
- SET Port = ?
- CHOICE 6
- SET scr_type = SC_HERC
- CHOICE 7
- SET scr_type = SC_ATT
- SET Port = ?
- CHOICE 8
- SET scr_type = FP
- ENDCHOICES
-
- IF NOT "<scr_type>"=="FP" GOTO not_full_page
-
- CLEAR
- TEXT Presenta Alternative:\n\n
- ---- Usare le tastiere e per scegliere un tipo di schermo\n
- ---- e premere ┘ (Invio).
-
- NEWMENU ? 6 46
- MENU Cornerstone FullPage
- MENU MDS Genius
-
- IF "<$Screen:1:3>"=="COR" DO MENU_DEFAULT 1
- IF "<$Screen:1:3>"=="MDS" DO MENU_DEFAULT 2
-
- CHOICE 1
- SET scr_type = SC_CNRST
- CHOICE 2
- SET scr_type = SC_MDS
- ENDCHOICES
-
- :not_full_page
-
- SET extra =
- IF NOT "<Port>" == "?" GOTO no_scr_opts
-
- CLEAR
- TEXT Presenta Alternative Dettagliate:\n\n
- ---- Usare le tastiere e per scegliere lo schermo\n
- ---- e premere ┘ (Invio).
-
- NEWMENU ? 6 46
- MENU Monitore Standard di Colore o Monocromo
- MENU Computer Portabile - con monitore Monocromo compreso
- IF "<scr_type>"=="SC_CGA" DO MENU Schermi di Colore Più Antichi - interferenza o "neve"
-
- IF "<$Screen:-4>"=="PORT" DO MENU_DEFAULT 2
-
- CHOICE 2
- SET extra = P
- CHOICE 3
- SET extra = F
- ENDCHOICES
-
- :no_scr_opts
-
- CONFIG Screen = "<scr_type>=<extra>"
-
- CLEAR
- TEXT Copiando il Driver dello Schermo...
- SET driver_name = <scr_type>.DRV
- GOSUB copy_driver
-
- ;----------------------------------------------------------------------------
-
- CLEAR
- TEXT Alternative di Stampante:\n\n
- ---- Usare le tastiere e per scegliere il tipo di stampante\n
- ---- e premere ┘ (Invio).
-
- SET extra =
-
- NEWMENU ? 6 46
- MENU HP LaserJet Serie
- MENU HP DeskJet Serie
- MENU JLaser Controller Stampante
- MENU Altre Stampanti
-
- CHOICE 1
- SET prn_type = PR_PCL?
- CHOICE 2
- SET prn_type = PR_DJ?
- CHOICE 3
- SET prn_type = PR_JL?
- CHOICE 4
- SET prn_type = PR_STD
- ENDCHOICES
-
- IF "<prn_type>" == "PR_PCL?" GOTO pr_type_1
- IF "<prn_type>" == "PR_DJ?" GOTO pr_type_2
- IF "<prn_type>" == "PR_JL?" GOTO pr_type_3
- IF "<prn_type>" == "PR_STD" GOTO pr_type_4
-
- :pr_type_1
-
- CLEAR
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU HP LaserJet(+), LaserJet 500(+), LaserJet 2000
- MENU HP LaserJet Series II, IID
- MENU HP LaserJet IIP(+), III(+), IIID, IIIP, IIISi
-
- CHOICE 1
- SET extra = R
- CHOICE 2
- SET extra = X
- CHOICE 3
- SET extra = XG
- ENDCHOICES
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU 300 Dpi ( 1Mb memoria)
- MENU 150 Dpi (512Kb memoria)
- MENU 75 Dpi (256Kb memoria)
-
- CHOICE 1
- SET prn_type = PR_PCL30
- CHOICE 2
- SET prn_type = PR_PCL15
- CHOICE 3
- SET prn_type = PR_PCL75
- ENDCHOICES
-
- GOTO pr_type_ok
-
- :pr_type_2
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU HP DeskJet(+)
- MENU HP DeskJet 500
- MENU HP DeskJet 500C
-
- CHOICE 1
- SET extra = X
- CHOICE 2
- SET extra = XG
- CHOICE 3
- SET extra = XG
- ENDCHOICES
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU 300 Dpi
- MENU 150 Dpi
- MENU 75 Dpi
-
- CHOICE 1
- SET prn_type = PR_PCL30
- CHOICE 2
- SET prn_type = PR_PCL15
- CHOICE 3
- SET prn_type = PR_PCL75
- ENDCHOICES
-
- GOTO pr_type_ok
-
- :pr_type_3
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU HP LaserJet(+), LaserJet 500(+), LaserJet 2000
- MENU HP LaserJet (tutti gli altri modelli)
- MENU Canon LBP (ogni modelli)
-
- CHOICE 1
- SET prn_type = PR_JLHP
- SET extra = R
- CHOICE 2
- SET prn_type = PR_JLHP
- SET extra = X
- CHOICE 3
- SET prn_type = PR_JLCAN
- ENDCHOICES
-
- GOTO pr_type_ok
-
- :pr_type_4
-
- GOSUB pr_detail
-
- NEWMENU ? 6 46
- MENU gruppo di caratteri PC 8 (std)
- MENU gruppo di caratteri 7 bit nazionale
-
- CHOICE 2
- SET extra = 7
- ENDCHOICES
-
- GOTO pr_type_ok
-
- :pr_detail
- CLEAR
- TEXT Alternative Dettagliate di Stampante:\n\n
- ---- Usare le tastiere e per scegliere lo stampante\n
- ---- e premere ┘ (Invio).
- RETURN
-
- :pr_type_ok
-
- SET port =
-
- NEWMENU ? 6 40
- MENU LPT1 Stampante Parallelo # 1
- MENU COM1 Stampante Seriale # 1
- MENU LPT2 Stampante Parallelo # 2
- MENU COM2 Stampante Seriale # 2
- MENU LPT3 Stampante Parallelo # 3
- MENU LPT4 Stampante Parallelo # 4
- MENU PRN Stampante attuale DOS
-
- CLEAR
- TEXT Alternative di Conessione di Stampante:\n\n
- ---- Usare le tastiere e per scegliere il port di stampante\n
- ---- e premere ┘ (Invio).
-
- CHOICE 1
- SET port = LPT1,
- CHOICE 2
- SET port = COM1,
- CHOICE 3
- SET port = LPT2,
- CHOICE 4
- SET port = COM2,
- CHOICE 5
- SET port = LPT3,
- CHOICE 6
- SET port = LPT4,
- CHOICE 7
- SET port = PRN,
- ENDCHOICES
-
- CONFIG Printer = "<prn_type>=<port><extra>"
-
- CLEAR
- TEXT Copiando il Driver dello Stampante...
- SET driver_name = <prn_type>.DRV
- GOSUB copy_driver
-
- ;----------------------------------------------------------------------------
-
- IF "<alter>"=="Y" GOTO done
-
- :read_disk
- GOSUB need_disk
-
- ;TFPL 8-6-93
- IF "<ch>"=="2" GOTO inst_only_eng
- IF "<ch>"=="3" GOTO inst_all
-
- :inst_only_eng
- CLEAR
-
- TEXT Istallando gli archivi dell'applicazione e l'interfaccia italiana...
- COPY_OPT <insdrive>\DISK<curdisk>\*.ITA <dest>
- COPY_OPT <insdrive>\DISK<curdisk>\*.EXE <dest>
- COPY_OPT <insdrive>\DISK<curdisk>\*.DRV <dest>
- COPY_OPT <insdrive>\DISK<curdisk>\*. <dest>
- COPY_OPT <ins>\_DW_MSGS.ITA <dest>
- COPY_OPT <ins>\ADL_MSGS.ITA <dest>
- GOTO adl_dw_message
-
- :inst_all
- ;TFPL
-
- CLEAR
- TEXT Istallando archivi d'Applicazione del Disco d'Istallazione <curdisk>...
- COPY_OPT <insdrive>\DISK<curdisk>\*.* <dest>
-
- ;TFPL 8-6-93
- COPY_OPT <ins>\_DW_MSGS.* <dest>
- COPY_OPT <ins>\ADL_MSGS.* <dest>
- GOTO adl_dw_message
-
- :inst_only_soft
- CLEAR
-
- TEXT Installing only software files...
- COPY_OPT <insdrive>\DISK<curdisk>\*.EXE <dest>
- COPY_OPT <insdrive>\DISK<curdisk>\*.DRV <dest>
- COPY_OPT <insdrive>\DISK<curdisk>\????.* <dest>
- COPY_OPT <ins>\_DW_MSGS.* <dest>
- COPY_OPT <ins>\ADL_MSGS.* <dest>
- ;TFPL
- :adl_dw_message
- ;Copy adl and dw message files
- IF NOT DIREXISTS <ins> GOTO skip_message_files
- COPY_OPT <ins>\UPDATE.EXE <dest>
- :skip_message_files
-
- CALC curdisk = <curdisk> + 1
- IF EXISTS <insdrive>MORE GOTO read_disk
-
- CONFIG Language = "<def_lang>"
- goto DONE
-
- :abort
- if "<dest>"=="" GOTO nofiles
- if "<alter>"=="Y" GOTO nofiles
- CLEAR
- TEXT \n\n!!! Istallazione Interrota !!!\n\n
- ---- Cancellando tutti gli archivi copiati...
- UNCOPY
- :nofiles
- CLEAR
- TEXT \n\n!!! Istallazione Interrota !!!\n\n
- goto END
-
- :copy_driver
- IF EXISTS <ins>\<driver_name> GOTO ok_copy
- CALC curdisk = <curdisk> + 1
- GOSUB need_disk
- GOTO copy_driver
- :ok_copy
- COPY <ins>\<driver_name> <dest>
- RETURN
-
- :need_disk
- IF DIREXISTS <insdrive>\DISK<curdisk> DO RETURN
- :retry_disk2
- CLEAR
- TEXT Introdurre il Disco d'Istallazione Numero <curdisk> e premere ┘ (Invio).
- WAIT
- IF DIREXISTS <insdrive>\DISK<curdisk> DO RETURN
-
- CLEAR
- TEXT Il disco introdotto non è il Disco d'Istallazione Numero <curdisk> !
- NEWMENU ?, 3, 15
- MENU Ripetere
- MENU Interrompere
-
- CHOICE 1
- GOTO retry_disk2
- ENDCHOICES
-
- ABORT
-
- :done
- CLEAR
- TEXT Attualizzando la Configurazione
- WRITECONFIG <dest>\_DW_.CFG
- IF "<alter>"=="Y" GOTO end
- WRITEFILE <dstdrive>\<prod>.BAT = <dstdrive>\ncd <path>\nDW\ncd \\n
-
- CLEAR
- TEXT \n Istallazione completa!\n\n
- ----Un archivio batch è stato fatto nel direttorio <dstdrive>\ con il nome <prod>.\n\n
- ----Per iniziare il programma, scrivere:\n\n
- ---- <prod> ┘\n\n
- ----Importante: Per fare funzionare bene questo commando, si deve
- ---- cominciare nel direttorio <dstdrive>\ o includerlo nella variabile PATH.
-
- :end
- WAIT
-
- :end2
- CD <$CurDir>
-