home *** CD-ROM | disk | FTP | other *** search
- ; CD Answer Installation Script - Generic jdk
- ; <<CDA>> Feb 5 1991;2.03
-
- ; 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:
-
- ; 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>\DISK1\PRODSCRN.<def_lang> GOTO no_banner
- READFILE screen = <insdrive>\DISK1\PRODSCRN.<def_lang>
- GOTO show_banner
- :no_banner
- SET screen =
- ---- CD Answer Installation pour:\n\n
- ---- <prod>\n\n
- ---- Application(s): <names>
- :show_banner
- CLEAR
- TEXT <screen>
- SET screen =
- WAIT
-
- SET def_drive=<dstdrive>
- SET def_path=<path>
-
- GOTO okdir
- :getdir
- CLEAR
- TEXT \nError -\n\n
- ---- Le chemin d'acces <dstdrive><path> n'est pas autorise!
- ---- Pour que l'installation du logiciel reussise, il faut qu'il y ait
- ---- un nom valide de sous-repertoire et d'unite.
- WAIT
- :okdir
- CLEAR
- TEXT Le logiciel d'extraction doit etre installe sur votre disque dur ou sur un
- ---- disquette formatee. Les valeurs standards sont <dstdrive> pour l'unite (le
- ---- disque dur generalement) et un sous-repertoire designee sous le nom de
- ---- <path>. Pour utiliser ces valeurs, appuyez a
- ----deux reprises sur ─┘ (Enter). Si vous voulez les modifier, tapez
- ---- le nouveau nom de l'unite et du sous-repertoire en regard de l'invite
- ---- appropriee, puis appuyez sur ─┘ (Enter)
-
-
- INPUT 6,8,5 dstdrive = Installation sur unite ?
- INPUT 6,10,40 path = Installation dans repertoire ?
- 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 Le repertoire "<dest>" existe deja.
- NEWMENU ?, 3, 54
- MENU Supprimez l'ancienne version; installez la nouvelle
- MENU Supprimez l'ancienne version; n'installez pas le nouveau
- MENU Modifiez la configuration; ne copiez pas le logiciel
- MENU Interrompez l'installation sans faire aucune modification
-
- CHOICE 1
- CLEAR
- TEXT Effacement du contenu anterieur 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>\DW.EXE
- DEL <dest>\UPDATE.EXE
- GOTO okpath
-
- CHOICE 2
- CLEAR
- TEXT Suppression du repertoire <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>\DW.EXE
- DEL <dest>\UPDATE.EXE
- IF NOT EXISTS <dest>\*.* GOTO remdest
- TEXT Le repertoire <dest> contient des fichiers non repertories,
- ---- le repertoire n'est pas supprime!!
- WAIT
- GOTO norem
- :remdest
- RD <dest>
- :norem
- DEL <dstdrive>\<prod>.BAT
- GOTO end2
-
- CHOICE 3
- SET alter = Y
- SET confile = <dest>\_DW_.CFG
- GOTO okpath
-
- CHOICE 4
- GOTO end2
- ENDCHOICES
-
- :nopath
- MD <dest>
- IF NOT DIREXISTS <dest> GOTO getdir
- :okpath
-
- IF NOT EXISTS <confile> GOTO no_config
- DISP 5,14 Reading configuration...
- READCONFIG <confile>
- :no_config
-
- HSCOUNT hs
- IF NOT <hs>==0 GOTO have_hs
-
- CLEAR
- TEXT Probleme - Aucune unite CD-ROM n'est installee. \n\n Veuillez utiliser le
- ---- disque d'installation fourni par votre fabricant d'unite CD-ROM pour
- ---- installer le questionnaire de peripheriques. Puis reexecutez le programme
- ---- d'installation. \n\n
- ---- Remarque : le disque d'installation de l'unite CD-ROM reproduira quelques
- ---- fichiers sur votre disque systeme et modifiera les fichiers
- ---- CONFIG.SYS et AUTOEXEC.BAT.
- ---- D'autres programmes utilisent MSCDEX, il est recommande de supprimer
- ---- la ligne d'appel de ce programme de votre fichier AUTOEXEC.BAT, etant
- ---- donne que ce logiciel n'en a pas besoin. Assurez vous de
- ---- reinitialiser votre systeme une fois que les modules CD-ROM sont
- ---- installes.
-
- WAIT
- ABORT
-
- :have_hs
-
- SET msg =
- IF <hs>==1 GOTO instOne
-
- TEXT Vous pouvez choisir parmi differentes unites CD-ROM <def_cdtype>. Avec
- ---- l'aide des touches et , selectionnez le peripherique CD-ROM
- ---- <def_cdtype> dans la liste, puis appuyez sur ┘ (Enter) lorsque vous etes
- ---- pret a commencer. Appuyez sur Esc pour interrompre l'installation.
- GOTO :instMore
-
- :instOne
- SET msg = Un module CD-ROM <def_cdtype> est installe (voir CONFIG.SYS):\n\n
-
- :instMore
- HSDRIVER hsname = 25, 6
- CONFIG Driver = "<def_driver>=<hsname>"
- CLEAR
- TEXT <msg> Le module CD-ROM <def_cdtype> selectionne est nomme "«<hsname>»". Dans le cas ou cette information est erronee, appuyez sur Esc pour
- ---- interrompre l'installation et verifiez votre fichier CONFIG.SYS.
- ---- Il n'est pas necessaire de faire appel au programme MSCDEX.EXE
- ---- (Suffixes CD-ROM de Microsoft) pour executer ce logiciel
- ---- moins qu'il soit necessaire pour un autre logiciel, vous pouvez
- ---- supprimer ce programme de votre fichier \AUTOEXEC.BAT (dans lequel
- ---- le programme d'installation de l'unite peut l'avoir place).
- WAIT
-
- CLEAR
- TEXT Copie de l'interface CD-ROM <def_cdtype>...
- SET driver_name = <def_driver>.DRV
- GOSUB copy_driver
-
- ;---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -
-
- CLEAR
- TEXT Options Ecran :\n
- ---- Avec l'aide des fleches et , selectionnez un type d'ecran, puis appuyez sur ┘ (Enter).
-
- NEWMENU ? 6 46
- MENU Ecran standard Pas de graphics
- MENU Carte graphique Hercules
- MENU Adaptateur CGA
- MENU Olivetti, AT&T ou Compaq Plasma
- MENU Adaptateur EGA
- MENU Adaptateur MCGA
- MENU Adaptateur VGA
-
-
- IF "<$Screen:1:3>"=="HER" DO MENU_DEFAULT 2
- IF "<$Screen:1:3>"=="CGA" DO MENU_DEFAULT 3
- IF "<$Screen:1:3>"=="EGA" DO MENU_DEFAULT 5
- IF "<$Screen:1:4>"=="MCGA" DO MENU_DEFAULT 6
- IF "<$Screen:1:3>"=="VGA" DO MENU_DEFAULT 7
-
- SET Port = N
- SET Graphic = N
-
- CHOICE 1
- SET scr_type = SC_STD
- CHOICE 2
- SET scr_type = SC_HERC
- SET Port = ?
- CHOICE 3
- SET scr_type = SC_CGA
- SET Port = ?
- SET Graphic = ?
- CHOICE 4
- SET scr_type = SC_ATT
- SET Port = ?
- SET Graphic = ?
- CHOICE 5
- SET scr_type = SC_EGA
- SET Port = ?
- SET Graphic = ?
- CHOICE 6
- SET scr_type = SC_MCGA
- SET Port = ?
- CHOICE 7
- SET scr_type = SC_VGA
- SET Port = ?
- SET Graphic = ?
- ENDCHOICES
-
- SET extra =
- IF NOT "<Port>" == "?" GOTO no_flash
-
- CLEAR
- TEXT Copie du module d'ecran...
- ---- Avec l'aide des fleches et , selectionnez un type d'ecran, puis appuyez sur ┘ (Enter).
-
- NEWMENU ? 6 52
- MENU Ecran standard Couleur ou monochrome Monitor
- MENU Ordinateur portatif Ecran monochrome integre
-
-
- IF "<Graphic>"=="?" DO MENU Use graphic mode only
- IF "<scr_type>"=="SC_CGA" DO MENU Older Color Screens - interference or "snow"
-
- IF "<$Screen:-4>"=="PORT" DO MENU_DEFAULT 2
-
- CHOICE 2
- SET extra = P
- CHOICE 3
- SET extra = G
- CHOICE 4
- SET extra = F
- ENDCHOICES
-
- :no_flash
-
- CONFIG Screen = "<scr_type>=<extra>"
-
- CLEAR
- TEXT Copie du module d'ecran
- SET driver_name = <scr_type>.DRV
- GOSUB copy_driver
-
- ;---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -
-
- CLEAR
- TEXT Selections d'imprimantes:\n
- ---- Avec l'aide des fleches et , selectionnez l'imprimante desiree et poussez ┘ (Enter).
-
- NEWMENU ? 6 46
- MENU Imprimante sans graphiques
- MENU HP LaserJet 150 DPI
- MENU HP LaserJet 300 DPI
- MENU HP LaserJet avec JLaser
- MENU Canon LBP avec JLaser
-
- SET extra =
- CHOICE 1
- SET prn_type = PR_STD
- SET extra = ?2
- CHOICE 2
- SET prn_type = PR_PCL15
- SET extra = ?1
- CHOICE 3
- SET prn_type = PR_PCL30
- SET extra = ?1
- CHOICE 4
- SET prn_type = PR_JLHP
- SET extra = ?1
- CHOICE 5
- SET prn_type = PR_JLCAN
- ENDCHOICES
-
- IF NOT "<extra>"=="?1" GOTO pr_type_1
- CLEAR
- TEXT Choix des detailles d'imprimante:\n
- ---- Utiliser les fleches ou pour choisir les options de l'imprimante et puissez ┘
- ---- (Enter).
-
- NEWMENU ? 6 46
- MENU HP Roman- serie de 8 caracteres (std)
- MENU HP PC-serie de 8 caracteres (seulement LJ II/III )
-
- SET extra =
- CHOICE 1
- SET extra = R
- CHOICE 2
- SET extra = X
- ENDCHOICES
- :pr_type_1
-
- IF NOT "<extra>"=="?2" GOTO pr_type_2
- CLEAR
- TEXT Choix des details d'imprimante:\n
- ---- Utiliser les fleches et pour choisir les options de l'imprimante et poussez ┘ (Entrer).
-
- NEWMENU ? 6 46
- MENU PC serie de 8 bit caracteres
- MENU National de 7 bit caracteres
- SET extra =
- CHOICE 2
- SET extra = 7
- ENDCHOICES
- :pr_type_2
-
- SET port =
- NEWMENU ? 6 40
- MENU LPT1 Imprimante parallele # 1
- MENU LPT2 Imprimante Parallele # 2
- MENU COM1 Imprimante sequentiel # 1
- MENU COM2 Imprimante sequentiel # 2
- MENU PRN Imprimante courante de DOS
-
- CLEAR
- TEXT Choix des connexions d'imprimante:\n
- ---- Utiliser les fleches et pour choisir le port de l'imprimante et poussez ┘ (Entrer).
-
- CHOICE 1
- SET port = LPT1,
- CHOICE 2
- SET port = LPT2,
- CHOICE 3
- SET port = COM1,
- CHOICE 4
- SET port = COM2,
- CHOICE 5
- SET port = PRN,
- ENDCHOICES
-
- CONFIG Printer = "<prn_type>=<port><extra>"
-
- CLEAR
- TEXT Copie des connexions d'imprimante....
- SET driver_name = <prn_type>.DRV
- GOSUB copy_driver
-
- ;---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -
-
- IF "<alter>"=="Y" GOTO done
-
- :read_disk
- GOSUB need_disk
-
- CLEAR
- TEXT Installation des fichiers d'applications a partir du disque
- ---- d'installation <curdisk>...
- COPY_OPT <insdrive>\DISK<curdisk>\*.* <dest>
-
- CALC curdisk = <curdisk> + 1
- IF EXISTS <insdrive>MORE GOTO read_disk
-
- CONFIG Language = "<def_lang>"
- goto DONE
-
- :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 Introduisez le disque d'installation numero <curdisk> et appuyez sur ┘ (Enter) lorsque vous etes pret a commencer.
- WAIT
- IF DIREXISTS <insdrive>\DISK<curdisk> DO RETURN
-
- CLEAR
- TEXT Le disque introduit n'est pas le disque d'installation numero <curdisk> !
- NEWMENU ?, 3, 15
- MENU Retry
- MENU Abort
-
- CHOICE 1
- GOTO retry_disk2
- ENDCHOICES
-
- ABORT
-
- :abort
- if "<dest>"=="" GOTO nofiles
- if "<alter>"=="Y" GOTO nofiles
- CLEAR
- TEXT \n\n!!! Installation interrompue !!!\n\n
- ---- Suppression des fichiers copies...
- UNCOPY
- :nofiles
- CLEAR
- TEXT \n\n!!! Installation interrompue !!!\n\n
- goto END
-
- :done
- CLEAR
- TEXT Mise a date des configurations du texte
- WRITECONFIG <dest>\_DW_.CFG
- IF "<alter>"=="Y" GOTO end
- WRITEFILE <dstdrive>\<prod>.BAT = <dstdrive>\ncd <path>\nDW\ncd \\n
-
- CLEAR
- TEXT \nL'installation est complet!\n\n
- ----Un fichier sequential appele <prod> a ete cree dans le repertoire <dstdrive>. \n\nPour executer le programme, tapez : <prod> ┘\n\n
- ----Important: Pour que cette commande fonctionne selon les indications,
- ---- vous devez etre dans le repertoire <dstdrive>\ ou ce repertoire doit
- ---- se trouver dans la commande PATH.
-
- :end
- WAIT
-
- :end2
- CD <$CurDir>