home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / Misc / ASTUDIO1.LHA / ArtStudio / ArtStudio_Install < prev    next >
Encoding:
Text File  |  1996-03-17  |  5.3 KB  |  307 lines

  1. ; $VER: ArtStudio_Install 2.000 (17.03.96)
  2. ; Script to install ArtStudio Version 2.0
  3.  
  4. (complete 0)
  5. (user 1)
  6.  
  7. (if (> (* 37 65536) (getversion "exec.library" (resident)))
  8.         (abort #wrong-kick)
  9. )
  10.  
  11. (welcome)
  12. (set old_level @user-level)
  13.  
  14. (user 2)
  15. (set target (askdir
  16.         (prompt "Wählen Sie ein Verzeichnis, wo Sie ArtStudio "
  17.                 "installieren möchten. Ein Verzeichnis mit den "
  18.                 "Namen ArtStudio wird automatisch angelegt!"
  19.                 )
  20.         (help #which-dir-help)
  21.         (default "Work:")
  22. ))
  23. (user old_level)
  24.  
  25. (set @default-dest target)
  26.  
  27. (set ArtStudioDir        (tackon target "ArtStudio"))
  28.  
  29. (set WAS
  30.       (askoptions
  31.       (prompt "Welche Programme sollen installier werden?\n\n"
  32.               "Die komplette Installation benötigt ca. 3 MB "
  33.               "freien Festplattenspeicher!")
  34.       (help   @askchoice-help)
  35.       (choices "ArtStudio Hauptprogramm"
  36.           "ArtStudio Tools"
  37.           "Beispiel Dateien"
  38.           "Beispiel Bilder")
  39.       (default 15)
  40.       )
  41. )
  42.  
  43. (set LoaderDir        (tackon ArtStudioDir "Loader"))
  44. (set ViewerDir        (tackon ArtStudioDir "Viewer"))
  45. (set SaverDir        (tackon ArtStudioDir "Saver"))
  46. (set RexxDir        (tackon ArtStudioDir "Rexx"))
  47. (set ColorDir        (tackon ArtStudioDir "Color"))
  48. (set ToolsDir        (tackon ArtStudioDir "Tools"))
  49.  
  50. (If (IN WAS 0)
  51.  (
  52.   (if ( < (exists ArtStudioDir (noreq) ) 2)
  53.     (makedir ArtStudioDir
  54.         (prompt "Creating ArtStudio directory...")
  55.         (help @makedir-help)
  56.         (infos)
  57.     )
  58.   )
  59.  
  60.   (complete 10)
  61.  
  62.   (if ( < (exists LoaderDir (noreq) ) 2)
  63.     (makedir LoaderDir
  64.         (prompt "Creating Loader directory...")
  65. ;        (help @makedir-help)
  66.     )
  67.   )
  68.  
  69.   (complete 11)
  70.  
  71.   (if ( < (exists ViewerDir (noreq) ) 2)
  72.     (makedir ViewerDir
  73.         (prompt "Creating Viewer directory...")
  74. ;        (help @makedir-help)
  75.     )
  76.   )
  77.  
  78.   (complete 12)
  79.  
  80.   (if ( < (exists RexxDir (noreq) ) 2)
  81.     (makedir RexxDir
  82.         (prompt "Creating Rexx directory...")
  83. ;        (help @makedir-help)
  84.     )
  85.   )
  86.  
  87.   (complete 13)
  88.  
  89.   (if ( < (exists ColorDir (noreq) ) 2)
  90.     (makedir ColorDir
  91.         (prompt "Creating Color directory...")
  92. ;        (help @makedir-help)
  93.     )
  94.   )
  95.  
  96.   (complete 14)
  97.  
  98.   (if ( < (exists SaverDir (noreq) ) 2)
  99.     (makedir SaverDir
  100.         (prompt "Creating Saver directory...")
  101. ;        (help @makedir-help)
  102.     )
  103.   )
  104.  
  105.   (complete 15)
  106.  
  107.   (if ( < (exists ToolsDir (noreq) ) 2)
  108.     (makedir ToolsDir
  109.         (prompt "Creating Tools directory...")
  110. ;        (help @makedir-help)
  111.     )
  112.   )
  113.  
  114.   (complete 16)
  115.  
  116.   (copyfiles
  117.     (prompt "Installing ArtStudio release 2.0 main program...")
  118.     (help @copyfiles-help)
  119.     (source "ArtStudio")
  120.     (dest ArtStudioDir)
  121.     (confirm)
  122.   )
  123.  
  124.   (complete 30)
  125.  
  126.   (copyfiles
  127.     (prompt "Installing ArtStudio Icon...")
  128.     (help @copyfiles-help)
  129.     (source "ArtStudio.info")
  130.     (dest ArtStudioDir)
  131.     (confirm)
  132.   )
  133.  
  134.   (complete 35)
  135.  
  136.   (copyfiles
  137.     (prompt "Installing loader...")
  138.     (help @copyfiles-help)
  139.     (source "Loader/")
  140.     (dest LoaderDir)
  141.     (all)
  142.     (confirm)
  143.   )
  144.  
  145.   (complete 40)
  146.  
  147.   (copyfiles
  148.     (prompt "Installing saver...")
  149.     (help @copyfiles-help)
  150.     (source "Saver/")
  151.     (dest SaverDir)
  152.     (all)
  153.     (confirm)
  154.   )
  155.  
  156.   (complete 45)
  157.  
  158.   (copyfiles
  159.     (prompt "Installing viewers...")
  160.     (help @copyfiles-help)
  161.     (source "Viewer/")
  162.     (dest ViewerDir)
  163.     (all)
  164.     (confirm)
  165.   )
  166.  
  167.   (complete 50)
  168.  
  169.   (copyfiles
  170.     (prompt "Installing ARexx files...")
  171.     (help @copyfiles-help)
  172.     (source "Rexx/")
  173.     (dest RexxDir)
  174.     (all)
  175.     (confirm)
  176.   )
  177.  
  178.   (complete 55)
  179.  
  180.   (copyfiles
  181.     (prompt "Installing color files...")
  182.     (help @copyfiles-help)
  183.     (source "Color/")
  184.     (dest ColorDir)
  185.     (all)
  186.     (confirm)
  187.   )
  188.  
  189.   (complete 60)
  190.  
  191.   (copyfiles
  192.     (prompt "Installing Guide-File...")
  193.     (help @copyfiles-help)
  194.     (source "ArtStudio.guide")
  195.     (dest ArtStudioDir)
  196.     (infos)
  197.     (confirm)
  198.    )
  199.  
  200.   (tooltype
  201.     (dest ("%s/ArtStudio.guide" ArtStudioDir))
  202.     (setdefaulttool "MultiView")
  203.     (setstack 10000)
  204.     (noposition)
  205.   )
  206.  
  207.   (complete 63)
  208.  
  209.   (startup "ArtStudio"
  210.     (prompt ("\nAdding the ArtStudio assignment to s:user-startup - it currently looks like this:\n\n%s\n\n" (cat "assign ArtStudio: " ArtStudioDir) ) )
  211.     (help @startup-help)
  212.     (command (cat "assign ArtStudio: " ArtStudioDir))
  213.   )
  214.  
  215.  )
  216. )
  217.  
  218.   (complete 65)
  219.  
  220. (If (IN WAS 1)
  221.  (
  222.  
  223.   (copyfiles
  224.     (prompt "Installing Tools...")
  225.     (help @copyfiles-help)
  226.     (source "Tools/")
  227.     (dest ToolsDir)
  228.         (all)
  229.         (infos)
  230.     (confirm)
  231.   )
  232.  
  233.  )
  234. )
  235.  
  236. (If (IN WAS 2)
  237.  (
  238.   (set DataBaseDir (askdir
  239.         (prompt "Wählen Sie ein Verzeichnis, wo Sie die "
  240.                 "Basedateien installieren möchten."
  241.                 )
  242.         (help #which-dir-help)
  243.         (default "Work:")
  244.   ))
  245.  
  246.   (complete 75)
  247.  
  248.   (copyfiles
  249.     (prompt "Installing DataBase...")
  250.     (help @copyfiles-help)
  251.     (source "BaseDatei/")
  252.     (dest DataBaseDir)
  253.     (all)
  254.     (confirm)
  255.   )
  256.  )
  257. )
  258.  
  259. (If (IN WAS 3)
  260.  (
  261.   (set ImageDir (askdir
  262.         (prompt "Wählen Sie ein Verzeichnis, wo Sie die "
  263.                 "Bilder installieren möchten."
  264.                 )
  265.         (help #which-dir-help)
  266.         (default "Work:")
  267.   ))
  268.  
  269.   (complete 80)
  270.  
  271.   (copyfiles
  272.     (prompt "Installing Images...")
  273.     (help @copyfiles-help)
  274.     (source "Images/")
  275.     (dest ImageDir)
  276.     (all)
  277.     (confirm)
  278.   )
  279.  
  280.   (complete 85)
  281.  
  282.   (startup "ASDisk4"
  283.     (prompt ("\nAdding the ArtStudioDisk4 assignment to s:user-startup - it currently looks like this:\n\n%s\n\n" (cat "assign ArtStudioDisk4: " ImageDir) ) )
  284.     (help @startup-help)
  285.     (command (cat "assign ArtStudioDisk4: " ImageDir))
  286.   )
  287.  )
  288. )
  289.  
  290. (If (IN WAS 0)
  291.  (
  292.  
  293.   (complete 90)
  294.  
  295.   (copylib
  296.     (prompt "Checking and updating ASL.library, if needed...")
  297.     (help @copylib-help)
  298.     (source "libs/asl.library")
  299.     (dest "libs:")
  300.     (confirm)
  301.   )
  302.  
  303.  )
  304. )
  305.  
  306. (complete 100)
  307.