home *** CD-ROM | disk | FTP | other *** search
/ Merciful 3 / Merciful_Release_3.bin / software / a / animworkshopagafix.dms / animworkshopagafix.adf / InstallAW < prev    next >
Text File  |  1993-03-07  |  3KB  |  152 lines

  1. ; get a location
  2.  
  3. ;(set @default-dest "SYS:")
  4.  
  5. (set my_help
  6.    (cat
  7.       "Performing this installation will create a new drawer named 'AWorks' in the specified path. \n"
  8.       "It will also add the required 'ASSIGN' statements to your user-startup, or startup-sequence.\n"
  9.       "\n\n"
  10.       @askdir-help
  11.    )
  12. )
  13.  
  14. (set my_help2
  15.    (cat
  16.       "ANIM workshop requires a temporary area to store intermediate data. If you have a large amount of ram, we recommend that this be located in RAM:. Otherwise you should put it somewhere that you have spare harddisk space.\n"
  17.       "\n\n"
  18.       @askdir-help
  19.    )
  20. )
  21.  
  22. ; Get the path from the user
  23. (set dest_a
  24.    (askdir
  25.       (prompt "Where should the AWorks drawer be created/installed?")
  26.       (help my_help)
  27.       (default @default-dest)
  28.    )
  29. )
  30.  
  31. ; Get the Temp path from the user
  32. (set dest_temp
  33.    (askdir
  34.       (prompt "Where should the AWorks store its temporary files?")
  35.       (help my_help2)
  36.       (default "T:")
  37.    )
  38. )
  39.  
  40. ; Tell the Installer program where the user wants the data
  41. (set @default-dest dest_a)
  42.  
  43. ; Make sure the AWorks disk is present
  44. (askdisk
  45.    (prompt "Please insert the disk labeled \"AWorks\".")
  46.    (help   @askdisk-help)
  47.    (dest "AWorks")
  48.    (newname "AWorks")
  49. )
  50.  
  51. (set dest_b dest_a)
  52.  
  53. (set dest_a
  54.    (tackon dest_a "AWorks")
  55. )
  56.  
  57. (makedir dest_a
  58.    (infos)
  59. )
  60.  
  61. (working)
  62.  
  63. (copyfiles
  64.    (infos)
  65.    (help @copyfiles-help)
  66.    (source "AWorks:AWorks")
  67.    (dest dest_a)
  68. )
  69. (copyfiles
  70.    (infos)
  71.    (help @copyfiles-help)
  72.    (source "AWorks:AWorks.Data")
  73.    (dest dest_a)
  74. )
  75. (copyfiles
  76.    (infos)
  77.    (help @copyfiles-help)
  78.    (source "AWorks:AWorks.Options")
  79.    (dest dest_a)
  80. )
  81.  
  82. (set rexx_name
  83.    (tackon dest_a "REXX")
  84. )
  85.  
  86. (set data_name
  87.    (tackon dest_a "Data")
  88. )
  89.  
  90. (makedir rexx_name
  91.    (infos)
  92. )
  93.  
  94. (makedir data_name
  95.    (infos)
  96. )
  97.  
  98. (copyfiles
  99.    (all)
  100.    (infos)
  101.    (help @copyfiles-help)
  102.    (source "AWorks:Rexx")
  103.    (dest rexx_name)
  104. )
  105.  
  106. (copyfiles
  107.    (all)
  108.    (infos)
  109.    (help @copyfiles-help)
  110.    (source "AWorks:Data")
  111.    (dest data_name)
  112. )
  113.  
  114. ; Add Assignments to user-startup
  115. (if (> @user-level 1)
  116.    (
  117.       (if
  118.          (askbool
  119.             (prompt "Should the required 'ASSIGN's be added to your startup sequence?\n")
  120.             (help @askbool-help)
  121.          )
  122.          (
  123.             (startup "ANIM Workshop"
  124.                (prompt "")
  125.                (Help "ANIM workshop will not run without these assigns.")
  126.                (command "assign AWorks: " dest_a "\n")
  127.                (command "assign AWTemp: " dest_temp "\n")
  128.             )
  129.          )
  130.          ; else askbool assigns
  131.          (
  132.             (message "The program will not function properly without the following assignments:\n\n"
  133.                      "assign AWorks: " dest_a "\n"
  134.                      "assign AWTemp: " dest_temp "\n\n"
  135.                      "Make sure that these assignments have been made prior to running the application\n"
  136.             )
  137.          )
  138.       )
  139.    )
  140.    ; else novice/average user
  141.    (startup "ANIM Workshop"
  142.       (prompt "")
  143.       (Help "ANIM workshop will not run without these assigns.")
  144.       (command "assign AWorks: " dest_a "\n")
  145.       (command "assign AWTemp: " dest_temp "\n")
  146.    )
  147. )
  148.  
  149. (makeassign "AWorks" dest_a)
  150. (makeassign "AWTemp" dest_temp)
  151. ;
  152.