home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Emulatoren / IA-PCT30.DMS / in.adf / Install-PCTask < prev    next >
Encoding:
Text File  |  1994-12-17  |  8.1 KB  |  437 lines

  1. ; PC-Task v3.0 Install Script (1.0)
  2. ; 29/11/94    Copyright 1994 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 3 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 #whichone-help
  28. (cat "You are able to choose which PC-Task program "
  29.      "to install.  The difference is that the Turbo "
  30.      "version of PC-Task uses 4 times as much memory "
  31.      "and the program is over twice the size, but the "
  32.      "advantage is you get faster emulation. " 
  33. ))
  34.  
  35. (set #notknown-set
  36. (cat "CPU not known.  Please chose program to install."
  37. ))
  38.  
  39. (set #install-asl
  40. (cat "You have Kickstart 2.0+\nasl.library can be used\n"
  41.      "This allows you to select your screen modes from "
  42.      "a list of available modes on your machine. "
  43. ))
  44.  
  45. (set #install-hardfiledevice
  46. (cat "Do you wish to install the hardfile.device?\n"
  47.      "This is needed if you wish to access a PC drive "
  48.      "(which you have created for PC-Task) from AmigaDOS "
  49. ))
  50.  
  51. (set #copy-hardfile
  52. (cat "Copying hardfile.device"
  53. ))
  54.  
  55. (set #install-msdosutils
  56. (cat "Do you wish to install the MSDOSUtils directory?\n"
  57.      "This directory contains some useful utilities "
  58.      "which will come in handy when using PC-Task. "
  59. ))
  60.  
  61. (set #install-tdpatch
  62. (cat "Do you wish to install the TDPatch1213 program?\n"
  63.      "This is necessary if you are running Kickstart 1.3 "
  64.      "or Kickstart 1.2.  It patches the disk drive so "
  65.      "PC-Task will work correctly.  TDPatch1213 should be "
  66.      "run before you start PC-Task. "
  67. ))
  68.  
  69. (set #install-leaveslowfast
  70. (cat "Do you wish to install the LeaveSlowFast program?\n"
  71.      "This program is useful to get more memory when you "
  72.      "have a machine with 512K Chip memory and 512K Fast "
  73.      "RAM.  Use this so PC-Task can allocate more memory "
  74.      "for its emulation. "
  75. ))
  76.  
  77. (set #copy-msdosutils
  78. (cat "Copying MSDOSUtils directory"
  79. ))
  80.  
  81. ;--------------------------------------------------
  82.  
  83. (set dest2    (askdir    (prompt #pctask-location)
  84.             (default @default-dest)
  85.             (help @askdir-help)
  86.             )
  87. )
  88.  
  89. (set dest1 (tackon dest2 "PC-Task"))
  90. (makedir dest1 (infos))
  91.  
  92. ; copy the PC-Task program
  93. (set machine (database "cpu"))
  94.  
  95. (if (OR (= machine "68000") (= machine "68010"))
  96.     (
  97.         (set types_to_install
  98.             (askoptions
  99.                 (prompt #data-set)
  100.                 (help #whichone-help)
  101.                 (choices "PC-Task68000_10"
  102.                      "PC-TaskTurbo68000_10"
  103.                 )
  104.             )
  105.         )
  106.  
  107.         (if (IN types_to_install 0)
  108.             (
  109.                 (copyfiles
  110.                     (prompt #copying-files)
  111.                     (source "PCTASK_30:")
  112.                     (dest dest1)
  113.                     (choices "PC-Task68000_10")
  114.                     (infos)
  115.                     (help @copyfiles-help)
  116.                 )
  117.                 (tooltype
  118.                     (help @tooltype-help)
  119.                     (dest (tackon dest1 "PC-Task68000_10"))
  120.                     (noposition)
  121.                     (swapcolors)
  122.                 ) 
  123.             )
  124.         )
  125.     
  126.         (if (IN types_to_install 1)
  127.             (
  128.                 (copyfiles
  129.                     (prompt #copying-files)
  130.                     (source "PCTASK_30:")
  131.                     (dest dest1)
  132.                     (choices "PC-TaskTurbo68000_10")
  133.                     (infos)
  134.                     (help @copyfiles-help)
  135.                 )
  136.                 (tooltype
  137.                     (help @tooltype-help)
  138.                     (dest (tackon dest1 "PC-TaskTurbo68000_10"))
  139.                     (noposition)
  140.                     (swapcolors)
  141.                 ) 
  142.             )
  143.         )
  144.     )
  145.  
  146.     (
  147.         (if (OR (= machine "68020") (= machine "68030") (= machine "68040"))
  148.             (
  149.  
  150.                 (set types_to_install
  151.                     (askoptions
  152.                         (prompt #data-set)
  153.                         (help #whichone-help)
  154.                         (choices "PC-Task68020_60"
  155.                              "PC-TaskTurbo68020_60"
  156.                         )
  157.                     )
  158.                 )
  159.  
  160.                 (if (IN types_to_install 0)
  161.                     (
  162.                         (copyfiles
  163.                             (prompt #copying-files)
  164.                             (source "PCTASK_30:")
  165.                             (dest dest1)
  166.                             (choices "PC-Task68020_60")
  167.                             (infos)
  168.                             (help @copyfiles-help)
  169.                         )
  170.                         (tooltype
  171.                             (help @tooltype-help)
  172.                             (dest (tackon dest1 "PC-Task68020_60"))
  173.                             (noposition)
  174.                             (swapcolors)
  175.                         ) 
  176.                     )
  177.                 )
  178.  
  179.                 (if (IN types_to_install 1)
  180.                     (
  181.                         (copyfiles
  182.                             (prompt #copying-files)
  183.                             (source "PCTASK_30:")
  184.                             (dest dest1)
  185.                             (choices "PC-TaskTurbo68020_60")
  186.                             (infos)
  187.                             (help @copyfiles-help)
  188.                         )
  189.                         (tooltype
  190.                             (help @tooltype-help)
  191.                             (dest (tackon dest1 "PC-TaskTurbo68020_60"))
  192.                             (noposition)
  193.                             (swapcolors)
  194.                         ) 
  195.                     )
  196.                 )
  197.     
  198.             )
  199.  
  200.  
  201.             (
  202.                 (set types_to_install
  203.                     (askoptions
  204.                         (prompt #notknown-set)
  205.                         (help #whichone-help)
  206.                         (choices "PC-Task68000_10"
  207.                              "PC-TaskTurbo68000_10"
  208.                              "PC-Task68020_60"
  209.                              "PC-TaskTurbo68020_60"
  210.                         )
  211.                     )
  212.                 )
  213.  
  214.                 (if (IN types_to_install 0)
  215.                     (
  216.                         (copyfiles
  217.                             (prompt #copying-files)
  218.                             (source "PCTASK_30:")
  219.                             (dest dest1)
  220.                             (choices "PC-Task68000_10")
  221.                             (infos)
  222.                             (help @copyfiles-help)
  223.                         )
  224.                         (tooltype
  225.                             (help @tooltype-help)
  226.                             (dest (tackon dest1 "PC-Task68000_10"))
  227.                             (noposition)
  228.                             (swapcolors)
  229.                         ) 
  230.                     )
  231.                 )
  232.             
  233.                 (if (IN types_to_install 1)
  234.                     (
  235.                         (copyfiles
  236.                             (prompt #copying-files)
  237.                             (source "PCTASK_30:")
  238.                             (dest dest1)
  239.                             (choices "PC-TaskTurbo68000_10")
  240.                             (infos)
  241.                             (help @copyfiles-help)
  242.                         )
  243.                         (tooltype
  244.                             (help @tooltype-help)
  245.                             (dest (tackon dest1 "PC-TaskTurbo68000_10"))
  246.                             (noposition)
  247.                             (swapcolors)
  248.                         ) 
  249.                     )
  250.                 )
  251.  
  252.                 (if (IN types_to_install 2)
  253.                     (
  254.                         (copyfiles
  255.                             (prompt #copying-files)
  256.                             (source "PCTASK_30:")
  257.                             (dest dest1)
  258.                             (choices "PC-Task68020_60")
  259.                             (infos)
  260.                             (help @copyfiles-help)
  261.                         )
  262.                         (tooltype
  263.                             (help @tooltype-help)
  264.                             (dest (tackon dest1 "PC-Task68020_60"))
  265.                             (noposition)
  266.                             (swapcolors)
  267.                         ) 
  268.                     )
  269.                 )
  270.             
  271.                 (if (IN types_to_install 3)
  272.                     (                
  273.                         (copyfiles
  274.                             (prompt #copying-files)
  275.                             (source "PCTASK30:")
  276.                             (dest dest1)
  277.                             (choices "PC-TaskTurbo68020_60")
  278.                             (infos)
  279.                             (help @copyfiles-help)
  280.                         )
  281.                         (tooltype
  282.                             (help @tooltype-help)
  283.                             (dest (tackon dest1 "PC-TaskTurbo68020_60"))
  284.                             (noposition)
  285.                             (swapcolors)
  286.                         ) 
  287.                     )
  288.                 )
  289.             )
  290.         )
  291.     )
  292. )
  293.  
  294.  
  295. (copyfiles
  296.     (source "PCTASK_30:")
  297.     (dest dest1)
  298.     (choices "README_FIRST!")
  299.     (infos)
  300.     (help @copyfiles-help)
  301. )
  302.  
  303. (tooltype
  304.     (help @tooltype-help)
  305.     (dest (tackon dest1 "README_FIRST!"))
  306.     (noposition)
  307.         
  308. (set vernum (getversion))
  309. (set ver (/ vernum 65536))
  310.  
  311. (if (AND (>= ver 37) (<= ver 38))
  312.     (
  313.         (copylib
  314.             (prompt #install-asl)
  315.             (source "PCTASK_30:libs/asl.library")
  316.             (dest "libs:")
  317.             (optional nofail askuser force)
  318.             (confirm)
  319.             (help @copylib-help)
  320.         )
  321.     )
  322. )
  323.  
  324.  
  325. (if (<= ver 34)
  326.     (
  327.         (set hardy
  328.             (askbool
  329.                 (prompt #install-tdpatch)
  330.                 (help #help-askbool)
  331.             )
  332.         )
  333.  
  334.         (if (= hardy 1)
  335.             (
  336.                 (copyfiles
  337.                     (prompt #copying-files)
  338.                     (source "PCTASK_30:")
  339.                     (dest dest1)
  340.                     (choices "TDPatch1213"
  341.                              "TDPatch1213.doc")
  342.                     (infos)
  343.                     (help @copyfiles-help)
  344.                 )
  345.                 (tooltype
  346.                     (help @tooltype-help)
  347.                     (dest (tackon dest1 "TDPatch1213"))
  348.                     (noposition)
  349.                 ) 
  350.                 (tooltype
  351.                     (help @tooltype-help)
  352.                     (dest (tackon dest1 "TDPatch1213.doc"))
  353.                     (noposition)
  354.                 ) 
  355.             )
  356.         )
  357.     )
  358. )
  359.  
  360. (set hardy     (askbool
  361.             (prompt #install-leaveslowfast)
  362.             (help #help-askbool)
  363.         )
  364. )
  365.  
  366. (if (= hardy 1)
  367.     (
  368.         (copyfiles
  369.             (prompt #copy-hardfile)
  370.             (source "PCTASK_30:")
  371.             (dest dest1)
  372.             (choices "LeaveSlowFast"
  373.                      "LeaveSlowFast.doc")
  374.             (infos)
  375.             (help @copyfiles-help)
  376.         )
  377.         (tooltype
  378.             (help @tooltype-help)
  379.             (dest (tackon dest1 "LeaveSlowFast"))
  380.             (noposition)
  381.         ) 
  382.         (tooltype
  383.             (help @tooltype-help)
  384.             (dest (tackon dest1 "LeaveSlowFast.doc"))
  385.             (noposition)
  386.         ) 
  387.     )
  388. )
  389.  
  390.  
  391.  
  392. (set hardy     (askbool
  393.             (prompt #install-hardfiledevice)
  394.             (help #help-askbool)
  395.         )
  396. )
  397.  
  398. (if (= hardy 1)
  399.     (copylib
  400.         (prompt #copy-hardfile)
  401.         (source "PCTASK_30:devs/hardfile.device")
  402.         (dest "devs:")
  403.         (optional nofail askuser force)
  404.         (confirm)
  405.         (help @copyfiles-help)
  406.     )
  407. )
  408.  
  409.  
  410. (set hardy     (askbool
  411.             (prompt #install-msdosutils)
  412.             (help #help-askbool)
  413.         )
  414. )
  415.  
  416. (if (= hardy 1)
  417.     (
  418.         (set dest2 (tackon dest1 "MSDOSUtils"))
  419.         (copyfiles
  420.             (infos)
  421.             (prompt #copy-msdosutils)
  422.             (source "PCTASK_30:MSDOSUtils")
  423.             (dest dest2)
  424.             (all)
  425.             (help @copyfiles-help)
  426.         )
  427.         (tooltype
  428.             (help @tooltype-help)
  429.             (dest dest2)
  430.             (noposition)
  431.         ) 
  432.     )
  433. )
  434.  
  435. (set @default-dest dest1)
  436.