home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / reference / amiga_mail_vol1 / program / swonhd < prev    next >
Text File  |  1990-01-26  |  7KB  |  151 lines

  1. (c)  Copyright 1989 Commodore-Amiga, Inc.   All rights reserved.
  2. The information contained herein is subject to change without notice, and 
  3. is provided "as is" without warranty of any kind, either expressed or implied.  
  4. The entire risk as to the use of this information is assumed by the user.
  5.  
  6.  
  7.  
  8.               Getting Software to Run on Hard Disks 
  9.  
  10.                       by Michael Colligon
  11.  
  12.  
  13. With the growing popularity of the Amiga 500 and 2000, the use of hard 
  14. disks is becoming increasingly more important to consider when programming 
  15. for the Amiga.  If a user wants to run multiple applications using floppy 
  16. disk drives, he could spend the better part of his time swapping disks, and 
  17. thus not getting much work done.  But by adding a hard disk to the Amiga
  18. storage capacity and system performance are greatly enhanced.
  19.  
  20. But adding a hard disk does not solve every problem.  There is no easy and 
  21. efficient way to install application software on an Amiga hard disk.  Let's 
  22. look at the user's options.
  23.  
  24. The novice user may try to copy the files from the application disk to the
  25. hard disk by moving the icons over.  This has the advantage of being 
  26. extremely easy to do for any user.  The disadvantage is that most programs 
  27. will require files, other than the ones that have icons, in order to run.  
  28. The application may also need an ASSIGN statement in the startup-sequence 
  29. on the boot disk to set a required volume name on the hard disk.  This is 
  30. no easy task for the novice user.
  31.  
  32. More advanced users may try using the command COPY DFO: to DHO: ALL.  This 
  33. copies all of the files to the hard disk.  This is easy to do if the user
  34. knows the CLI.  Its disadvantages are that it may over-write existing
  35. system files or waste disk space with unneeded files.  In addition, the hard 
  36. disk will not be very well organized.  And it may still be necessary to edit
  37. the startup-sequence to set the correct volume name.
  38.  
  39. The experienced user will make a new directory on their hard disk and then 
  40. use the copy command with ALL option to copy all of the files on the original 
  41. disk to the new directory on the hard disk.  This is not really harder to do 
  42. than the previous example, but the user must think to do it in the first 
  43. place.  This method has the advantage that it will not over-write existing 
  44. files and organizes the hard disk better.  Its disadvantage is that some 
  45. files on the application disk which must be in a certain directory - like 
  46. fonts, drivers or libraries - will end up in the application directory.  
  47. Of course, it may also be necessary to edit the startup-sequence to set 
  48. a volume name.
  49.  
  50. The expert Amiga user can look at the files on the application disk and 
  51. determine which files need to be copied and where they should be placed.  
  52. This method has the advantage of efficiently using hard disk space and 
  53. placing the files in the correct directories.  Unfortunately, very few users
  54. indeed will be able to accomplish this on their own.  
  55.  
  56. Here are a few examples of what would have to be done to correctly
  57. copy some existing application programs to a hard disk.
  58.  
  59. A-Talk Plus:
  60.  
  61.  Program Disk:
  62.    Create a new drawer on the hard disk.
  63.    Copy the settings drawer and its contents to the new drawer.
  64.    Copy the Scripts drawer and its contents to the new drawer.
  65.    Copy the Drawings drawer and its contents to the new drawer.
  66.    Copy the Hi-Res drawer and its contents to the new drawer.
  67.    Copy the UNIX drawer and its contents to the new drawer.
  68.    Copy the contents of the Fonts directory to the Fonts: on the
  69.       hard drive.
  70.    Copy A-Talk_Plus and A-Talk-Plus.info to the new drawer. 
  71.    Copy for Updates, For Updates.info, and More to the new drawer.
  72.  
  73.  Demo Disk:
  74.    Copy the Demos directory and its contents to the new drawer.
  75.    Copy the contents of the Drawings drawer to the new Drawings
  76.       drawer.
  77.    Copy the contents of the Hi-Res drawer to the new Hi-Res drawer.
  78.    Copy to Run Demos and To Run Demos.info to the new drawer.
  79.  
  80.  
  81. Deluxe Paint II:
  82.  
  83.   Key Disk: 
  84.    Create a new drawer on the hard disk.
  85.    Copy the Lo-Res abd Brush drawers and their contents to the new
  86.       drawer.
  87.    Copy the Hi-Res and Interlace drawers to the new drawer.
  88.    Copy Dpaint and dpaint.info to the new drawer.
  89.  
  90.   Art Disk:
  91.    Copy the Med-Res drawer and its contents to the new drawer.
  92.    Copy the contents of the Brush and Lo-Res drawers to their new
  93.       drawers.
  94.  
  95.   Finishing touches:
  96.    There are 3 files (Path, c/Sigfile, and devs/Printer) which the
  97.       user has to decide where they are needed, it at all.
  98.    The command "ASSIGN DPAINT: pathname" must be added to the
  99.       startup-sequence on the boot disk, where pathname is the
  100.       directory route to the Dpaint II drawer (i.e. dhO:Dpaint or
  101.       dhO:Graphics/Dpaint).  The icons will have to be rearranged in 
  102.       some ofthe drawers.
  103.  
  104.  
  105.  
  106. Solutions
  107.  
  108. In order to solve these installation problems, the application disk
  109. could contain an icon driven program to copy the necessary files from
  110. the application disk to the proper places on the hard disk.  The 
  111. installation program would copy files that belong in specific system 
  112. directories to the right place while program and data files would
  113. be copied to the new application directory.  An install program could
  114. be a simple script or a custom program.
  115.  
  116. A script file can be linked to an icon and executed via XICON.  This is 
  117. a quick and easy way to provide a hard disk install program for your 
  118. applications since DOS scripts are easier to write than custom programs.
  119. However you will not be able to fully use menus, gadgets or other
  120. graphical features in the install program since the script runs under
  121. CLI.  A script is usually slower than a custom install program as well. 
  122.  
  123. A custom hard disk install program for each application is the most user
  124. friendly solution.  This allows full use of the graphical user interface
  125. and in most cases will run faster than a script.  However, custom programs 
  126. are usually harder to write and harder to maintain.  In either case, an 
  127. application which has a hard disk install program is superior to an
  128. application that does not.
  129.  
  130.  
  131. Alternatives
  132.  
  133. There is another alternative - a general purpose hard disk install
  134. program that can look at an application disk and determine where files
  135. should go.  It could also allow the user to specify the location of the 
  136. program and data files on the hard disk and could modify the default tool 
  137. type in the info file so that it points to the correct place on the hard 
  138. disk instead of having to add an assign command to the startup-sequence.  
  139. This program could be included with a hard disk backup package, so that 
  140. the user has the ability to construct his hard disk as well as save it.
  141.  
  142. Developers should consider the use of hard disks when writing and
  143. distributing their software.  Some software packages cannot be run from 
  144. a hard disk, while others will not even support the hard disk for data.  
  145. To support the hard disk properly, you should include a hard disk install
  146. program with your application to allow the average user to quickly and 
  147. easily copy his software onto a hard disk.   As more end users add hard 
  148. disks to their system, this will become am increasingly important factor
  149. in the success of your products.
  150.  
  151.