home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fonts 1 / freshfonts1.bin / bbs / programs / amiga / rashumon3demo.lha / Install_HD < prev    next >
Text File  |  1994-06-01  |  5KB  |  199 lines

  1. (complete 0)
  2.  
  3. (set @default-dest "Work:rashumon")
  4. (if (= (getassign "Rashumon") "")
  5.   (makeassign "Rashumon" "Ram:")
  6. )
  7. (set @default-dest (getassign "Rashumon"))
  8.  
  9. (set version (/ (getversion) 65536))
  10. (set version2 36)
  11.  
  12. (execute "dir")
  13.  
  14.      ; install on hard disk
  15. (set dest2 
  16.     (askdir
  17.         (prompt "Select the location to install Rashumon and sample files")
  18.         (default @default-dest)
  19.         (newpath)
  20.         (help "Choose a destination partition or directory " 
  21.                       "to contain Rashumon. ")
  22.     )
  23. )     
  24. (complete 10)
  25. (set dest1 dest2)
  26. (set @default-dest dest1)
  27. (message "Rashumon will be installed in " 
  28.                dest1
  29. )
  30. (makedir dest1
  31.     (infos)
  32. )
  33.  
  34. (run ("copy Rashumon_Installer:Rashumon %s dates" (tackon dest1 "Rashumon")))
  35.  
  36. (makedir "Sys:psfonts"
  37.     (infos)
  38. )
  39. (complete 20)
  40. (set dest2 (tackon dest1 "setup.pref"))
  41. (delete dest2)
  42.  
  43. (if (> error 0) (message ("Error installing Rashumon #%ld." @ioerr)))
  44.  
  45.  
  46. (complete 30)
  47. (copyfiles
  48.     (prompt "Copying files...")
  49.     (help @copyfiles-help)
  50.     (source "Rashumon_Installer:Rashumon_Drawer")
  51.     (dest dest1)
  52.     (all)
  53.     (files)
  54. )
  55. (copyfiles
  56.     (prompt "Copying Postscript fonts...")
  57.     (help @copyfiles-help)
  58.     (source "Rashumon_Installer:psfonts")
  59.     (dest "sys:psfonts")
  60.     (all)
  61.     (files)
  62. )
  63. (complete 40)
  64. (copyfiles
  65.     (prompt "Installing fonts...")
  66.     (help @copyfiles-help)
  67.     (source "Rashumon_Installer:fonts")
  68.     (dest "fonts:")
  69.     (all)
  70.     (fonts)
  71.     (confirm "avarage")
  72. )
  73. (complete 50)
  74. (set opt
  75. (askchoice
  76.         (prompt "Select secondary language...")
  77.         (choices "Hebrew" "Arabic" "Farsi")
  78.         (default "Hebrew")
  79.         (help @askchoice-help)
  80. )
  81. )
  82. (complete 60)
  83. (if (=  opt 0) 
  84. (copyfiles
  85.     (prompt "Installing Hebrew font")
  86.     (help @copyfiles-help)
  87.     (source "fonts:rashebrew")
  88.     (dest "fonts:rashumon")
  89.     (all)
  90.     (files)
  91. )
  92. )
  93. (complete 70)
  94. (if (=  opt 1) 
  95. (copyfiles
  96.     (prompt "Installing Arabic font")
  97.     (help @copyfiles-help)
  98.     (source "fonts:rasharab")
  99.     (dest "fonts:rashumon")
  100.     (all)
  101.     (files)
  102. )
  103. )
  104. (complete 80)
  105. (if (=  opt 2) 
  106. (copyfiles
  107.     (prompt "Installing Farsi font")
  108.     (help @copyfiles-help)
  109.     (source "fonts:rashfarsi")
  110.     (dest "fonts:rashumon")
  111.     (all)
  112.     (files)
  113. )
  114. )
  115. (message "Please run 'Intellifont' or 'Fountain' to install scalable fonts" 
  116. )
  117. (complete 90)
  118. (if 
  119.     (askbool 
  120.         (prompt "Should I install the Scala Lingua sample files?\nYou need to have Scala software in order to run them") 
  121.         (help @askbool-help)
  122.     )
  123.     (
  124.     (set scala
  125.         (askdir
  126.             (prompt "Select the location to install Scala sample files")
  127.             (help @askfile-help)
  128.             (default "work:Scala")
  129.         )
  130.     )
  131.     (if(exists (tackon scala "Scripts"))
  132.     (copyfiles
  133.         (prompt "Installing Scala sample script...")
  134.         (help @copyfiles-help)
  135.         (source "Rashumon_Installer:misc")
  136.         (infos)
  137.         (dest (tackon scala "Scripts"))
  138.         (pattern "#?")
  139.     )
  140.     )
  141.     (if(exists (tackon scala "Scripts"))
  142.     (copyfiles
  143.         (prompt "Installing Scala sample script...")
  144.         (help @copyfiles-help)
  145.         (infos)
  146.         (source "Rashumon_Installer:pics")
  147.         (dest (tackon scala "Backgrounds"))
  148.         (pattern "#?")
  149.     )
  150.     )
  151.     )
  152. )
  153. (set string1 ("assign Rashumon: %s" dest1))
  154.       (makeassign "Rashumon" dest1)
  155.       (set error 1)
  156.       (until (= error 0)
  157.         (
  158.            (set error (trap 4
  159.               (startup "Rashumon"
  160.                  (prompt ("%s\n%s\n\n%s\n%s\n%s\n%s%s\n\n%s"
  161.                           "The following assigns have been created."
  162.                           "Do you want the them and the path statement added to your startup?"
  163.                            string1
  164.                           "path Rashumon: add"
  165.                           "NOTE: The path will not be updated until you reboot."
  166.                           )
  167.                  )
  168.                  (command 
  169.                          ("assign Rashumon: %s\n" dest1)
  170.                          ("assign psfonts: %s\n" "sys:psfonts")
  171.                          "path Rashumon: add\n"
  172.                  )
  173.                  (help "Install_HD will add the necessary assigns to your user-startup "
  174.                        "script, which is run when your machine boots.  If you decide not "
  175.                        "to allow the installer to make these changes, you will need to "
  176.                        "make them yourself."
  177.                  )
  178.               )
  179.            ))
  180.            (if (> error 0)
  181.               (if (or (= @ioerr 222) (or (= @ioerr 223) (= @ioerr 224)))
  182.                  (message "Startup file is write protected. Use protect "
  183.                          "to write enable the file, and select Proceed" )
  184.                  ;else other type of error
  185.                  (
  186.                    (message "Non-Standard startup sequence detected. You must add "
  187.                           "the following lines by hand.\n\n"
  188.                           "assign Rashumon: " dest1 "\n"
  189.                           "assign psfonts: Sys:psfonts\n"
  190.                           "path Rashumon: add"
  191.                    )
  192.                    (set error 0)
  193.                  )                
  194.               )         
  195.            )   
  196.          )
  197.       )
  198. (complete 100)
  199.