home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / tools / system / installerfx / examples / anim example 2 < prev    next >
Encoding:
Text File  |  1997-09-20  |  1.3 KB  |  88 lines

  1. ; InstallerFX script
  2. (if (= x 1) (welcome))
  3.  
  4. (onerror (CLEANUP))
  5.  
  6. ; Cleanup any temporary mess we created
  7. (procedure CLEANUP
  8.     ; Nothing to cleanup
  9.     (delete "t:InstallerAnim")
  10.     (delete "t:InstallerAnim.prefs")
  11. ) ; CLEANUP
  12.  
  13. (set @user-level 0)
  14.  
  15. ;(set Opt 3)
  16. ;(complete 0)
  17.  
  18. (copyfiles
  19.     (source "InstallerFX/ColorAnim")
  20.     (dest "t:")
  21.     (newname "InstallerAnim")
  22. )
  23.  
  24. (copyfiles
  25.     (source "InstallerFX/ColorAnim.prefs")
  26.     (dest "t:")
  27.     (newname "InstallerAnim.prefs")
  28. )
  29.  
  30. (run "run InstallerFX/InstallerFX t:InstallerAnim")
  31.  
  32. (set @user-level 2)
  33.  
  34. ;Get directory to install test to:
  35. (set destdir 
  36.     (askdir 
  37.         (prompt "In which drawer should testfiles be installed?") 
  38.         (help @askdir-help)
  39.         (default ("t:"))
  40.     )
  41. )
  42.  
  43. (complete 10)
  44.  
  45. (set installfiles
  46.     (askoptions
  47.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  48.         (help @askoptions-help)
  49.         (choices "InstallerFX")
  50.         (default Opt)
  51.     )
  52. )
  53.  
  54. (complete 50)
  55.  
  56. ;Copy program files to destination.
  57.  
  58. (if (BITAND installfiles 1)
  59. (copyfiles
  60.     (source "InstallerFX")
  61.     (dest destdir)
  62.     (all)
  63. )
  64. )
  65.  
  66. (set installfiles
  67.     (askoptions
  68.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  69.         (help @askoptions-help)
  70.         (choices "InstallerFX")
  71.         (default Opt)
  72.     )
  73. )
  74.  
  75.  
  76. (if (BITAND installfiles 1)
  77. (copyfiles
  78.     (source "InstallerFX")
  79.     (dest destdir)
  80.     (all)
  81. )    
  82. )
  83.  
  84. (complete 100)
  85.  
  86. (CLEANUP)
  87. (exit)
  88.