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