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