home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Utilities / DA3Demo / Installation / Install < prev    next >
Text File  |  1992-08-27  |  5KB  |  219 lines

  1. ;$VER: Digital Almanac III Demo Installer Script 1.0
  2.  
  3. (procedure P_INSTALL_EXE
  4.     (
  5.     (makedir #inst-dir)
  6.     (copyfiles
  7.         (source "//DA3Demo.info")
  8.         (dest (tackon #inst-dir "/"))
  9.         (newname (cat #inst-dir ".info"))
  10.         (noposition)
  11.     )
  12.  
  13.     (if (= #cpu 0)
  14.         (set #name "/DigitalAlmanac020")
  15.         (set #name "/DigitalAlmanacPPC")
  16.     )
  17.     (copyfiles
  18.         (source #name)
  19.         (dest #inst-dir)
  20.         (newname "DigitalAlmanac")
  21.     )
  22.     (copyfiles
  23.         (source "/DigitalAlmanac.info")
  24.         (dest #inst-dir)
  25.         (noposition)
  26.     )
  27.  
  28. ;*** Data ***
  29.     (makedir (tackon #inst-dir "Data"))
  30.     (copyfiles
  31.         (source "/Data")
  32.         (dest (tackon #inst-dir "Data"))
  33.         (all)
  34.     )
  35.  
  36. ;*** User ***
  37.     (makedir (tackon #inst-dir "User"))
  38.     (copyfiles
  39.         (source "/User")
  40.         (dest (tackon #inst-dir "User"))
  41.         (all)
  42.     )
  43.  
  44. ;*** Misc ***
  45.     (makedir (tackon #inst-dir "Misc"))
  46.     (copyfiles
  47.         (source "/Misc")
  48.         (dest (tackon #inst-dir "Misc"))
  49.         (all)
  50.     )
  51.     
  52. ;*** Fonts ***
  53.     (makedir (tackon #inst-dir "Fonts"))
  54.     (copyfiles
  55.         (source "/Fonts")
  56.         (dest (tackon #inst-dir "Fonts"))
  57.         (all)
  58.     )
  59.     
  60. ;*** Catalog ***
  61.     (set #name (tackon #inst-dir "Catalogs"))
  62.     (makedir #name)
  63.     (if (= @language "deutsch")
  64.         (
  65.         (set #name (tackon #name "Deutsch"))
  66.         (makedir #name)
  67.         (copyfiles
  68.             (source "/Catalogs/Deutsch/DA3Demo.catalog")
  69.             (dest #name)
  70.         )
  71.         )
  72.     )
  73.     (if (= @language "english")
  74.         (
  75.         (set #name (tackon #name "English"))
  76.         (makedir #name)
  77.         (copyfiles
  78.             (source "/Catalogs/English/DA3Demo.catalog")
  79.             (dest #name)
  80.         )
  81.         )
  82.     )
  83.     
  84. ;*** Toolbar ***
  85.     (makedir (tackon #inst-dir "Toolbar"))
  86.     (copyfiles
  87.         (source "/Toolbar")
  88.         (dest (tackon #inst-dir "Toolbar"))
  89.         (all)
  90.     )
  91.  
  92. ;*** Libraries ***
  93.     (copylib
  94.         (prompt "asyncio.library")
  95.         (help @copylib-help)
  96.         (source "/Libs/asyncio.library")
  97.         (dest "LIBS:")
  98.         (confirm "average")
  99.     )
  100.  
  101.     (copylib
  102.         (prompt "imagepool.library")
  103.         (help @copylib-help)
  104.         (source "/Libs/imagepool.library")
  105.         (dest "LIBS:")
  106.         (confirm "average")
  107.     )
  108.  
  109.     (copylib
  110.         (prompt "TransferAnim.mcc")
  111.         (help @copylib-help)
  112.         (source "/Libs/MUI/TransferAnim.mcc")
  113.         (dest "MUI:Libs/MUI")
  114.         (confirm "average")
  115.     )
  116.  
  117.     (copylib
  118.         (prompt "TransferAnim.mcp")
  119.         (help @copylib-help)
  120.         (source "/Libs/MUI/TransferAnim.mcp")
  121.         (dest "MUI:Libs/MUI")
  122.         (confirm "average")
  123.     )
  124.  
  125. ;*** HTML ***
  126.  
  127.     (makedir (tackon #inst-dir "HTML"))
  128.     (copyfiles
  129.         (prompt "HTML-Dokumentation")
  130.         (source "/HTML")
  131.         (dest (tackon #inst-dir "HTML"))
  132.         (all)
  133.     )
  134.     (copyfiles
  135.         (prompt "HTML-Dokumentation")
  136.         (source "/HTML.info")
  137.         (dest #inst-dir)
  138.         (noposition)
  139.     )
  140.     )
  141. )
  142.  
  143. ;*** Installer Start ***
  144.  
  145. (if (= @language "deutsch")
  146.     (
  147.     (set #ask-inst-dir "\
  148. Wo soll das Verzeichnis von DA III Demo angelegt werden ?\n\
  149. Ein Ordner namens \"DA3Demo\" wird in dem gewählten Verzeichnis automatisch angelegt.")
  150.     (set #choice-cpu "Für welchen Prozessor soll installiert werden ?")
  151.     (set #choice-cpu1 "Beliebige 68k-CPU")
  152.     (set #choice-cpu2 "PPC mit 68040 oder 68060")
  153.     (set #font-msg "\
  154. Zum Schluss müssen Sie noch eine Einstellung von Hand durchführen, zu welchem der Installer nicht in der Lage ist.\n\
  155. Starten Sie DA III und wählen Sie den Menüpunkt Projekt/MUI-Einstellungen aus. Geben Sie dann im sich öffnenden \
  156. MUI-Fenster unter Fenster/Zeichensätze/Normal den Text Astro/11 ein und speichern Sie ab (registrierter MUI-Besitzer !).\n\
  157. Diese Einstellung ist nicht unbedingt notwendig, erleichert aber die Lesbarkeit in einigen Requestern.\n\n\
  158. Soll DA III für diese Einstellung nun gestartet werden ?")
  159.     (set #msg-ende "Ende")
  160.     )
  161. )
  162.  
  163. (if (= @language "english")
  164.     (
  165.     (set #ask-inst-dir "\
  166. Where do you want to create the folder for DA III Demo ?\n\
  167. A folder called \"DA3Demo\" will be automatically created.")
  168.     (set #choice-cpu "For what type of CPU do you want to install ?")
  169.     (set #choice-cpu1 "Any 68k-CPU")
  170.     (set #choice-cpu2 "PPC with 68040 or 68060")
  171.     (set #font-msg "\
  172. Finally you must perform an adjustment manually, because the installer is not able to do so.\n\
  173. Start DA III and select the menuitem Projects/MUI setting. After the window has opened, look for the\
  174. string field Window/Fonts/Normal, enter the text Astro/11 and save it (registered MUI user !).\n\
  175. This adjustment is not really required, but simplifies the readability of some requesters.\n\n\
  176. Do you want to start DA III to make the adjustment ?")
  177.     (set #msg-ende "Finished")
  178.     )
  179. )
  180.  
  181. (set #inst-dir
  182.     (askdir
  183.         (prompt #ask-inst-dir)
  184.         (help @askdir-help)
  185.         (default @default-dest)
  186.         (disk)
  187.     )
  188. )
  189.  
  190. (set #inst-dir (tackon #inst-dir "DA3Demo"))
  191.  
  192. (if (exists "LIBS:powerpc.library" (noreq))
  193.     (set #cpu 1)
  194.     (set #cpu 0)
  195. )
  196.  
  197. (set #cpu
  198.     (askchoice
  199.         (prompt #choice-cpu)
  200.         (choices #choice-cpu1 #choice-cpu2)
  201.         (help @askchoice-help)
  202.         (default #cpu)
  203.     )
  204. )
  205.  
  206. (P_INSTALL_EXE)
  207.  
  208. (if (=
  209.     (askbool
  210.         (prompt #font-msg)
  211.         (help @askbool-help)
  212.     ) 1)
  213.     (execute (cat "DA-Start " #inst-dir))
  214. )
  215.  
  216. (set @default-dest #inst-dir)
  217. (message #msg-ende)
  218.  
  219.