home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 2 / agavol2.iso / software / utilities / misc / sysspeed / install next >
Text File  |  1996-01-23  |  7KB  |  390 lines

  1.  
  2. ;================================= ENGLISH ==================================
  3.  
  4. (set languages-default 1)
  5.  
  6. (set #bad-kick "You must be using Kickstart 2.04+ to install SysSpeed")
  7.  
  8. (set #copy-main "Copying SysSpeed...")
  9.  
  10. (set #copy-datas "Copying SysSpeed datafiles...")
  11.  
  12. (set #copy-doc "Copying Documentation...")
  13.  
  14. (set #copy-reqtools-library "Copying reqtools.library to Libs: ...")
  15.  
  16. (set #copy-powerpacker-library "Copying powerpacker.library to Libs: ...")
  17.  
  18. (set #copy-expname-library "Copying expname.library to Libs: ...")
  19.  
  20. (set #copy-xpkmaster-library "Copying xkpmaster.library to Libs: ...")
  21.  
  22. (set #copy-shri-library "Copying xpkSHRI.library to Libs:Compressors/ ...")
  23.  
  24. (set #copy-fonts "Copying XEN Font to Fonts: ...")
  25.  
  26. (set #install-select
  27.     (cat
  28.         "Please select the different parts of SysSpeed that you"
  29.         " would like to install:"
  30.     )
  31. )
  32.  
  33. (set #install-select-help
  34.     (cat
  35.         "SysSpeed: The Ultimate Speedtester...\n"
  36.     )
  37. )
  38.  
  39. (set #doc-select
  40.     (cat
  41.         "Please select your favourite documentation that you would"
  42.         " like to install:"
  43.     )
  44. )
  45.  
  46. (set #doc-select-help
  47.     (cat
  48.         "Select you favourite documentation!"
  49.     )
  50. )
  51.  
  52. (set #item-main "SysSpeed Mainprogram")
  53.  
  54. (set #item-datas "SysSpeedDatas")
  55.  
  56. (set #item-doc "Documentation")
  57.  
  58. (set #item-libraries "Libraries")
  59.  
  60. (set #item-fonts "XEN Font")
  61.  
  62. (set #where-main "Where would you like to install the SysSpeed mainprogram?")
  63.  
  64. (set #where-main-help
  65.     (cat
  66.         "This is the destination directory for the SysSpeed mainprogram"
  67.     )
  68. )
  69.  
  70. (set #where-datas "Where would you like to install Datas for SysSpeed ?")
  71.  
  72. (set #where-datas-help
  73.     (cat
  74.         "This is the destination directory of Datas for SysSpeed!"
  75.     )
  76. )
  77.  
  78. (set #where-doc "Where would you like to install the Documentations?")
  79.  
  80. (set #install-exit
  81.     (cat
  82.         "Thank you for installing SysSpeed ..."
  83.     )
  84. )
  85.  
  86. (set #install-start
  87.     (cat
  88.         "\nWelcome to SysSpeed installation utility!\n\n"
  89.         "Written and performed by cLYDE rADCLIFFE/AD!\n"
  90.     )
  91. )
  92.  
  93. ;===[ German Documentation ]=================================================
  94.  
  95. (if (= @language "deutsch")
  96.  (
  97. (set languages-default 2)
  98.  
  99. (set #bad-kick "Man benötigt Kickstart 2.04 oder höher, um SysSpeed benutzen zu können!")
  100.  
  101. (set #copy-main "Kopiere SysSpeed...")
  102.  
  103. (set #copy-doc "Kopiere Dokumentation...")
  104.  
  105. (set #copy-reqtools-library "Kopiere reqtools.library ins Libs: ...")
  106.  
  107. (set #copy-powerpacker-library "Kopiere powerpacker.library ins Libs: ...")
  108.  
  109. (set #copy-expname-library "Kopiere powerpacker.library ins Libs: ...")
  110.  
  111. (set #copy-xpkmaster-library "Kopiere xkpmaster.library ins Libs: ...")
  112.  
  113. (set #copy-shri-library "Kopiere shri.library ins Libs:Compressors/ ...")
  114.  
  115. (set #copy-fonts "Kopiere XEN Zeichensatz ins Fonts: ...")
  116.  
  117. (set #install-select
  118.     (cat
  119.         "Bitte wähle die einzelnen Teile des SysSpeed's, aus die"
  120.         " Du installieren möchtest:"
  121.     )
  122. )
  123.  
  124. (set #doc-select
  125.     (cat
  126.         "Bitte wähle die Dokumentationen aus die Du installieren"
  127.         " möchtest:"
  128.     )
  129. )
  130.  
  131. (set #item-main "SysSpeed Hauptprogramm")
  132.  
  133. (set #item-datas "SysSpeed Datenfiles")
  134.  
  135. (set #item-doc "Anleitung")
  136.  
  137. (set #item-libraries "Libraries")
  138.  
  139. (set #item-fonts "XEN Zeichensatz")
  140.  
  141. (set #where-main "Wohin möchtest Du SysSpeed installieren?")
  142.  
  143. (set #where-main-help
  144.     (cat
  145.         "Dies ist das Zielverzeichnis von SysSpeed."
  146.     )
  147. )
  148.  
  149. (set #where-datas "Wohin möchtest Du die Daten von SysSpeed installieren?")
  150.  
  151. (set #where-datas-help
  152.     (cat
  153.         "Dies ist das Zielverzeichnis, von den daten die das"
  154.         " SysSpeed benötigt!"
  155.     )
  156. )
  157.  
  158. (set #where-doc "Wohin möchtest Du die Dokumentation installieren?")
  159.  
  160. (set #install-exit
  161.     (cat
  162.         "Vielen Dank für die Installation von SysSpeed ..."
  163.     )
  164. )
  165.  
  166. (set #install-start
  167.     (cat
  168.         "\nWillkommen zur SysSpeed Installation!\n\n"
  169.         "Geschrieben von cLYDE rADCLIFFE/AD!\n"
  170.     )
  171. )
  172.  
  173.  )
  174. )
  175.  
  176.  
  177. ;============================== PROGRAM-START================================
  178.  
  179. (set @default-dest "")
  180.  
  181. ; Check Kickstart (>= v2.0) Version.
  182.  
  183. (if (< (/ (getversion) 65536) 37)
  184.     (abort #bad-kick)
  185. )
  186.  
  187. (message #install-start)
  188.  
  189. (set install-default 15)
  190.  
  191. (if (NOT (exists "Fonts:XEN" (noreq)))
  192.     (set install-default (BITOR install-default 16))
  193. )
  194.  
  195. (welcome)
  196.  
  197. (set install-files
  198.     (askoptions
  199.         (prompt    #install-select)
  200.         (help    #install-select-help "\n\n" @askoptions-help)
  201.         (choices
  202.             #item-main
  203.             #item-datas
  204.             #item-doc
  205.             #item-libraries
  206.             #item-fonts
  207.         )
  208.         (default install-default)
  209.     )
  210. )
  211.  
  212. (set startup-files 0)
  213.  
  214. (if (BITAND install-files 1)
  215.     (
  216.     (set main-dest
  217.         (askdir
  218.             (prompt    #where-main)
  219.             (help    #where-main-help "\n\n" @askdir-help)
  220.             (default "SYS:")
  221.             )
  222.         )
  223.     )
  224. )
  225.  
  226. (if (BITAND install-files 2)
  227.     (set datas-dest
  228.         (askdir
  229.             (prompt    #where-datas)
  230.             (help    #where-datas-help "\n\n" @askdir-help)
  231.             (default "SYS:")
  232.         )
  233.     )
  234. )
  235.  
  236. ; Check + DefaultSet + Request Of Documentation(s)
  237.  
  238. (if (BITAND install-files 4)
  239.     (
  240.         (if (= @LANGUAGE "deutsch")
  241.             (set doc-default 2)
  242.             (set doc-default 1)
  243.         )
  244.         (set doc-files
  245.             (askoptions
  246.                 (prompt    #doc-select)
  247.                     (help    #doc-select-help "\n\n" @askoptions-help)
  248.                     (choices
  249.                         "SysSpeed... English"
  250.                         "SysSpeed... Deutsch"
  251.                     )
  252.                 (default doc-default)
  253.             )
  254.         )
  255.         (set doc-dest
  256.             (askdir
  257.                 (prompt    #where-doc)
  258.                 (help    @askdir-help)
  259.                 (default "SYS:")
  260.             )
  261.         )
  262.     )
  263. )
  264.  
  265.  
  266. ;========================== COPY STARTS HERE ===============================
  267.  
  268. ; Copy SysSpeed MainProgram
  269.  
  270. (if (BITAND install-files 1)
  271.     (
  272.         (copyfiles
  273.             (prompt #copy-main)
  274.             (source "SysSpeed")
  275.             (dest main-dest)
  276.             (files)
  277.             (infos)
  278.         )
  279.     (delete (tackon main-dest ".info"))
  280.     )
  281. )
  282.  
  283. (complete 14)
  284.  
  285. ; Copy DataFiles
  286.  
  287. (if (BITAND install-files 2)
  288.     (
  289.         (copyfiles
  290.             (prompt #copy-datas)
  291.             (source "SysSpeedData")
  292.             (dest (tackon datas-dest "SysSpeedData"))
  293.             (all)
  294.         )
  295.     )
  296. )
  297.  
  298. (complete 28)
  299.  
  300.  
  301. ;Copy selected Documentations
  302.  
  303. (if (BITAND install-files 4)
  304.     (
  305.         (set n 0)
  306.         (while
  307.             (set doc
  308.                 (select n
  309.                     "SysSpeed.doc"
  310.                     "SysSpeed.dok"
  311.                     ""
  312.                 )
  313.             )
  314.             (
  315.                 (if (IN doc-files n)
  316.                     (
  317.                         (if (exists (tackon "" doc))
  318.                             (copyfiles
  319.                                 (prompt #copy-doc)
  320.                                 (source (tackon "" doc))
  321.                                 (dest doc-dest)
  322.                                 (infos)
  323.                             )
  324.                         )
  325.                     )
  326.                 )
  327.                 (set n (+ n 1))
  328.             )
  329.         )
  330.     (delete (tackon doc-dest ".info"))
  331.     )
  332. )
  333.  
  334. (complete 42)
  335.  
  336. ;Copy reqtools.library to libs:
  337.  
  338. (if (BITAND install-files 8)
  339.     (
  340.         (copylib
  341.             (prompt #copy-reqtools-library)
  342.             (source "Libs/reqtools.library")
  343.             (dest "Libs:")
  344.         )
  345.         (complete 56)
  346.         (copylib
  347.             (prompt #copy-powerpacker-library)
  348.             (source "Libs/powerpacker.library")
  349.             (dest "Libs:")
  350.         )
  351.         (complete 63)
  352.         (copylib
  353.             (prompt #copy-expname-library)
  354.             (source "Libs/expname.library")
  355.             (dest "Libs:")
  356.         )
  357.         (complete 70)
  358.         (copylib
  359.             (prompt #copy-xpkmaster-library)
  360.             (source "Libs/xpkmaster.library")
  361.             (dest "Libs:")
  362.         )
  363.         (complete 84)
  364.         (copylib
  365.             (prompt #copy-shri-library)
  366.             (source "Libs/compressors/xpkshri.library")
  367.             (dest "Libs:compressors")
  368.         )
  369.     )
  370. )
  371.  
  372. (complete 90)
  373.  
  374. (if (BITAND install-files 16)
  375.     (
  376.         (copyfiles
  377.             (prompt #copy-fonts)
  378.             (source "Fonts")
  379.             (dest "Fonts:")
  380.             (all)
  381.             (fonts)
  382.         )
  383.     )
  384. )
  385.  
  386. (complete 100)
  387.  
  388. (EXIT #install-exit)
  389.  
  390.