home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / bus_pers / ca21.lha / CAinstall < prev    next >
Text File  |  1991-09-04  |  8KB  |  287 lines

  1. .K ""
  2. ;
  3. ; CAinstall - Installation script for Checkbook Accountant 2.1
  4. ;
  5. ;
  6. ; after unarchiving, but before installation:
  7. ;    CAinstall
  8. ;    CAinstall.info
  9. ;    CAfiles/CA
  10. ;    CAfiles/CAmanual.txt
  11. ;    CAfiles/CAquickdocs.txt
  12. ;    CAfiles/CAchanges2.0-2.1.txt
  13. ;    CAfiles/def_ChkbkAcctnt.CAb
  14. ;    CAfiles/def_ChkbkAcctnt.CAd
  15. ;    CAfiles/ex_ChkbkAcctnt.CAc
  16. ;    CAfiles/kd_freq.library
  17. ;    CAfiles/FR_User.DOC
  18. ;    CAfiles/CAhelp/CA#?.CAh
  19. ;    CAfiles/CAicons/def_#?1.3.info
  20. ;    CAfiles/CAicons/def_#?2.0.info
  21. ;
  22. ; after installation (all options added):
  23. ;    CA
  24. ;    CA.info
  25. ;    CAchanges2.0-2.1.txt
  26. ;    CAchanges2.0-2.1.txt.info
  27. ;    CAdefaults/#?
  28. ;    CAhelp/#?
  29. ;    CAmanual.txt
  30. ;    CAmanual.txt.info
  31. ;    CAquickdocs.txt
  32. ;    CAquickdocs.txt.info
  33. ;    FR_User.DOC
  34. ;    FR_User.DOC.info
  35. ;    ex_ChkbkAcctnt.CAc
  36. ;    ex_ChkbkAcctnt.CAc.info
  37.  
  38.  
  39.  
  40.  
  41. echo ""
  42. echo "Checkbook Accountant 2.1 installation script"
  43. echo "--------------------------------------------"
  44. echo ""
  45. echo "This script will install the Checkbook Accountant 2.1 system onto the"
  46. echo "current disk or directory.  The minimum disk space requirements for a"
  47. echo "working installation are approximately 280,000 free bytes."
  48. echo ""
  49. echo "For Checkbook Accountant 2.0 users:  Both this install script and"
  50. echo "CAfiles subdirectory MUST reside in the same disk or directory as the"
  51. echo "CA program and CAhelp subdirectory for this installation to work"
  52. echo "properly."
  53.  
  54.  
  55.  
  56.  
  57. echo ""
  58. ask "Do you want to continue? [Default = NO]"
  59. if WARN
  60.    echo ""
  61. else
  62.    echo ""
  63.    echo "Exiting the installation.  To install the program in a different"
  64.    echo "location, move this script file (CAinstall) and the CAfiles"
  65.    echo "subdirectory to the disk or directory where you want the program"
  66.    echo "to reside, and from there double-click (or execute) the CAinstall"
  67.    echo "icon (script)."
  68.    skip exit
  69. endif
  70.  
  71.  
  72.  
  73. ; -- check for existence of CAinstall subdirectories --
  74. ;
  75. if NOT EXISTS CAfiles
  76.    echo "   ERROR: Could not find CAfiles directory"
  77.    skip incomplete
  78. endif
  79. if NOT EXISTS CAfiles/CAhelp
  80.    echo "   ERROR: Could not find CAfiles/CAhelp directory"
  81.    skip incomplete
  82. endif
  83. if NOT EXISTS CAfiles/CAicons
  84.    echo "   ERROR: Could not find CAfiles/CAicons directory"
  85.    skip incomplete
  86. endif
  87. if NOT EXISTS CAfiles/CAicons1.3
  88.    makedir CAfiles/CAicons1.3
  89. else
  90.    ; -- clean up the CAfiles/CAicons1.3/ directory --
  91.    ; this script will put the icons for the files the user requests
  92.    ; in this directory
  93.    delete CAfiles/CAicons1.3/#?.info quiet
  94. endif
  95. if NOT EXISTS CAfiles/CAicons2.0
  96.    makedir CAfiles/CAicons2.0
  97. else
  98.    ; -- clean up the CAfiles/CAicons2.0/ directory --
  99.    ; this script will put the icons for the files the user requests
  100.    ; in this directory
  101.    delete CAfiles/CAicons2.0/#?.info quiet
  102. endif
  103.  
  104.  
  105.  
  106.  
  107. echo "Installing the support files..."
  108. if NOT EXISTS LIBS:kd_freq.library
  109.    echo "   Copying kd_freq.library to LIBS: directory..."
  110.    if NOT EXISTS CAfiles/kd_freq.library
  111.       echo "      ERROR: Could not find CAfiles/kd_freq.library"
  112.       skip incomplete
  113.    endif
  114.    copy CAfiles/kd_freq.library LIBS:kd_freq.library quiet
  115.  
  116.    echo "   Copying FR_User.DOC to this directory..."
  117.    if NOT EXISTS CAfiles/FR_User.DOC
  118.       echo "      ERROR: Could not find CAfiles/FR_User.DOC"
  119.       skip incomplete
  120.    endif
  121.    copy CAfiles/FR_User.DOC "" quiet
  122.    copy CAfiles/CAicons/def_txt1.3.info CAfiles/CAicons1.3/FR_User.DOC.info quiet
  123.    copy CAfiles/CAicons/def_txt2.0.info CAfiles/CAicons2.0/FR_User.DOC.info quiet
  124. else
  125.    echo "   kd_freq.library already exists in the LIBS: directory..."
  126.    echo "   No installation needed."
  127. endif
  128.  
  129.  
  130.  
  131.  
  132. if NOT EXISTS CAdefaults
  133.    echo "Creating the CAdefaults subdirectory..."
  134.    makedir CAdefaults
  135. endif
  136.  
  137.  
  138.  
  139. if EXISTS S:CAdefaults.CAp
  140.    echo "Renaming the Checkbook Accountant 2.0 preferences file..."
  141.    rename S:CAdefaults.CAp S:ChkbkAcctnt.prefs
  142. endif
  143. if EXISTS CAhelp
  144.    if EXISTS CAhelp/CAedit.CAh
  145.       rename CAhelp/CAedit.CAh CAhelp/CAtransac.CAh
  146.    endif
  147.    if EXISTS CAhelp/CAreoccurGroups.CAh
  148.       rename CAhelp/CAreoccurGroups.CAh CAhelp/CArecurGroups.CAh
  149.    endif
  150.    if EXISTS CAhelp/CAreoccurGroupTransacs.CAh
  151.       rename CAhelp/CAreoccurGroupTransacs.CAh CAhelp/CArecurGroupTransacs.CAh
  152.    endif
  153.    echo "Updating the CAhelp help files..."
  154. else
  155.    makedir CAhelp
  156.    echo "Installing the CAhelp help files..."
  157. endif
  158. copy CAfiles/CAhelp CAhelp all quiet
  159.  
  160.  
  161.  
  162.  
  163. if EXISTS CA
  164.    echo "Updating the Checkbook Accountant program..."
  165. else
  166.    echo "Installing the Checkbook Accountant program..."
  167. endif
  168. copy CAfiles/CA "" quiet
  169. copy CAfiles/CAicons/def_CA1.3.info CAfiles/CAicons1.3/CA.info quiet
  170. copy CAfiles/CAicons/def_CA2.0.info CAfiles/CAicons2.0/CA.info quiet
  171.  
  172.  
  173.  
  174.  
  175. echo ""
  176. echo "Do you want an example Checkbook Accountant file?"
  177. ask "[Default = NO]"
  178. if WARN
  179.    echo "   Installing the example file..."
  180.    copy CAfiles/ex_ChkbkAcctnt.CAc "" quiet
  181.    copy CAfiles/CAicons/def_CAc1.3.info CAfiles/CAicons1.3/ex_ChkbkAcctnt.CAc.info quiet
  182.    copy CAfiles/CAicons/def_CAc2.0.info CAfiles/CAicons2.0/ex_ChkbkAcctnt.CAc.info quiet
  183. endif
  184.  
  185.  
  186.  
  187.  
  188. echo ""
  189. echo "Do you want the default budget and description list files?"
  190. ask "[Default = NO]"
  191. if WARN
  192.    echo "   Installing the default files..."
  193.    copy CAfiles/def_ChkbkAcctnt.CAb CAdefaults/def_ChkbkAcctnt.CAb quiet
  194.    copy CAfiles/def_ChkbkAcctnt.CAd CAdefaults/def_ChkbkAcctnt.CAd quiet
  195. endif
  196.  
  197.  
  198.  
  199.  
  200. echo ""
  201. echo "Do you want the User's Manual, Quick Docs, and Changes documentation?"
  202. ask "[Default = NO]"
  203. if WARN
  204.    echo "   Installing the documentation..."
  205.    copy CAfiles/CAmanual.txt "" quiet
  206.    copy CAfiles/CAicons/def_txt1.3.info CAfiles/CAicons1.3/CAmanual.txt.info quiet
  207.    copy CAfiles/CAicons/def_txt2.0.info CAfiles/CAicons2.0/CAmanual.txt.info quiet
  208.  
  209.    copy CAfiles/CAquickdocs.txt "" quiet
  210.    copy CAfiles/CAicons/def_txt1.3.info CAfiles/CAicons1.3/CAquickdocs.txt.info quiet
  211.    copy CAfiles/CAicons/def_txt2.0.info CAfiles/CAicons2.0/CAquickdocs.txt.info quiet
  212.  
  213.    copy CAfiles/CAchanges2.0-2.1.txt "" quiet
  214.    copy CAfiles/CAicons/def_txt1.3.info CAfiles/CAicons1.3/CAchanges2.0-2.1.txt.info quiet
  215.    copy CAfiles/CAicons/def_txt2.0.info CAfiles/CAicons2.0/CAchanges2.0-2.1.txt.info quiet
  216. endif
  217.  
  218.  
  219.  
  220.  
  221. echo ""
  222. ask "Do you want icons generated for the above files? [Default = NO]"
  223. if WARN
  224.    ask "   Are you running under AmigaDOS Release 2? [Default = NO]"
  225.    if WARN
  226.       echo "      Adding 2.0-style icons..."
  227.       copy CAfiles/CAicons2.0 "" all quiet
  228.  
  229.       echo "      Adding 2.0-style program file icons..."
  230.       copy CAfiles/CAicons/def_CAc2.0.info CAdefaults/def_CAc.info quiet
  231.       copy CAfiles/CAicons/def_CAb2.0.info CAdefaults/def_CAb.info quiet
  232.       copy CAfiles/CAicons/def_CAd2.0.info CAdefaults/def_CAd.info quiet
  233.    else
  234.       echo "      Adding 1.3-style icons..."
  235.       copy CAfiles/CAicons1.3 "" all quiet
  236.  
  237.       echo "      Adding 1.3-style program file icons..."
  238.       copy CAfiles/CAicons/def_CAc1.3.info CAdefaults/def_CAc.info quiet
  239.       copy CAfiles/CAicons/def_CAb1.3.info CAdefaults/def_CAb.info quiet
  240.       copy CAfiles/CAicons/def_CAd1.3.info CAdefaults/def_CAd.info quiet
  241.    endif
  242.  
  243.    echo ""
  244.    echo "   To view these icons properly, close & reopen this disk or drawer."
  245. else
  246.    ask "Are you running under AmigaDOS Release 2? [Default = NO]"
  247.    if WARN
  248.       echo "   Installing 2.0-style program file icons..."
  249.       copy CAfiles/CAicons/def_CAc2.0.info CAdefaults/def_CAc.info quiet
  250.       copy CAfiles/CAicons/def_CAb2.0.info CAdefaults/def_CAb.info quiet
  251.       copy CAfiles/CAicons/def_CAd2.0.info CAdefaults/def_CAd.info quiet
  252.    else
  253.       echo "   Installing 1.3-style program file icons..."
  254.       copy CAfiles/CAicons/def_CAc1.3.info CAdefaults/def_CAc.info quiet
  255.       copy CAfiles/CAicons/def_CAb1.3.info CAdefaults/def_CAb.info quiet
  256.       copy CAfiles/CAicons/def_CAd1.3.info CAdefaults/def_CAd.info quiet
  257.    endif
  258. endif
  259. skip complete
  260.  
  261.  
  262.  
  263.  
  264. LAB incomplete
  265. echo ""
  266. echo "Error during installation.  Be sure to unarchive the CHKBKACCTNT2.1.LHA"
  267. echo "file as directed before retrying the installation procedure."
  268. skip exit
  269.  
  270.  
  271.  
  272.  
  273. LAB complete
  274. echo ""
  275. echo "Installation is complete."
  276. echo ""
  277. echo "To install Checkbook Accountant onto another disk or directory, move"
  278. echo "the CAinstall script/icon file and CAfiles subdirectory to that"
  279. echo "location.  Otherwise, delete this file and the CAfiles subdirectory."
  280.  
  281.  
  282.  
  283.  
  284. LAB exit
  285. echo ""
  286. ask "Press RETURN to exit."
  287.