home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 88 / af088a.adf / X-DVE_Install < prev    next >
Text File  |  1996-07-08  |  4KB  |  186 lines

  1. ;
  2. ; *** X-DVE Installation Script V1.1 // 14 Dec 1994 ***
  3. ;
  4.  
  5.  
  6. (complete 0)
  7.  
  8. (set @default-dest
  9.     (askdir
  10.         (prompt "Select the path where you want to install X-DVE.\n(a drawer called X-DVE will be created)")
  11.         (disk)
  12.         (help @askdir-help)
  13.         (default @default-dest)
  14.     )
  15. )
  16.  
  17. (set @default-dest (tackon @default-dest "X-DVE"))
  18. (set destdir (cat "\"" @default-dest "/" "\""))
  19.  
  20. (makedir @default-dest
  21.     (prompt "Creation of X-DVE drawer")
  22.     (infos)
  23.     (help @makedir-help)
  24. )
  25.  
  26. (makedir (tackon @default-dest "AnimBrush")
  27.     (prompt "Creation of AnimBrush drawer")
  28.     (help @makedir-help)
  29. )
  30.  
  31. (makedir (tackon @default-dest "Brush")
  32.     (prompt "Creation of Brush drawer")
  33.     (help @makedir-help)
  34. )
  35.  
  36. (makedir (tackon @default-dest "Palette")
  37.     (prompt "Creation of Palette drawer")
  38.     (help @makedir-help)
  39. )
  40.  
  41. (makedir (tackon @default-dest "Script")
  42.     (prompt "Creation of Script drawer")
  43.     (help @makedir-help)
  44. )
  45.  
  46. (makedir (tackon @default-dest "XFA")
  47.     (prompt "Creation of XFA drawer")
  48.     (help @makedir-help)
  49. )
  50.  
  51.  
  52. (set copymask
  53.     (askchoice
  54.         (prompt "Select what you want to be installed")
  55.         (help 
  56.             "This choice must be made according to the available memory on your destination disk.\n"
  57.             "Remember that the installation of the single X-DVE program takes about 500 Kb.\n"
  58.             "The installation of the full package, including the cliparts and the sample scripts takes nearly 1200 Kb.\n"
  59.             "If you have enough space, we suggest you to install the full package.\n"
  60.         )
  61.         
  62.         (choices 
  63.             "X-DVE main program"
  64.             "X-DVE + clip art + sample scripts"
  65.         )
  66.         (default 1)
  67.     )
  68. )
  69.  
  70. (complete 10)
  71.  
  72. (delete "T:tmpcmd")
  73.  
  74. (textfile
  75.     (dest "T:tmpcmd")
  76.     (append (cat "CD " destdir))
  77.     (append "\n")
  78.     (append "X-DVE_1:unlzx >CON: -f x X-DVE_1:X-DVE.lzx")
  79.     (append "\n")
  80. )
  81.  
  82. (if (= copymask 1)
  83.     (textfile
  84.         (dest "T:tmpcmd")
  85.         (include "T:tmpcmd")
  86.         (append (cat "CD " destdir))
  87.         (append "\n")
  88.         (append "X-DVE_1:unlzx >CON: -f x X-DVE_1:GFX.lzx")
  89.         (append "\n")
  90.     )
  91. )
  92.  
  93. (complete 20)
  94.  
  95. (message "Installation of X-DVE program")
  96.  
  97. (if (<> 0 (execute "T:tmpcmd" (prompt "Installation of X-DVE program")))
  98.     (abort "Installation error during the decompression of the files.\n")
  99. )
  100.  
  101. (delete "T:tmpcmd")
  102.  
  103. (complete 80)
  104.  
  105. (set cpu (database "cpu"))
  106. (if (= cpu "68000") (set cpu 0))
  107. (if (= cpu "68020") (set cpu 1))
  108. (if (= cpu "68030") (set cpu 2))
  109. (if (= cpu "68040") (set cpu 3))
  110.  
  111. (message "X-DVE Library Installation")
  112. (set libid
  113.     (askchoice
  114.         (prompt "Select which library must be installed")
  115.         (help 
  116.             "This choice must be made according to the CPU installed in your Amiga.\n"
  117.             "This installation procedure automatically selects the right library for you.\n"
  118.             "Please do NOT install 68030 + FPU library or 68040 library if you haven't got a math coprocessor.\n"
  119.         )
  120.         
  121.         (choices 
  122.             "CPU 68000"
  123.             "CPU 68020/68020EC/68030"
  124.             "CPU 68030/68030EC + FPU"
  125.             "CPU 68040/68040EC"
  126.         )
  127.         (default cpu)
  128.     )
  129. )
  130.  
  131. (set libname
  132.     (select libid
  133.         "X-DVE_1:LIBS/x-dve.library000"
  134.         "X-DVE_1:LIBS/x-dve.library020"
  135.         "X-DVE_1:LIBS/x-dve.library030"
  136.         "X-DVE_1:LIBS/x-dve.library040"
  137.     )
  138. )    
  139.  
  140.  
  141.  
  142. ;***************************************************
  143. ; This is a must, for those with the demo of X-DVE2
  144. ;***************************************************
  145. (delete "libs:x-dve.library" force)
  146. (run "c:avail >NIL: flush")
  147.  
  148. (copylib
  149.     (prompt "Installation of X-DVE.library")
  150.     (help @copylib-help)
  151.     (source libname)
  152.     (dest "libs:")
  153.     (newname "x-dve.library")
  154.     (confirm)
  155. )
  156.  
  157. (complete 90)
  158.  
  159. (message "Installation of X-DVE Fonts")
  160.  
  161. (textfile
  162.     (dest "T:tmpcmd")
  163.     (append "CD Fonts:")
  164.     (append "\n")
  165.     (append "X-DVE_1:unlzx >CON: -f x X-DVE_1:FONTS.lzx")
  166.     (append "\n")
  167. )
  168.  
  169. (if (<> 0 (execute "T:tmpcmd" (prompt "Installation of X-DVE Fonts")))
  170.     (abort "Installation error during the decompression of the files.\n")
  171. )
  172.  
  173. (delete "T:tmpcmd")
  174.  
  175. (complete 95)
  176.  
  177. (run "sys:system/FixFonts"
  178.     (prompt "Control and setup of your fonts (FixFonts)." "Operation strongly suggested.")
  179.     (help "This operation is strongly suggested everytime you add new fonts to the system or modify your FONTS: directory.\n")
  180.     (confirm)
  181. )
  182.  
  183. (complete 100)
  184.  
  185. (exit)
  186.