home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Emulatoren / DC-PCT40.DMS / in.adf / Install-PCTask < prev    next >
Encoding:
Text File  |  1997-01-06  |  4.2 KB  |  244 lines

  1. ; PC-Task v4.0 Install Script (1.0)
  2. ; 12/12/96    Copyright 1994-1997 Quasar Distribution
  3. ; Translated by:
  4.  
  5. (set @default-dest "SYS:")
  6.  
  7. ; English language
  8.  
  9. (set #pctask-location
  10. (cat "Select location to put PC-Task 4 directory:"
  11. ))
  12.  
  13. (set #copying-files
  14. (cat "Copying files..."
  15. ))
  16.  
  17. (set #help-askbool
  18. (cat "Please select Yes to install the file(s) "
  19.      "or select No so they are not installed. "
  20. ))
  21.  
  22. (set #data-set
  23. (cat "Which programs do you wish to install?"
  24. ))
  25.  
  26.  
  27. (set #notknown-set
  28. (cat "CPU not known.  Please chose program to install."
  29. ))
  30.  
  31. (set #install-asl
  32. (cat "You have Kickstart 2.0+\nasl.library can be used\n"
  33.      "This allows you to select your screen modes from "
  34.      "a list of available modes on your machine. "
  35. ))
  36.  
  37. (set #install-hardfiledevice
  38. (cat "Do you wish to install the hardfile.device?\n"
  39.      "This is needed if you wish to access a PC drive "
  40.      "(which you have created for PC-Task) from AmigaDOS "
  41. ))
  42.  
  43. (set #copy-hardfile
  44. (cat "Copying hardfile.device"
  45. ))
  46.  
  47. (set #install-msdosutils
  48. (cat "Do you wish to install the MSDOSUtils directory?\n"
  49.      "This directory contains some useful utilities "
  50.      "which will come in handy when using PC-Task. "
  51. ))
  52.  
  53. (set #copy-msdosutils
  54. (cat "Copying MSDOSUtils directory"
  55. ))
  56.  
  57. ;--------------------------------------------------
  58.  
  59. (set dest2    (askdir    (prompt #pctask-location)
  60.             (default @default-dest)
  61.             (help @askdir-help)
  62.             )
  63. )
  64.  
  65. (set dest1 (tackon dest2 "PC-Task4"))
  66. (makedir dest1 (infos))
  67.  
  68. ; copy the PC-Task program
  69. (set machine (database "cpu"))
  70.  
  71. (if (OR (= machine "68000") (= machine "68010"))
  72. (
  73.     (abort "You cannot run PC-Task 4 on your processor!")
  74. )
  75. )
  76.  
  77. (if (OR (= machine "68020") (= machine "68030") (= machine "68040"))
  78. (
  79.     (set types_to_install
  80.         (askoptions
  81.             (prompt #data-set)
  82.             (help #whichone-help)
  83.             (choices "PC-Task_Dynamic" "PC-Task_Interpretive")
  84.         )
  85.     )
  86.  
  87.     (if (IN types_to_install 0)
  88.         (
  89.         (copyfiles
  90.             (prompt #copying-files)
  91.             (source "PCT4_Disk:")
  92.             (dest dest1)
  93.             (choices "PC-Task_Dynamic")
  94.             (infos)
  95.             (help @copyfiles-help)
  96.         )
  97.         (tooltype
  98.             (help @tooltype-help)
  99.             (dest (tackon dest1 "PC-Task_Dynamic"))
  100.             (noposition)
  101.             (swapcolors)
  102.         )
  103.         ) 
  104.     )
  105.  
  106.     (if (IN types_to_install 1)
  107.     (
  108.         (askdisk
  109.             (prompt #copying-files)
  110.             (dest "PCT4_Disk")
  111.             (help @askdisk-help)
  112.         )
  113.         (copyfiles
  114.             (prompt #copying-files)
  115.             (source "PCT4_Disk:")
  116.             (dest dest1)
  117.             (choices "PC-Task_Interpretive")
  118.             (infos)
  119.             (help @copyfiles-help)
  120.         )
  121.         (tooltype
  122.             (help @tooltype-help)
  123.             (dest (tackon dest1 "PC-Task_Interpretive"))
  124.             (noposition)
  125.             (swapcolors)
  126.         ) 
  127.         )
  128.     )
  129. )
  130. )
  131.     
  132.  
  133. (copyfiles
  134.     (source "PCT4_Disk:")
  135.     (dest dest1)
  136.     (choices "README_FIRST!")
  137.     (infos)
  138.     (help @copyfiles-help)
  139. )
  140.  
  141. (tooltype
  142.     (help @tooltype-help)
  143.     (dest (tackon dest1 "README_FIRST!"))
  144.     (noposition)
  145.     (setdefaulttool "more")
  146.  
  147. (copyfiles
  148.     (source "PCT4_Disk:")
  149.     (dest dest1)
  150.     (choices "PCTCrossMount")
  151.     (infos)
  152.     (help @copyfiles-help)
  153. )
  154.  
  155. (tooltype
  156.     (help @tooltype-help)
  157.     (dest (tackon dest1 "PCTCrossMount"))
  158.     (noposition)
  159.  
  160. (copyfiles
  161.     (source "PCT4_Disk:")
  162.     (dest dest1)
  163.     (choices "PCTCrossMount.doc")
  164.     (infos)
  165.     (help @copyfiles-help)
  166. )
  167.  
  168. (tooltype
  169.     (help @tooltype-help)
  170.     (dest (tackon dest1 "PCTCrossMount.doc"))
  171.     (noposition)
  172.     (setdefaulttool "more")
  173.         
  174. (set vernum (getversion))
  175. (set ver (/ vernum 65536))
  176.  
  177. (if (AND (>= ver 37) (<= ver 38))
  178.     (
  179.         (copylib
  180.             (prompt #install-asl)
  181.             (source "PCT4_Disk:libs/asl.library")
  182.             (dest "libs:")
  183.             (optional nofail askuser force)
  184.             (confirm)
  185.             (help @copylib-help)
  186.         )
  187.     )
  188. )
  189.  
  190.  
  191.  
  192. (set hardy     (askbool
  193.             (prompt #install-hardfiledevice)
  194.             (help #help-askbool)
  195.         )
  196. )
  197.  
  198. (if (= hardy 1)
  199.     (copylib
  200.         (prompt #copy-hardfile)
  201.         (source "PCT4_Disk:devs/hardfile.device")
  202.         (dest "devs:")
  203.         (optional nofail askuser force)
  204.         (confirm)
  205.         (help @copyfiles-help)
  206.     )
  207. )
  208.  
  209.  
  210. (set hardy     (askbool
  211.             (prompt #install-msdosutils)
  212.             (help #help-askbool)
  213.         )
  214. )
  215.  
  216. (if (= hardy 1)
  217.     (
  218.         (set dest2 (tackon dest1 "MSDOSUtils"))
  219.         (copyfiles
  220.             (infos)
  221.             (prompt #copy-msdosutils)
  222.             (source "PCT4_Disk:MSDOSUtils")
  223.             (dest dest2)
  224.             (all)
  225.             (help @copyfiles-help)
  226.         )
  227.         (tooltype
  228.             (help @tooltype-help)
  229.             (dest dest2)
  230.             (noposition)
  231.         )
  232.         (tooltype
  233.             (help @tooltype-help)
  234.             (dest (tackon dest2 "ProduceUtilDisk.doc"))
  235.             (setdefaulttool "more") 
  236.         )    
  237.     )
  238. )
  239.  
  240. (set @default-dest dest1)
  241.