home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
BF
/
BF051.ZIP
/
CBINSTAL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-08-12
|
8KB
|
303 lines
A:
echo off
cls
echo .
echo . CHECKBOOKS & BUDGETS PLUS INSTALLATION
echo .
echo . The CB distribution disk must be in drive A.
echo .
echo . Installation from archived file CB34UNR.CBF
echo .
echo . You MUST have FILES=20 in the file CONFIG.SYS on your boot disk!
echo . CBINSTAL will check and update the CONFIG.SYS file for you. If you
echo . are installing to floppies have your DOS boot disk ready for CBINSTAL
echo . to check and update if necessary. Remove any write protection sticker
echo . from your DOS boot disk first.
echo .
echo . To delete any demo files installed by this installation program
echo . go to the data disk or directory and type: DEL *.DAT [enter]
echo . DEL *.IDX [enter]
echo .
echo . CAUTION!!! Choosing DEMO or DFLT will overwrite any current CB data files!!!
echo .
pause
if exist A:\CB34UNR.EXE ren A:\CB34UNR.EXE *.CBF
if exist A:\CBSEARCH.EXE ren A:\CBSEARCH.EXE *.CBF
if X==X%1 goto Ln1
if %1==B: goto Ln2
if %1==b: goto Ln2
goto Ln3
:Ln1
echo .
echo . To install on three DSDD (360K/720K) or DSHD (1.2M/1.44M) floppies type:
echo . CBINSTAL B: 3F [enter] {to install your own data} or
echo . CBINSTAL B: 3F DEMO [enter] {installs demo data files} or
echo . CBINSTAL B: 3F DFLT [enter] {install default accounts}
echo .
echo . To install on two DSDD (720K) or DSHD (1.2M/1.44M) floppies type:
echo . CBINSTAL B: 2F [enter] {to install your own data} or
echo . CBINSTAL B: 2F DEMO [enter] {installs demo data files} or
echo . CBINSTAL B: 2F DFLT [enter] {install default accounts}
echo .
echo . To install to your hard disk type:
echo . CBINSTAL [disk drive] [path name] [opt DEMO/DFLT] [enter]
echo . examples: CBINSTAL C: \CHECKING [enter] {your data} or
echo . CBINSTAL D: \CB [enter] {your data} or
echo . CBINSTAL D: \FINANCES\CB [enter] {your data} or
echo . CBINSTAL C: \CB DEMO [enter] {demo data} or
echo . CBINSTAL C: \CB DFLT [enter] {default accounts}
echo .
echo . NOTE: "A:" is NOT allowed as the first option - only "B:" and higher
echo . The CB distribution disk MUST be in the A drive!!!
pause
goto Exit
:Ln2
if X==X%2 goto Ln1
ren A:\CB34UNR.CBF CB34UNR.EXE
if not errorlevel 0 goto Exit2
ren A:\CBSEARCH.CBF CBSEARCH.EXE
if not errorlevel 0 goto Exit2
if %2==3F goto Ln2B
if %2==3f goto Ln2B
if %2==2F goto Ln2C
if %2==2f goto Ln2C
goto Ln1
:Ln2B
echo .
echo . Label three blank, formatted (360K/720K/1.2M/1.44M) floppy disks as
echo . DISK #1, DISK #2 and DISK #3.
echo .
echo . DISK #1 is your CB PROGRAM DISK.
echo . DISK #2 is your CB UTILITIES DISK.
echo . DISK #3 is your CB DATA DISK.
echo .
echo . DO NOT FORMAT ANY 360K DISKS WITH THE /S OPTION! (i.e. FORMAT A:/S)
echo .
echo . Place DISK #1 in drive B. (press CTRL C to exit)
echo .
pause
B:
if not errorlevel 0 goto Exit2
A:\CB34UNR CB.EXE CB.OVR CBPATH.EXE
if not errorlevel 0 goto Exit2
CBPATH A:\ B:\ A:\
if not errorlevel 0 goto Exit2
DEL CBPATH.EXE
if not errorlevel 0 goto Exit2
A:\CB34UNR CBUNREG.HLP
if not errorlevel 0 goto Exit2
echo .
echo . Place DISK #2 in drive B. (press CTRL C to exit)
echo .
pause
B:
if not errorlevel 0 goto Exit2
A:\CB34UNR CBPATH.EXE CBINST.EXE CBCNVRT.EXE LPTFILE.EXE PRINT.EXE *.DOC *.BAT *.SYS
if not errorlevel 0 goto Exit2
if X==X%3 goto Ln2B3
if %3==DEMO goto Ln2B1
if %3==demo goto Ln2B1
if %3==DFLT goto Ln2B2
if %3==dflt goto Ln2B2
goto Ln2B3
:Ln2B1
echo .
echo . Place DISK #3 in drive B. (press CTRL C to exit)
pause
B:
if not errorlevel 0 goto Exit2
A:\CB34UNR *.DAT *.IDX
if not errorlevel 0 goto Exit2
if %3==DEMO del DFLT.*
if %3==demo del DFLT.*
if not errorlevel 0 goto Exit2
goto Ln2B3
:Ln2B2
echo .
echo . Place DISK #3 in drive B. (press CTRL C to exit)
pause
B:
if not errorlevel 0 goto Exit2
A:\CB34UNR DFLT.*
ren DFLT.* ACCOUNT.*
if not errorlevel 0 goto Exit2
:Ln2B3
A:\CBSEARCH %1
if not errorlevel 0 goto Exit2
A:
if not errorlevel 0 goto Exit2
echo .
echo . First reboot your computer by pressing CTRL ALT DEL all together then
echo .
echo . Place DISK #1 in drive A.
echo . Place DISK #3 in drive B.
echo . Type: A: [enter]
echo . CB [enter] to run CHECKBOOKS & BUDGETS PLUS
echo .
goto Exit1
:Ln2C
echo .
echo . Label two blank, formatted (720K/1.2M/1.44M) floppy disks as
echo . DISK #1 and DISK #2.
echo .
echo . DISK #1 is your CB PROGRAM and DATA DISK.
echo . DISK #2 is your CB UTILITIES DISK.
echo .
echo . You may format DISK #1 with the /S option (i.e. FORMAT A:/S [enter])
echo . so that it will boot. If you do also copy COMMAND.COM to DISK #1 from
echo . your DOS disk.
echo .
echo . Place DISK #1 in drive B. (press CTRL C to exit)
echo .
pause
B:
if not errorlevel 0 goto Exit2
A:\CB34UNR CB.EXE CB.OVR CBUNREG.HLP CBPATH.EXE CONFIG.SYS AUTOEXEC.BAT
if not errorlevel 0 goto Exit2
if X==X%3 goto Ln2C1
if %3==DEMO A:\CB34UNR *.DAT *.IDX
if %3==demo A:\CB34UNR *.DAT *.IDX
if not errorlevel 0 goto Exit2
if %3==DEMO del DFLT.*
if %3==demo del DFLT.*
if not errorlevel 0 goto Exit2
if %3==DFLT A:\CB34UNR DFLT.*
if %3==dflt A:\CB34UNR DFLT.*
if not errorlevel 0 goto Exit2
if %3==dflt ren DFLT.* ACCOUNT.*
if %3==DFLT ren DFLT.* ACCOUNT.*
if not errorlevel 0 goto Exit2
:Ln2C1
CBPATH _ _ _
if not errorlevel 0 goto Exit2
echo .
echo . Place DISK #2 in drive B. (press CTRL C to exit)
pause
B:
if not errorlevel 0 goto Exit2
A:\CB34UNR CBPATH.EXE CBINST.EXE CBCNVRT.EXE LPTFILE.EXE PRINT.EXE *.DOC *.BAT *.SYS
if not errorlevel 0 goto Exit2
A:\CBSEARCH %1
if not errorlevel 0 goto Exit2
A:
if not errorlevel 0 goto Exit2
echo .
echo . First reboot your computer by pressing CTRL ALT DEL all together then
echo .
echo . Place DISK #1 in drive A.
echo . Type: A: [enter]
echo . CB [enter] to run CHECKBOOKS & BUDGETS PLUS
echo .
goto Exit1
:Ln3
if X%2Y==X\Y goto Ln3X
if X==X%2 goto Ln3X
goto Ln3Y
:Ln3X
if %1==C: goto Ln3Z
if %1==c: goto Ln3Z
goto Ln3Y
:Ln3Z
echo .
echo . Cannot install to the root directory of the C drive.
echo . Specify a directory also ( i.e. \CB )
echo .
goto Exit2
:Ln3Y
echo .
echo . Ready to install to %1%2 (press CTRL C to exit)
echo .
pause
if exist A:\CB34UNR.CBF ren A:\CB34UNR.CBF *.EXE
if not errorlevel 0 goto Exit2
if exist A:\CBSEARCH.CBF ren A:\CBSEARCH.CBF *.EXE
if not errorlevel 0 goto Exit2
%1
if not errorlevel 0 goto Exit2
if not X==X%2 if not X%2Y==X\Y MD %2
if not errorlevel 0 goto Exit2
if not X==X%2 CD %2
if X==X%2 CD \
if not errorlevel 0 goto Exit2
if X==X%3 goto Ln3A
if %3==demo goto Ln3C
if %3==DEMO goto Ln3C
if %3==dflt goto Ln3D
if %3==DFLT goto Ln3D
goto Ln3A
:Ln3C
A:\CB34UNR *.*
if not errorlevel 0 goto Exit2
goto Ln3B
:Ln3D
A:\CB34UNR *.EXE *.OVR *.HLP *.DOC *.BAT *.SYS DFLT.*
ren DFLT.* ACCOUNT.*
if not errorlevel 0 goto Exit2
goto Ln3B
:Ln3A
A:\CB34UNR *.EXE *.OVR *.HLP *.DOC *.BAT *.SYS
if not errorlevel 0 goto Exit2
:Ln3B
CBPATH %1%2\ _ %1%2\
if not errorlevel 0 goto Exit2
if not X==X%2 A:\CBSEARCH %1 %2
if X==X%2 A:\CBSEARCH %1 \
if not errorlevel 0 goto Exit2
echo .
echo . First reboot your computer by pressing CTRL ALT DEL all together then
echo . Type: %1 [enter]
if not X==X%2 echo . CD %2 [enter]
if X==X%2 echo . CD \ [enter]
echo . CB [enter] to run CHECKBOOKS & BUDGETS PLUS
echo .
echo .
:Exit1
if X==X%3 goto Exit3
echo .
echo . To delete any demo files installed by this installation program
echo . go to the data disk and type: DEL *.DAT [enter] DEL *.IDX [enter]
echo .
:Exit3
ren A:\CB34UNR.EXE CB34UNR.CBF
if not errorlevel 0 goto Exit2
ren A:\CBSEARCH.EXE CBSEARCH.CBF
if not errorlevel 0 goto Exit2
echo .
echo . End of installation.
echo .
echo . Reboot your computer before running CB by pressing the
echo . CTRL, ALT, and DEL keys all at the same time.
goto Exit
:Exit2
echo .
echo . An error has occurred.
echo . Please recheck: 1. your CBINSTAL parameters, 2. disks for proper
echo . formating, and 3. remove any write protection stickers from disks.
echo .
A:
:Exit
echo on