home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 16 / AmigaOS_LeserCD16_02.bin / AmigaOS / Vollversion / ElasticDreamsCD / Install_ElasticDreams < prev    next >
Text File  |  2002-05-20  |  14KB  |  748 lines

  1. ; $VER: ElasticDreams_Install 1.000 (04.02.98)
  2. ; Script to install ElasticDreams Version 1.0
  3.  
  4. (complete 0)
  5. (user 1)
  6.  
  7. ;=============================================================================
  8. ; English strings
  9.  
  10. (set default_lang 4)
  11.  
  12. (set #bad-kick "ElasticDreams needs Amiga-OS 3.0 or higher")
  13.  
  14. (set SelectDir1Msg
  15.      (cat "Please select a directory\nto install ElasticDreams in"
  16.      )
  17. )
  18.  
  19. (Set ProgMsg
  20.      (cat "Which parts should i install?"
  21.      )
  22. )
  23.  
  24.  (set Choice1Msg "ElasticDreams Mainprogram (8 MB)")
  25.  (set Choice2Msg "ElasticDreams Tools (1 MB)")
  26.  (set Choice3Msg "ElasticDreams Instruction (200 KB)")
  27.  
  28.  (set FPU1Msg "None")
  29.  (set FPU2Msg "Yes, this machine is with FPU")
  30.  
  31.  (set CPU1Msg "MC68000")
  32.  (set CPU2Msg "MC68030")
  33.  (set CPU3Msg "MC68040")
  34.  (set CPU4Msg "MC68060")
  35.  (set CPU5Msg "PPC603/604")
  36.  
  37.  (set CPUMsg "What CPU does the machine have that you are installing ElasticDreams Pro?")
  38.  
  39.  (set UpDategraf "Checking and updating graffiti.library, if needed...")
  40.  
  41.  (set InstallElasticDreamsProg "Installing ElasticDreams professional main program...")
  42.  (set InstallLoader "Installing loader...")
  43.  (set InstallSaver "Installing saver...")
  44.  (set InstallOperator "Installing Operator files...")
  45.  (set InstallViewer "Installing viewers...")
  46.  (set InstallGuide "Installing Guide-File...")
  47.  (set InstallTools "Installing Tools...")
  48.  (set InstallBG "Installing Background...")
  49.  (set InstallImages "Installing Images...")
  50.  
  51.  (set AssignAdd1
  52.      (cat "\nAdding the ElasticDreams assignment to s:user-startup - it currently looks like this:\n\n%s\n\n"
  53.           (cat "assign ElasticDreams: " ElasticDreamsDir)
  54.      )
  55. )
  56.  
  57. ;=============================================================================
  58. ; German strings
  59.  
  60. (if   (= @language "deutsch")
  61. (
  62.  (set default_lang 2)
  63.  
  64.  (set #bad-kick "ElasticDreams benötigt mindestens Amiga-OS 3.0 oder höher")
  65.  
  66.  (set SelectDir1Msg
  67.       (cat "Wählen Sie ein Verzeichnis, wo Sie ElasticDreams "
  68.            "installieren möchten. Ein Verzeichnis mit den "
  69.            "Namen ElasticDreams wird automatisch angelegt!"
  70.       )
  71.  )
  72.  
  73.  (Set ProgMsg
  74.       (cat "\nWelche Dateien sollen installiert werden?\n"
  75.       )
  76.  )
  77.  
  78.  (set Choice1Msg "ElasticDreams Hauptprogramm (ca. 8 MB)")
  79.  (set Choice2Msg "ElasticDreams Tools (ca. 1 MB)")
  80.  (set Choice3Msg "ElasticDreams Anleitung (ca. 200 KB)")
  81.  
  82.  (set FPU1Msg "Keine vorhanden")
  83.  (set FPU2Msg "ja, FPU vorhanden")
  84.  
  85.  (set CPU1Msg "MC68000")
  86.  (set CPU2Msg "MC68030")
  87.  (set CPU3Msg "MC68040")
  88.  (set CPU4Msg "MC68060")
  89.  (set CPU5Msg "PPC603/604")
  90.  
  91.  (set CPUMsg "Welchen Prozessor besitzt der Computer, auf dem Sie ElasticDreams installieren möchten?")
  92.  
  93.  (set UpDategraf "Prüfe und Erneuere die graffiti.library, wenn nötig...")
  94.  
  95.  (set InstallElasticDreamsProg "Installiere ElasticDreams Version 2.0 Hauptprogramm...")
  96.  (set InstallLoader "Installiere Lademodule...")
  97.  (set InstallSaver "Installiere Speichermodule...")
  98.  (set InstallOperator "Installiere Bildbearbeitungsmodule...")
  99.  (set InstallViewer "Installiere Anzeigemodule...")
  100.  (set InstallGuide "Installiere Guide-Datei...")
  101.  (set InstallTools "Installiere Werkzeuge...")
  102.  (set InstallBG "Installiere Hintergrund...")
  103.  (set InstallImages "Installing Bilder...")
  104.  
  105.  (set AssignAdd1
  106.       (cat "\nFüge ElasticDreams Zuweisung an s:user-startup - Es würde wie folgt Aussehen:\n\n%s\n\n"
  107.            (cat "assign ElasticDreams: " ElasticDreamsDir)
  108.       )
  109.  )
  110. )
  111. )
  112.  
  113. (if (> (* 39 65536) (getversion "exec.library" (resident)))
  114.         (abort #bak-kick)
  115. )
  116.  
  117.  
  118. (welcome)
  119. (set old_level @user-level)
  120.  
  121. (user 2)
  122.  
  123. (if ( < (exists "ElasticDreams:" (noreq)) 2)
  124.   (
  125.    (set target (askdir
  126.           (prompt SelectDir1Msg)
  127.           (help #which-dir-help)
  128.           (default "SYS:")
  129.    ))
  130.    (set ElasticDreamsDir        (tackon target "ElasticDreams"))
  131.   )
  132. )
  133.  
  134. (if (exists "ElasticDreams:" (noreq))
  135.   (
  136.    (set target "ElasticDreams:")
  137.    (set ElasticDreamsDir "ElasticDreams:")
  138.   )
  139. )
  140.  
  141. (user old_level)
  142.  
  143. (set WAS
  144.       (askoptions
  145.       (prompt ProgMsg)
  146.       (help   @askchoice-help)
  147.       (choices Choice1Msg Choice2Msg Choice3Msg)
  148.       (default 7)
  149.       )
  150. )
  151.  
  152. (set MainDirPPC        (tackon ElasticDreamsDir "MainPPC"))
  153. (set LoaderDir        (tackon ElasticDreamsDir "Loader"))
  154. (set LoaderDirPPC    (tackon ElasticDreamsDir "LoaderPPC"))
  155. (set OperatorDir    (tackon ElasticDreamsDir "Operator"))
  156. (set OperatorDirPPC    (tackon ElasticDreamsDir "OperatorPPC"))
  157. (set ViewerDir        (tackon ElasticDreamsDir "Viewer"))
  158. (set SaverDir        (tackon ElasticDreamsDir "Saver"))
  159. (set ToolsDir        (tackon ElasticDreamsDir "Tools"))
  160. (set DocDir        (tackon ElasticDreamsDir "Docs"))
  161. (set ImagesDir        (tackon ElasticDreamsDir "Images"))
  162. (set BackgroundDir    (tackon ElasticDreamsDir "Background"))
  163. (set BackgroundSmallDir (tackon ElasticDreamsDir "Background/Small"))
  164.  
  165. (If (IN WAS 0)
  166.  (
  167.   (set CPU
  168.       (askchoice
  169.       (prompt CPUMsg)
  170.       (help   @askchoice-help)
  171.       (choices CPU1Msg CPU2Msg CPU3Msg CPU4Msg CPU5Msg)
  172.       (default 1)
  173.       )
  174.   )
  175.  
  176.   (set FPU
  177.       (askchoice
  178.       (prompt FPUMsg)
  179.       (help   @askchoice-help)
  180.       (choices FPU1Msg FPU2Msg)
  181.       (default 1)
  182.       )
  183.   )
  184.  
  185.   (if ( < (exists ElasticDreamsDir (noreq) ) 2)
  186.     (makedir ElasticDreamsDir
  187.         (prompt "Creating ElasticDreams directory...")
  188.         (help @makedir-help)
  189.         (infos)
  190.     )
  191.   )
  192.  
  193.   (complete 10)
  194.  
  195.   (if ( < (exists LoaderDir (noreq) ) 2)
  196.     (makedir LoaderDir
  197.         (prompt "Creating Loader directory...")
  198. ;        (help @makedir-help)
  199.     )
  200.   )
  201.  
  202.   (complete 11)
  203.  
  204.   (if ( < (exists ViewerDir (noreq) ) 2)
  205.     (makedir ViewerDir
  206.         (prompt "Creating Viewer directory...")
  207. ;        (help @makedir-help)
  208.     )
  209.   )
  210.  
  211.   (complete 12)
  212.  
  213.   (if ( < (exists BackgroundDir (noreq) ) 2)
  214.     (makedir BackgroundDir
  215.         (prompt "Creating Background directory...")
  216. ;        (help @makedir-help)
  217.     )
  218.   )
  219.  
  220.   (complete 13)
  221.  
  222.   (if ( < (exists BackgroundSmallDir (noreq) ) 2)
  223.     (makedir BackgroundSmallDir
  224.         (prompt "Creating BackgroundSmall directory...")
  225. ;        (help @makedir-help)
  226.     )
  227.   )
  228.  
  229.   (complete 14)
  230.  
  231.   (if ( < (exists SaverDir (noreq) ) 2)
  232.     (makedir SaverDir
  233.         (prompt "Creating Saver directory...")
  234. ;        (help @makedir-help)
  235.     )
  236.   )
  237.  
  238.   (complete 15)
  239.  
  240.   (if ( < (exists ToolsDir (noreq) ) 2)
  241.     (makedir ToolsDir
  242.         (prompt "Creating Tools directory...")
  243. ;        (help @makedir-help)
  244.     )
  245.   )
  246.  
  247.   (complete 16)
  248.  
  249.   (if ( < (exists OperatorDir (noreq) ) 2)
  250.     (makedir OperatorDir
  251.         (prompt "Creating Operator directory...")
  252. ;        (help @makedir-help)
  253.     )
  254.   )
  255.  
  256.   (complete 17)
  257.  
  258.   (if ( < (exists ImagesDir (noreq) ) 2)
  259.     (makedir ImagesDir
  260.         (prompt "Creating Images directory...")
  261. ;        (help @makedir-help)
  262.     )
  263.   )
  264.  
  265.   (complete 18)
  266.  
  267. (copyfiles
  268.     (prompt "Installing Font files...")
  269.     (help @copyfiles-help)
  270.     (source "Fonts/")
  271.     (dest "FONTS:")
  272.     (all)
  273.     (confirm)
  274. )
  275.  
  276.  
  277. (If (IN WAS 2)
  278.  (
  279.  
  280.   (complete 20)
  281.  
  282.   (if (= default_lang 4)
  283.   (
  284.       (copyfiles
  285.         (prompt "Copy ElasticDreams...")
  286.         (help @copyfiles-help)
  287.         (source "ElasticDreamsEnglish")
  288.         (dest "ram:")
  289.                 (newname "ElasticDreams")
  290.         (confirm)
  291.           )
  292.  
  293.   ))
  294.  
  295.   (if (= default_lang 2)
  296.    (
  297.       (copyfiles
  298.         (prompt "Kopiere ElasticDreams...")
  299.         (help @copyfiles-help)
  300.         (source "ElasticDreamsDeutsch")
  301.         (dest "ram:")
  302.                 (newname "ElasticDreams")
  303.         (confirm)
  304.           )
  305.    )
  306.   )
  307.  )
  308. )
  309.  
  310.  
  311.   (complete 21)
  312.  
  313.   (run "c/Registration"
  314.      (prompt "ElasticDreams registration...")
  315.      (help "Keine Hilfe verfügbar.")
  316.   )
  317.  
  318.   (complete 22)
  319.  
  320.   (copyfiles
  321.     (prompt "Installing ElasticDreams main program...")
  322.     (help @copyfiles-help)
  323.     (source "ram:ElasticDreams")
  324.     (dest ElasticDreamsDir)
  325.     (confirm)
  326.   )
  327.  
  328.   (complete 24)
  329.  
  330.   (run "c/delete ram:ElasticDreams"
  331.        (prompt "Delete ram:ElasticDreams...")
  332.        (help "Keine Hilfe verfügbar.")
  333.   )
  334.  
  335.   (complete 26)
  336.  
  337.   (copyfiles
  338.     (prompt "Installing ElasticDreams Icon...")
  339.     (help @copyfiles-help)
  340.     (source "ElasticDreams.info")
  341.     (dest ElasticDreamsDir)
  342.     (confirm)
  343.   )
  344.  
  345.  
  346.  
  347.  
  348.  
  349. (If (IN WAS 2)
  350.  (
  351.  
  352.   (complete 28)
  353.  
  354.   (if (= default_lang 4)
  355.   (
  356.  
  357.  
  358.  
  359.   (complete 30)
  360.  
  361.       (copyfiles
  362.         (prompt "Installing ElasticDreams SmallBackground...")
  363.         (help @copyfiles-help)
  364.         (source "Background English/Small/")
  365.         (dest BackgroundSmallDir)
  366.         (all)
  367.         (confirm)
  368.       )
  369.  
  370.   (complete 34)
  371.  
  372.       (copyfiles
  373.         (prompt "Installing Composer Background...")
  374.         (help @copyfiles-help)
  375.         (source "Background English/Compose Blank")
  376.         (dest BackgroundDir)
  377.         (newname "BGCompose")
  378.         (confirm)
  379.       )
  380.  
  381.   (complete 36)
  382.  
  383.       (copyfiles
  384.         (prompt "Installing Elastic Background...")
  385.         (help @copyfiles-help)
  386.         (source "Background English/Elastic Blank")
  387.         (dest BackgroundDir)
  388.         (newname "BGElastic")
  389.         (confirm)
  390.       )
  391.  
  392.   (complete 38)
  393.  
  394.       (copyfiles
  395.         (prompt "Installing Manager Background...")
  396.         (help @copyfiles-help)
  397.         (source "Background English/Background Manager")
  398.         (dest BackgroundDir)
  399.         (newname "BGManager")
  400.         (confirm)
  401.       )
  402.  
  403.   ))
  404.  
  405.   (if (= default_lang 2)
  406.    (
  407.  
  408.   (complete 30)
  409.  
  410.       (copyfiles
  411.         (prompt "Installiere ElasticDreams Hintergrund...")
  412.         (help @copyfiles-help)
  413.         (source "Background Deutsch/Small/")
  414.         (dest BackgroundSmallDir)
  415.         (all)
  416.         (confirm)
  417.       )
  418.  
  419.   (complete 34)
  420.  
  421.       (copyfiles
  422.         (prompt "Installiere Composer Hintergrund...")
  423.         (help @copyfiles-help)
  424.         (source "Background Deutsch/Compose Blank")
  425.         (dest BackgroundDir)
  426.         (newname "BGCompose")
  427.         (confirm)
  428.       )
  429.  
  430.   (complete 36)
  431.  
  432.       (copyfiles
  433.         (prompt "Installiere Elastic Hintergrund...")
  434.         (help @copyfiles-help)
  435.         (source "Background Deutsch/Elastic Blank")
  436.         (dest BackgroundDir)
  437.         (newname "BGElastic")
  438.         (confirm)
  439.       )
  440.  
  441.   (complete 38)
  442.  
  443.       (copyfiles
  444.         (prompt "Installiere Manager Hintergrund...")
  445.         (help @copyfiles-help)
  446.         (source "Background Deutsch/Background Manager")
  447.         (dest BackgroundDir)
  448.         (newname "BGManager")
  449.         (confirm)
  450.       )
  451.    )
  452.   )
  453.  )
  454. )
  455.  
  456.   (complete 39)
  457.  
  458. (If (= CPU 0)
  459.  (
  460.   (copyfiles
  461.     (prompt "Installing Operator files...")
  462.     (help @copyfiles-help)
  463.     (source "Operator68k/")
  464.     (dest OperatorDir)
  465.     (all)
  466.     (confirm)
  467.   )
  468.  
  469.   (copyfiles
  470.     (prompt "Installing loader...")
  471.     (help @copyfiles-help)
  472.     (source "Loader68000/")
  473.     (dest LoaderDir)
  474.     (all)
  475.     (confirm)
  476.   )
  477.  )
  478. )
  479.  
  480. (If (= CPU 1)
  481.  (
  482.   (copyfiles
  483.     (prompt "Installing Operator files...")
  484.     (help @copyfiles-help)
  485.     (source "Operator68k/")
  486.     (dest OperatorDir)
  487.     (all)
  488.     (confirm)
  489.   )
  490.  
  491.   (copyfiles
  492.     (prompt "Installing loader...")
  493.     (help @copyfiles-help)
  494.     (source "Loader68030/")
  495.     (dest LoaderDir)
  496.     (all)
  497.     (confirm)
  498.   )
  499.  )
  500. )
  501.  
  502. (If (= CPU 2)
  503.  (
  504.   (copyfiles
  505.     (prompt "Installing Operator files...")
  506.     (help @copyfiles-help)
  507.     (source "Operator68k/")
  508.     (dest OperatorDir)
  509.     (all)
  510.     (confirm)
  511.   )
  512.   (copyfiles
  513.     (prompt "Installing loader...")
  514.     (help @copyfiles-help)
  515.     (source "Loader68040/")
  516.     (dest LoaderDir)
  517.     (all)
  518.     (confirm)
  519.   )
  520.  )
  521. )
  522.  
  523. (If (= CPU 3)
  524.  (
  525.   (copyfiles
  526.     (prompt "Installing Operator files...")
  527.     (help @copyfiles-help)
  528.     (source "Operator68k/")
  529.     (dest OperatorDir)
  530.     (all)
  531.     (confirm)
  532.   )
  533.  
  534.   (copyfiles
  535.     (prompt "Installing loader...")
  536.     (help @copyfiles-help)
  537.     (source "Loader68060/")
  538.     (dest LoaderDir)
  539.     (all)
  540.     (confirm)
  541.   )
  542.  )
  543. )
  544.  
  545. (If (= CPU 4)
  546.  (
  547.  
  548.   (complete 40)
  549.  
  550.   (if ( < (exists OperatorDirPPC (noreq) ) 2)
  551.     (makedir OperatorDirPPC
  552.         (prompt "Creating OperatorPPC directory...")
  553. ;        (help @makedir-help)
  554.     )
  555.   )
  556.   (complete 41)
  557.  
  558.   (if ( < (exists LoaderDirPPC (noreq) ) 2)
  559.     (makedir LoaderDirPPC
  560.         (prompt "Creating LoaderPPC directory...")
  561. ;        (help @makedir-help)
  562.     )
  563.   )
  564.   (complete 42)
  565.  
  566.   (if ( < (exists MainDirPPC (noreq) ) 2)
  567.     (makedir MainDirPPC
  568.         (prompt "Creating MainPPC directory...")
  569. ;        (help @makedir-help)
  570.     )
  571.   )
  572.  
  573.   (copyfiles
  574.     (prompt "Installing loader...")
  575.     (help @copyfiles-help)
  576.     (source "Loader604/")
  577.     (dest LoaderDir)
  578.     (all)
  579.     (confirm)
  580.   )
  581.  
  582.   (copyfiles
  583.     (prompt "Installing loaderppc...")
  584.     (help @copyfiles-help)
  585.     (source "LoaderPPC/")
  586.     (dest LoaderDirPPC)
  587.     (all)
  588.     (confirm)
  589.   )
  590.  
  591.   (copyfiles
  592.     (prompt "Installing Operator files...")
  593.     (help @copyfiles-help)
  594.     (source "Operator604/")
  595.     (dest OperatorDir)
  596.     (all)
  597.     (confirm)
  598.   )
  599.  
  600.   (copyfiles
  601.     (prompt "Installing operatorppc...")
  602.     (help @copyfiles-help)
  603.     (source "OperatorPPC/")
  604.     (dest OperatorDirPPC)
  605.     (all)
  606.     (confirm)
  607.   )
  608.   (copyfiles
  609.     (prompt "Installing mainppc...")
  610.     (help @copyfiles-help)
  611.     (source "MainPPC/")
  612.     (dest MainDirPPC)
  613.     (all)
  614.     (confirm)
  615.   )
  616.  
  617.  )
  618. )
  619.  
  620.   (complete 43)
  621.  
  622.   (copyfiles
  623.     (prompt "Installing saver...")
  624.     (help @copyfiles-help)
  625.     (source "Saver/")
  626.     (dest SaverDir)
  627.     (all)
  628.     (confirm)
  629.   )
  630.  
  631. (IF (= FPU 1)
  632.  (
  633.   (complete 45)
  634.  
  635.   (copyfiles
  636.     (prompt "Installing OperatorFPU files...")
  637.     (help @copyfiles-help)
  638.     (source "OperatorFPU/")
  639.     (dest OperatorDir)
  640.     (all)
  641.     (confirm)
  642.   )
  643.  )
  644. )
  645.  
  646.   (complete 50)
  647.  
  648.   (copyfiles
  649.     (prompt "Installing viewers...")
  650.     (help @copyfiles-help)
  651.     (source "Viewer/")
  652.     (dest ViewerDir)
  653.     (all)
  654.     (confirm)
  655.   )
  656.  
  657.   (complete 68)
  658.  
  659.   (startup "ElasticDreams"
  660.     (prompt ("\nAdding the ElasticDreams assignment to s:user-startup - it currently looks like this:\n\n%s\n\n" (cat "assign ElasticDreams: " ElasticDreamsDir) ) )
  661.     (help @startup-help)
  662.     (command (cat "assign ElasticDreams: " ElasticDreamsDir))
  663.   )
  664.  
  665.  )
  666. )
  667.  
  668.   (complete 70)
  669.  
  670. (If (IN WAS 1)
  671.  (
  672.  
  673.   (copyfiles
  674.     (prompt "Installing Tools...")
  675.     (help @copyfiles-help)
  676.     (source "Tools/")
  677.     (dest ToolsDir)
  678.         (all)
  679.         (infos)
  680.     (confirm)
  681.   )
  682.  
  683.  )
  684. )
  685.  
  686. (If (IN WAS 2)
  687.  (
  688.  
  689.   (complete 75)
  690.  
  691.   (if (= default_lang 4)
  692.   (
  693.       (copyfiles
  694.           (prompt "Copying instruction...")
  695.           (help @copyfiles-help)
  696.           (source "Instruction/")
  697.           (dest DocDir)
  698.           (infos)
  699.           (all)
  700.           (confirm)
  701.       )
  702.  
  703.   ))
  704.  
  705.   (if (= default_lang 2)
  706.    (
  707.       (copyfiles
  708.           (prompt "Kopiere Anleitung...")
  709.           (help @copyfiles-help)
  710.           (source "Anleitung/" )
  711.           (dest DocDir)
  712.           (infos)
  713.           (all)
  714.           (confirm)
  715.       )
  716.    )
  717.   )
  718.  )
  719. )
  720.  
  721. (complete 90)
  722.  
  723. (copyfiles
  724.     (prompt "Installing Images...")
  725.     (help @copyfiles-help)
  726.     (source "ImagesMain/")
  727.     (dest ImagesDir)
  728.     (all)
  729.     (confirm)
  730. )
  731.  
  732. (complete 98)
  733.  
  734. (copylib
  735.     (prompt UpDategraf)
  736.     (help @copylib-help)
  737.     (source "libs/graffiti.library")
  738.     (dest "libs:")
  739.     (confirm)
  740. )
  741.  
  742. (run "c/assign ElasticDreams: " ElasticDreamsDir
  743.      (prompt "Assign ElasticDreams...")
  744.      (help "Keine Hilfe verfügbar.")
  745. )
  746.  
  747. (complete 100)
  748.