home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
bus_pers
/
ca21.lha
/
CAinstall
< prev
next >
Wrap
Text File
|
1991-09-04
|
8KB
|
287 lines
.K ""
;
; CAinstall - Installation script for Checkbook Accountant 2.1
;
;
; after unarchiving, but before installation:
; CAinstall
; CAinstall.info
; CAfiles/CA
; CAfiles/CAmanual.txt
; CAfiles/CAquickdocs.txt
; CAfiles/CAchanges2.0-2.1.txt
; CAfiles/def_ChkbkAcctnt.CAb
; CAfiles/def_ChkbkAcctnt.CAd
; CAfiles/ex_ChkbkAcctnt.CAc
; CAfiles/kd_freq.library
; CAfiles/FR_User.DOC
; CAfiles/CAhelp/CA#?.CAh
; CAfiles/CAicons/def_#?1.3.info
; CAfiles/CAicons/def_#?2.0.info
;
; after installation (all options added):
; CA
; CA.info
; CAchanges2.0-2.1.txt
; CAchanges2.0-2.1.txt.info
; CAdefaults/#?
; CAhelp/#?
; CAmanual.txt
; CAmanual.txt.info
; CAquickdocs.txt
; CAquickdocs.txt.info
; FR_User.DOC
; FR_User.DOC.info
; ex_ChkbkAcctnt.CAc
; ex_ChkbkAcctnt.CAc.info
echo ""
echo "Checkbook Accountant 2.1 installation script"
echo "--------------------------------------------"
echo ""
echo "This script will install the Checkbook Accountant 2.1 system onto the"
echo "current disk or directory. The minimum disk space requirements for a"
echo "working installation are approximately 280,000 free bytes."
echo ""
echo "For Checkbook Accountant 2.0 users: Both this install script and"
echo "CAfiles subdirectory MUST reside in the same disk or directory as the"
echo "CA program and CAhelp subdirectory for this installation to work"
echo "properly."
echo ""
ask "Do you want to continue? [Default = NO]"
if WARN
echo ""
else
echo ""
echo "Exiting the installation. To install the program in a different"
echo "location, move this script file (CAinstall) and the CAfiles"
echo "subdirectory to the disk or directory where you want the program"
echo "to reside, and from there double-click (or execute) the CAinstall"
echo "icon (script)."
skip exit
endif
; -- check for existence of CAinstall subdirectories --
;
if NOT EXISTS CAfiles
echo " ERROR: Could not find CAfiles directory"
skip incomplete
endif
if NOT EXISTS CAfiles/CAhelp
echo " ERROR: Could not find CAfiles/CAhelp directory"
skip incomplete
endif
if NOT EXISTS CAfiles/CAicons
echo " ERROR: Could not find CAfiles/CAicons directory"
skip incomplete
endif
if NOT EXISTS CAfiles/CAicons1.3
makedir CAfiles/CAicons1.3
else
; -- clean up the CAfiles/CAicons1.3/ directory --
; this script will put the icons for the files the user requests
; in this directory
delete CAfiles/CAicons1.3/#?.info quiet
endif
if NOT EXISTS CAfiles/CAicons2.0
makedir CAfiles/CAicons2.0
else
; -- clean up the CAfiles/CAicons2.0/ directory --
; this script will put the icons for the files the user requests
; in this directory
delete CAfiles/CAicons2.0/#?.info quiet
endif
echo "Installing the support files..."
if NOT EXISTS LIBS:kd_freq.library
echo " Copying kd_freq.library to LIBS: directory..."
if NOT EXISTS CAfiles/kd_freq.library
echo " ERROR: Could not find CAfiles/kd_freq.library"
skip incomplete
endif
copy CAfiles/kd_freq.library LIBS:kd_freq.library quiet
echo " Copying FR_User.DOC to this directory..."
if NOT EXISTS CAfiles/FR_User.DOC
echo " ERROR: Could not find CAfiles/FR_User.DOC"
skip incomplete
endif
copy CAfiles/FR_User.DOC "" quiet
copy CAfiles/CAicons/def_txt1.3.info CAfiles/CAicons1.3/FR_User.DOC.info quiet
copy CAfiles/CAicons/def_txt2.0.info CAfiles/CAicons2.0/FR_User.DOC.info quiet
else
echo " kd_freq.library already exists in the LIBS: directory..."
echo " No installation needed."
endif
if NOT EXISTS CAdefaults
echo "Creating the CAdefaults subdirectory..."
makedir CAdefaults
endif
if EXISTS S:CAdefaults.CAp
echo "Renaming the Checkbook Accountant 2.0 preferences file..."
rename S:CAdefaults.CAp S:ChkbkAcctnt.prefs
endif
if EXISTS CAhelp
if EXISTS CAhelp/CAedit.CAh
rename CAhelp/CAedit.CAh CAhelp/CAtransac.CAh
endif
if EXISTS CAhelp/CAreoccurGroups.CAh
rename CAhelp/CAreoccurGroups.CAh CAhelp/CArecurGroups.CAh
endif
if EXISTS CAhelp/CAreoccurGroupTransacs.CAh
rename CAhelp/CAreoccurGroupTransacs.CAh CAhelp/CArecurGroupTransacs.CAh
endif
echo "Updating the CAhelp help files..."
else
makedir CAhelp
echo "Installing the CAhelp help files..."
endif
copy CAfiles/CAhelp CAhelp all quiet
if EXISTS CA
echo "Updating the Checkbook Accountant program..."
else
echo "Installing the Checkbook Accountant program..."
endif
copy CAfiles/CA "" quiet
copy CAfiles/CAicons/def_CA1.3.info CAfiles/CAicons1.3/CA.info quiet
copy CAfiles/CAicons/def_CA2.0.info CAfiles/CAicons2.0/CA.info quiet
echo ""
echo "Do you want an example Checkbook Accountant file?"
ask "[Default = NO]"
if WARN
echo " Installing the example file..."
copy CAfiles/ex_ChkbkAcctnt.CAc "" quiet
copy CAfiles/CAicons/def_CAc1.3.info CAfiles/CAicons1.3/ex_ChkbkAcctnt.CAc.info quiet
copy CAfiles/CAicons/def_CAc2.0.info CAfiles/CAicons2.0/ex_ChkbkAcctnt.CAc.info quiet
endif
echo ""
echo "Do you want the default budget and description list files?"
ask "[Default = NO]"
if WARN
echo " Installing the default files..."
copy CAfiles/def_ChkbkAcctnt.CAb CAdefaults/def_ChkbkAcctnt.CAb quiet
copy CAfiles/def_ChkbkAcctnt.CAd CAdefaults/def_ChkbkAcctnt.CAd quiet
endif
echo ""
echo "Do you want the User's Manual, Quick Docs, and Changes documentation?"
ask "[Default = NO]"
if WARN
echo " Installing the documentation..."
copy CAfiles/CAmanual.txt "" quiet
copy CAfiles/CAicons/def_txt1.3.info CAfiles/CAicons1.3/CAmanual.txt.info quiet
copy CAfiles/CAicons/def_txt2.0.info CAfiles/CAicons2.0/CAmanual.txt.info quiet
copy CAfiles/CAquickdocs.txt "" quiet
copy CAfiles/CAicons/def_txt1.3.info CAfiles/CAicons1.3/CAquickdocs.txt.info quiet
copy CAfiles/CAicons/def_txt2.0.info CAfiles/CAicons2.0/CAquickdocs.txt.info quiet
copy CAfiles/CAchanges2.0-2.1.txt "" quiet
copy CAfiles/CAicons/def_txt1.3.info CAfiles/CAicons1.3/CAchanges2.0-2.1.txt.info quiet
copy CAfiles/CAicons/def_txt2.0.info CAfiles/CAicons2.0/CAchanges2.0-2.1.txt.info quiet
endif
echo ""
ask "Do you want icons generated for the above files? [Default = NO]"
if WARN
ask " Are you running under AmigaDOS Release 2? [Default = NO]"
if WARN
echo " Adding 2.0-style icons..."
copy CAfiles/CAicons2.0 "" all quiet
echo " Adding 2.0-style program file icons..."
copy CAfiles/CAicons/def_CAc2.0.info CAdefaults/def_CAc.info quiet
copy CAfiles/CAicons/def_CAb2.0.info CAdefaults/def_CAb.info quiet
copy CAfiles/CAicons/def_CAd2.0.info CAdefaults/def_CAd.info quiet
else
echo " Adding 1.3-style icons..."
copy CAfiles/CAicons1.3 "" all quiet
echo " Adding 1.3-style program file icons..."
copy CAfiles/CAicons/def_CAc1.3.info CAdefaults/def_CAc.info quiet
copy CAfiles/CAicons/def_CAb1.3.info CAdefaults/def_CAb.info quiet
copy CAfiles/CAicons/def_CAd1.3.info CAdefaults/def_CAd.info quiet
endif
echo ""
echo " To view these icons properly, close & reopen this disk or drawer."
else
ask "Are you running under AmigaDOS Release 2? [Default = NO]"
if WARN
echo " Installing 2.0-style program file icons..."
copy CAfiles/CAicons/def_CAc2.0.info CAdefaults/def_CAc.info quiet
copy CAfiles/CAicons/def_CAb2.0.info CAdefaults/def_CAb.info quiet
copy CAfiles/CAicons/def_CAd2.0.info CAdefaults/def_CAd.info quiet
else
echo " Installing 1.3-style program file icons..."
copy CAfiles/CAicons/def_CAc1.3.info CAdefaults/def_CAc.info quiet
copy CAfiles/CAicons/def_CAb1.3.info CAdefaults/def_CAb.info quiet
copy CAfiles/CAicons/def_CAd1.3.info CAdefaults/def_CAd.info quiet
endif
endif
skip complete
LAB incomplete
echo ""
echo "Error during installation. Be sure to unarchive the CHKBKACCTNT2.1.LHA"
echo "file as directed before retrying the installation procedure."
skip exit
LAB complete
echo ""
echo "Installation is complete."
echo ""
echo "To install Checkbook Accountant onto another disk or directory, move"
echo "the CAinstall script/icon file and CAfiles subdirectory to that"
echo "location. Otherwise, delete this file and the CAfiles subdirectory."
LAB exit
echo ""
ask "Press RETURN to exit."