home *** CD-ROM | disk | FTP | other *** search
/ Merciful 3 / Merciful_Release_3.bin / software / f / finalwriter / finalwriterv5.03a.dms / finalwriterv5.03a.adf / HDInstall < prev    next >
Text File  |  1995-07-20  |  23KB  |  1,026 lines

  1. ;;
  2. ;;  $Final Writer 4 Installation Script US English Version $
  3. ;;  $Date: 1995/07/20 11:20:09 $
  4. ;;  $Revision: 1.5 $
  5. ;;
  6.  
  7. (set is_update 0)
  8. (set @user-level 1)    ; force to use average mode
  9. (complete 0)
  10.  
  11. ;
  12. ; Installation Disk Names
  13. ;
  14. (set #install_disk_1 "Disk 1")
  15. (set #install_disk_2 "Disk 2")
  16. (set #install_disk_3 "Disk 3")
  17. (set #install_disk_4 "Disk 4")
  18. (set #install_disk_5 "Disk 5")
  19. (set #install_disk_6 "Disk 6")
  20. (set #install_disk_7 "Disk 7")
  21. (set #install_disk_8 "Disk 8")
  22. (set #install_disk_9 "Disk 9")
  23.  
  24. ;
  25. ; File/drawer names to changes with different language versions.
  26. ;
  27. (set #fw_drawer        "FinalWriter")
  28. (set #old_hyph_file    "FWFiles/eng.hyp")
  29. (set #ud_file            "FWSpell/userdict.eng")
  30. (set #save_ud_file    "FWSpell/userdict.eng.save")
  31. (set #gram_file        "gen4mus0.dat")
  32.  
  33. ; -------------------------------------------------------------------
  34. ; TEXT TRANSLATION SHOULD BEGIN HERE - Translate everything in quotes.
  35. ;
  36.  
  37. (set #which_drawer_prompt
  38. (cat    "In which disk or drawer should the Final Writer drawer be created in?"
  39. ))
  40.  
  41. (set #which_drawer_help
  42. (cat    "The installation utility will create a drawer named \""
  43.         #fw_drawer
  44.         "\" "
  45.         "in the selected drawer. All \"Final Writer\" files will be placed "
  46.         "inside this new drawer.\n\n"
  47.         @askdir-help
  48. ))
  49.  
  50. (set #min_or_comp_prompt
  51. (cat    "Do you wish to do a \"Complete\" or \"Minimal\" installation "
  52.         "of \"Final Writer?\" The complete installation will require "
  53.         "approximately 12 megabytes of free disk space. The minimal "
  54.         "installation will require approximately 5 megabytes of free "
  55.         "disk space."
  56. ))
  57.  
  58. (set #min_or_comp_help
  59. (cat    "Choosing \"Complete\" will install all of the files that are "
  60.         "included in the Final Writer disk set. This will require "
  61.         "approximately 12 megabytes of free disk space. If \"Minimal\" "
  62.         "is choosen, then the ARexx Macros, EPS Clip Art, and Extra Fonts "
  63.         "will not be installed. The minimal installation will require "
  64.         "approximately 5 megabytes of free disk space."
  65. ))
  66.  
  67. (set #option_complete "Complete")
  68. (set #option_minimal "Minimal")
  69.  
  70. (set #disk_space_prompt
  71. (cat    "There may not be enough room available on this drive to install "
  72.         "\"Final Writer\".  Do you wish to continue?"
  73. ))
  74.  
  75. (set #disk_space_help
  76. (cat    "Final Writer needs approximately 12 megabytes of disk space for a "
  77.         "complete installation or 5 megabytes for a minimal installation. "
  78.         "If Final Writer is already installed on this partition, you may "
  79.         "wish to continue. Otherwise, press ABORT or NO now and either free "
  80.         "some space on this partition or select a different partition for "
  81.         "the installation."
  82. ))
  83.  
  84. (set #disk_space_abort
  85. (cat    "Final Writer installation cancelled. Not enough disk space on Volume \""
  86. ))
  87.  
  88. (set #update_options_prompt
  89. (cat    "What parts would you like to update?"
  90. ))
  91.  
  92. (set #update_program        "Final Writer Program")
  93. (set #update_macros        "ARexx Macros")
  94. (set #update_sysfiles    "System Data Files")
  95. (set #update_syslibs        "System Libraries")
  96. (set #update_sysfonts    "System Fonts")
  97. (set #update_spellhyph    "Speller & Hyphenation")
  98. (set #update_thes            "Thesaurus")
  99. (set #update_clipart        "EPS Clip Art")
  100. (set #update_xfonts        "Extra Fonts")
  101.  
  102. (set #ask_disk_prompt
  103. (cat    "Please insert the disk labeled \"%s\" in any drive."
  104. ))
  105.  
  106. (set #ask_disk1_help
  107. (cat    "\"%s\" contains the Final Writer macros, libraries, data files, "
  108.         "and system fonts to be installed.\n\n"
  109.         @askdisk-help
  110. ))
  111.  
  112. (set #ask_disk2_help
  113. (cat    "\"%s\" contains the Final Writer system fonts, speller, and "
  114.         "hyphenation files to be installed.\n\n"
  115.         @askdisk-help
  116. ))
  117.  
  118. (set #ask_disk3_help
  119. (cat    "\"%s\" contains the Final Writer thesaurus files and EPS Clip Art "
  120.         "to be installed.\n\n"
  121.         @askdisk-help
  122. ))
  123.  
  124. (set #ask_disk4_help
  125. (cat    "\"%s\" contains EPS Clip Art to be installed.\n\n"
  126.         @askdisk-help
  127. ))
  128.  
  129. (set #ask_disk5_help
  130. (cat    "\"%s\" contains EPS clip art and additional decorative and serif fonts "
  131.         "to be installed.\n\n"
  132.         @askdisk-help
  133. ))
  134.  
  135. (set #ask_disk6_help
  136. (cat    "\"%s\" contains additional serif fonts to be installed.\n\n"
  137.         @askdisk-help
  138. ))
  139.  
  140. (set #ask_disk7_help
  141. (cat    "\"%s\" contains additional sans serif fonts to be installed.\n\n"
  142.         @askdisk-help
  143. ))
  144.  
  145. (set #ask_disk8_help
  146. (cat    "\"%s\" contains the Final Writer program and grammar checker files "
  147.         "to be installed.\n\n"
  148.         @askdisk-help
  149. ))
  150.  
  151. (set #ask_disk9_help
  152. (cat    "\"%s\" contains grammar checker files to be installed.\n\n"
  153.         @askdisk-help
  154. ))
  155.  
  156. (set #install_program        "Installing Final Writer program from \"%s\".")
  157. (set #install_program_icon    "Installing Final Writer program and icon from \"%s\".")
  158. (set #install_macros            "Installing ARexx Macros from \"%s\".")
  159. (set #install_datafiles        "Installing Data Files from \"%s\".")
  160. (set #install_libs            "Installing Libraries from \"%s\".")
  161. (set #install_sysfonts        "Installing System Fonts from \"%s\".")
  162. (set #install_grammar        "Installing Grammar File from \"%s\".")
  163. (set #combine_grammar        "Combining grammar data files.")
  164. (set #install_spell            "Installing Speller & Hyphenation files from \"%s\".")
  165. (set #install_thes            "Installing Thesaurus files from \"%s\".")
  166. (set #install_clipart        "Installing EPS Clip Art from \"%s\".")
  167. (set #install_deco            "Installing Decorative Fonts from \"%s\".")
  168. (set #install_serif            "Installing Serif Fonts from \"%s\".")
  169. (set #install_sans            "Installing Sans Serif Fonts from \"%s\".")
  170.  
  171. (set #install_program_err        "Error installing Final Writer Program.")
  172. (set #install_macros_err        "Error installing ARexx Macros.")
  173. (set #install_datafiles_err    "Error installing Data Files.")
  174. (set #install_libs_err            "Error installing Libraries.")
  175. (set #install_sysfonts_err        "Error installing System Fonts.")
  176. (set #install_gram_part1_err    "Error installing Grammar file part 1.")
  177. (set #install_gram_part2_err    "Error installing Grammar file part 2.")
  178. (set #combine_grammar_err        "Error combining grammar data files.")
  179. (set #install_spell_err            "Error installing Speller & Hyphenation files.")
  180. (set #install_thes_err            "Error installing Thesaurus files.")
  181. (set #install_clipart_err        "Error installing EPS Clip Art.")
  182. (set #install_deco_err            "Error installing Decorative Fonts.")
  183. (set #install_serif_err            "Error installing Serif Fonts.")
  184. (set #install_sans_err            "Error installing Sans serif Fonts.")
  185.  
  186. ;
  187. ; TEXT TRANSLATION SHOULD END HERE - nothing below needs translation.
  188. ; -------------------------------------------------------------------
  189.  
  190.  
  191. (set FW_dest
  192.     (askdir
  193.         (prompt    #which_drawer_prompt)
  194.         (help        #which_drawer_help)
  195.         (default @default-dest)
  196.     )
  197. )
  198.  
  199. ; Check if this is an update
  200. ; the FWLibs directory is a tell-tale sign
  201. ; that FW is already installed here
  202. (if (exists (tackon FW_dest "FWLibs"))
  203.     (set is_update 1)
  204.     (    (if (exists (tackon FW_dest #fw_drawer))
  205.             (set is_update 1)
  206.             (makedir (tackon FW_dest #fw_drawer) (infos))
  207.         )
  208.         (set FW_dest (tackon FW_dest #fw_drawer))
  209.     )
  210. )
  211.  
  212. (set @default-dest FW_dest)
  213. (set disk_space (getdiskspace FW_dest))
  214.  
  215.  
  216. ; If first time install ask user if he wants a complete
  217. ; or a minimal installation. The minimal installation
  218. ; will not install the eps clip art or the extra fonts.
  219. (if (NOT is_update)
  220.     (
  221.         (set install_all
  222.             (askbool
  223.                 (prompt    #min_or_comp_prompt)
  224.                 (help        #min_or_comp_help)
  225.                 (choices #option_complete #option_minimal)
  226.                 (default 1)
  227.             )
  228.         )
  229.  
  230.         (if install_all
  231.             (set disk_space_needed 12582912)    ; 12 Megs
  232.             (set disk_space_needed 5242880)    ; 5 Megs
  233.         )
  234.     )
  235. )
  236.  
  237.  
  238. (if (AND (< disk_space disk_space_needed) (NOT is_update))
  239.     (
  240.         (set answer1
  241.             (askbool
  242.                 (prompt #disk_space_prompt)
  243.                 (help #disk_space_help)
  244.             )
  245.         )
  246.         (if (NOT answer1)
  247.             (abort #disk_space_abort
  248.                     (getdevice @default-dest)
  249.                     "\"."
  250.             )
  251.         )
  252.     )
  253. )
  254.  
  255. ; Allow updating user to select what they want updated
  256. (if is_update
  257.     (set install_options
  258.         (askoptions
  259.             (prompt    #update_options_prompt)
  260.             (help        @askoptions-help)
  261.             (choices
  262.                 #update_program
  263.                 #update_macros
  264.                 #update_sysfiles
  265.                 #update_syslibs
  266.                 #update_sysfonts
  267.                 #update_spellhyph
  268.                 #update_thes
  269.                 #update_clipart
  270.                 #update_xfonts
  271.                 )
  272.             (default 31)        ; default to Program, Macros, Files, Libs, SysFonts
  273.         )
  274.     )
  275.  
  276.     ; First time install
  277.     (if install_all
  278.         (set install_options 511)  ; hex 1FF - all nine options on
  279.         (set install_options 125)    ; hex 07D - Macros, EPS, and Extra fonts off
  280.     )
  281. )
  282.  
  283. ; Copy the extraction utility over and remember where it is
  284. (copyfiles
  285.     (source "Disk 1:lhex")
  286.     (dest FW_dest)
  287. )
  288. (set DeArcher (tackon FW_dest "lhex"))
  289. (set error 0)
  290.  
  291. ; Installing Files on Disk 1?
  292. (if (IN install_options 1 2 3 4)
  293.     (
  294.         ; Get Disk 1
  295.         (askdisk
  296.             (prompt    (#ask_disk_prompt #install_disk_1))
  297.             (help        (#ask_disk1_help #install_disk_1))
  298.             (dest        #install_disk_1)
  299.         )
  300.  
  301.         ; Installing FWMacros
  302.         (if (IN install_options 1)
  303.             (
  304.                 ; If FWMacros doesn't exist, create it.
  305.                 (if (NOT (exists (tackon FW_dest "FWMacros")))
  306.                     (
  307.                     (makedir (tackon FW_dest "FWMacros") (infos))
  308.                     )
  309.                 )
  310.  
  311.                 ; Make installer cd into FWMacros when it executes the run statement
  312.                 (set @execute-dir (tackon FW_dest "FWMacros"))
  313.  
  314.                 ; Extract the macro files
  315.                 (working (#install_macros #install_disk_1))
  316.                 (set error
  317.                     (run
  318.                         ("\"%s\" -f x \"Disk 1:FWMacros.lha\" >NIL:" DeArcher)
  319.                     )
  320.                 )
  321.  
  322.                 ; Abort if any errors
  323.                 (if error
  324.                     (abort #install_macros_err)
  325.                 )
  326.             )
  327.         )
  328.  
  329.         (complete 5)
  330.  
  331.         ; Installing FWFiles
  332.         (if (IN install_options 2)
  333.             (
  334.                 ; If FWFiles doesn't exist, create it.
  335.                 (if (NOT (exists (tackon FW_dest "FWFiles")))
  336.                     (
  337.                     (makedir (tackon FW_dest "FWFiles") (infos))
  338.                     )
  339.                 )
  340.  
  341.                 ; Make installer cd into FWFiles when it executes the run statement
  342.                 (set @execute-dir (tackon FW_dest "FWFiles"))
  343.  
  344.                 ; Extract the files
  345.                 (working (#install_datafiles #install_disk_1))
  346.                 (set error
  347.                     (run
  348.                         ("\"%s\" -f x \"Disk 1:FWFiles.lha\" >NIL:" DeArcher)
  349.                     )
  350.                 )
  351.  
  352.                 ; Abort if any errors
  353.                 (if error
  354.                     (abort #install_datafiles_err)
  355.                 )
  356.  
  357.                 ; Previous versions of Final Writer have the hyphenation
  358.                 ; file, xxx.hyp, in FWFiles. With Final Writer Release 3
  359.                 ; the hyphenation file will reside in FWSpell instead.
  360.                 ; So, if we find the hyphenation file in FWFiles, then
  361.                 ; move it to FWSpell.
  362.                 (if (exists (tackon FW_dest #old_hyph_file))
  363.                     (
  364.                         (if (exists (tackon FW_dest "FWSpell"))
  365.                             (
  366.                                 (copyfiles
  367.                                     (source (tackon FW_dest #old_hyph_file))
  368.                                     (dest (tackon FW_dest "FWSpell"))
  369.                                 )
  370.  
  371.                                 (delete (tackon FW_dest #old_hyph_file))
  372.                             )
  373.                         )
  374.                     )
  375.                 )
  376.             )
  377.         )
  378.  
  379.         (complete 10)
  380.  
  381.         ; Installing FWLibs
  382.         (if (IN install_options 3)
  383.             (
  384.                 ; If FWLibs doesn't exist, create it.
  385.                 (if (NOT (exists (tackon FW_dest "FWLibs")))
  386.                     (
  387.                     (makedir (tackon FW_dest "FWLibs"))
  388.                     )
  389.                 )
  390.  
  391.                 ; Make installer cd into FWLibs when it executes the run statement
  392.                 (set @execute-dir (tackon FW_dest "FWLibs"))
  393.  
  394.                 (working (#install_libs #install_disk_1))
  395.                 (set error
  396.                     (run
  397.                         ("\"%s\" -f x \"Disk 1:FWLibs.lha\" >NIL:" DeArcher)
  398.                     )
  399.                 )
  400.  
  401.                 ; Abort if any errors
  402.                 (if error
  403.                     (abort #install_libs_err)
  404.                 )
  405.  
  406.                 (run ("Avail FLUSH"))
  407.             )
  408.         )
  409.  
  410.         (complete 15)
  411.  
  412.         ; Installing FWFonts
  413.         (if (IN install_options 4)
  414.             (
  415.                 ; If FWFonts doesn't exist, create it.
  416.                 (if (NOT (exists (tackon FW_dest "FWFonts")))
  417.                     (
  418.                     (makedir (tackon FW_dest "FWFonts") (infos))
  419.                     )
  420.                 )
  421.  
  422.                 ; Make installer cd into FWFonts when it executes the run statement
  423.                 (set @execute-dir (tackon FW_dest "FWFonts"))
  424.  
  425.                 (working (#install_sysfonts #install_disk_1))
  426.                 (set error
  427.                     (run
  428.                         ("\"%s\" -f x \"Disk 1:FWFonts.lha\" >NIL:" DeArcher)
  429.                     )
  430.                 )
  431.  
  432.                 ; Abort if any errors
  433.                 (if error
  434.                     (abort #install_sysfonts_err)
  435.                 )
  436.             )
  437.         )
  438.     )
  439. )
  440.  
  441. (complete 20)
  442.  
  443. (if (IN install_options 0 2)
  444.     (
  445.         ; ----------
  446.         ; Get Disk 8
  447.         ;
  448.         (askdisk
  449.             (prompt    (#ask_disk_prompt #install_disk_8))
  450.             (help        (#ask_disk8_help #install_disk_8))
  451.             (dest        #install_disk_8)
  452.         )
  453.  
  454.         ; If installing/updating the program
  455.         (if (IN install_options 0)
  456.             (
  457.                 ; Make installer cd into FW_dest when it executes the run statement
  458.                 (set @execute-dir FW_dest)
  459.  
  460.                 ; copy the Final Writer program over if the program
  461.                 ; icon doesn't exists copy it over too.
  462.                 ( if (exists (tackon FW_dest "FinalWriter.info"))
  463.                     ; This DOES NOT copy the icon, in case the user
  464.                     ; has modified the tool-types
  465.                     (
  466.                         (working (#install_program #install_disk_8))
  467.                         (set error
  468.                             (run
  469.                                 ("\"%s\" -f x \"Disk 8:FinalWriter.lha\" FinalWriter >NIL:" DeArcher)
  470.                             )
  471.                         )
  472.                     )
  473.                     ; This DOES copy the icon
  474.                     (
  475.                         (working (#install_program_icon #install_disk_8))
  476.                         (set error
  477.                             (run
  478.                                 ("\"%s\" -f x \"Disk 8:FinalWriter.lha\" >NIL:" DeArcher)
  479.                             )
  480.                         )
  481.                     )
  482.                 )
  483.             )
  484.         )
  485.  
  486.         (if error
  487.             (abort #install_program)
  488.         )
  489.  
  490.         (complete 25)
  491.  
  492.         ; Installing grammar part 1 into FWFiles
  493.         (if (IN install_options 2)
  494.             (
  495.                 ; If FWFiles doesn't exist, create it.
  496.                 (if (NOT (exists (tackon FW_dest "FWFiles")))
  497.                     (
  498.                     (makedir (tackon FW_dest "FWFiles") (infos))
  499.                     )
  500.                 )
  501.  
  502.                 ; Make installer cd into FWFiles when it executes the run statement
  503.                 (set @execute-dir (tackon FW_dest "FWFiles"))
  504.  
  505.                 ; Extract the files
  506.                 (working (#install_grammar #install_disk_8))
  507.                 (set error
  508.                     (run
  509.                         ("\"%s\" -f x \"Disk 8:FWGram1.lha\" >NIL:" DeArcher)
  510.                     )
  511.                 )
  512.  
  513.                 ; Abort if any errors
  514.                 (if error
  515.                     (abort #install_gram_part1_err)
  516.                 )
  517.  
  518.             )
  519.         )
  520.     )
  521. )
  522.  
  523. (complete 30)
  524.  
  525. (if (IN install_options 2)
  526.     (
  527.         ; ----------
  528.         ; Get Disk 9
  529.         ;
  530.         (askdisk
  531.             (prompt    (#ask_disk_prompt #install_disk_9))
  532.             (help        (#ask_disk9_help #install_disk_9))
  533.             (dest        #install_disk_9)
  534.         )
  535.  
  536.         ; Installing grammar part 2 into FWFiles
  537.         (if (IN install_options 2)
  538.             (
  539.                 ; If FWFiles doesn't exist, create it.
  540.                 (if (NOT (exists (tackon FW_dest "FWFiles")))
  541.                     (
  542.                     (makedir (tackon FW_dest "FWFiles") (infos))
  543.                     )
  544.                 )
  545.  
  546.                 ; Make installer cd into FWFiles when it executes the run statement
  547.                 (set @execute-dir (tackon FW_dest "FWFiles"))
  548.  
  549.                 ; Extract the files
  550.                 (working (#install_grammar #install_disk_9))
  551.                 (set error
  552.                     (run
  553.                         ("\"%s\" -f x \"Disk 9:FWGram2.lha\" >NIL:" DeArcher)
  554.                     )
  555.                 )
  556.  
  557.                 ; Abort if any errors
  558.                 (if error
  559.                     (abort #install_gram_part2_err)
  560.                 )
  561.  
  562.                 ; Join the two grammar data files.
  563.                 (working #combine_grammar)
  564.                 (set error
  565.                     (run
  566.                         ("Join gram.part1 gram.part2 TO %s" #gram_file)
  567.                     )
  568.                 )
  569.  
  570.                 ; Abort if any errors
  571.                 (if error
  572.                     (abort #combine_grammar_err)
  573.                 )
  574.  
  575.                 ; Delete part 1 and part 2 files.
  576.                 (delete (tackon FW_dest "FWFiles/gram.part1") )
  577.                 (delete (tackon FW_dest "FWFiles/gram.part2") )
  578.             )
  579.         )
  580.     )
  581. )
  582.  
  583. (complete 35)
  584.  
  585. ; Installing Speller
  586. (if (IN install_options 5)
  587.     (
  588.         ; Get Disk 2
  589.         (askdisk
  590.             (prompt    (#ask_disk_prompt #install_disk_2))
  591.             (help        (#ask_disk2_help #install_disk_2))
  592.             (dest        #install_disk_2)
  593.         )
  594.  
  595.         ; Instaling FWSpell
  596.         (if (IN install_options 5)
  597.             (
  598.                 ; If FWSpell doesn't exist, create it.
  599.                 (if (NOT (exists (tackon FW_dest "FWSpell")))
  600.                     (
  601.                     (makedir (tackon FW_dest "FWSpell"))
  602.                     )
  603.                 )
  604.  
  605.                 ; Preserve the user dictionary.
  606.                 (if (exists (tackon FW_dest #ud_file))
  607.                     (
  608.                         (set restore_UD 1)
  609.                         (copyfiles
  610.                             (source (tackon FW_dest #ud_file))
  611.                             (dest (tackon FW_dest "FWSpell"))
  612.                             (newname #save_ud_file)
  613.                         )
  614.                     )
  615.                     (set restore_UD 0)
  616.                 )
  617.  
  618.                 ; Make installer cd into FWSpell when it executes the run statement
  619.                 (set @execute-dir (tackon FW_dest "FWSpell"))
  620.  
  621.                 (working (#install_spell #install_disk_2))
  622.                 (set error
  623.                     (run
  624.                         ("\"%s\" -f x \"Disk 2:FWSpell.lha\" >NIL:" DeArcher)
  625.                     )
  626.                 )
  627.  
  628.                 (if restore_UD
  629.                     (
  630.                         (copyfiles
  631.                             (source (tackon FW_dest #save_ud_file))
  632.                             (dest (tackon FW_dest "FWSpell"))
  633.                             (newname #ud_file)
  634.                         )
  635.                         (delete (tackon FW_dest #save_ud_file))
  636.                     )
  637.                 )
  638.  
  639.                 ; Abort if any errors
  640.                 (if error
  641.                     (abort #install_spell_err)
  642.                 )
  643.  
  644.                 ; Previous versions of Final Writer have the hyphenation
  645.                 ; file, xxx.hyp, in FWFiles. With Final Writer Release 3
  646.                 ; the hyphenation file will reside in FWSpell instead.
  647.                 ; So, if we find the hyphenation file in FWFiles, then
  648.                 ; move it to FWSpell.
  649.                 (if (exists (tackon FW_dest #old_hyph_file))
  650.                     (
  651.                         (if (exists (tackon FW_dest "FWSpell"))
  652.                             (
  653.                                 (copyfiles
  654.                                     (source (tackon FW_dest #old_hyph_file))
  655.                                     (dest (tackon FW_dest "FWSpell"))
  656.                                 )
  657.  
  658.                                 (delete (tackon FW_dest #old_hyph_file))
  659.                             )
  660.                         )
  661.                     )
  662.                 )
  663.             )
  664.         )
  665.     )
  666. )
  667.  
  668. (complete 40)
  669.  
  670. (if (IN install_options 6 7)
  671.     (
  672.         ; Get Disk 3
  673.         (askdisk
  674.             (prompt    (#ask_disk_prompt #install_disk_3))
  675.             (help        (#ask_disk3_help #install_disk_3))
  676.             (dest        #install_disk_3)
  677.         )
  678.  
  679.         ; Instaling FWThes
  680.         (if (IN install_options 6)
  681.             (
  682.                 ; If FWThes doesn't exist, create it.
  683.                 (if (NOT (exists (tackon FW_dest "FWThes")))
  684.                     (
  685.                     (makedir (tackon FW_dest "FWThes"))
  686.                     )
  687.                 )
  688.  
  689.                 ; Make installer cd into FWThes when it executes the run statement
  690.                 (set @execute-dir (tackon FW_dest "FWThes"))
  691.  
  692.                 (working (#install_thes #install_disk_3))
  693.                 (set error
  694.                     (run
  695.                         ("\"%s\" -f x \"Disk 3:FWThes.lha\" >NIL:" DeArcher)
  696.                     )
  697.                 )
  698.  
  699.                 ; Abort if any errors
  700.                 (if error
  701.                     (abort #install_thes_err)
  702.                 )
  703.             )
  704.         )
  705.  
  706.         (complete 45)
  707.  
  708.         ; Installing EPS Clip Art <cc> <fed> <maps> <metro1>
  709.         (if (IN install_options 7)
  710.             (
  711.                 ; If FWClipArt doesn't exist, create it.
  712.                 (if (NOT (exists (tackon FW_dest "FWClipArt")))
  713.                     (
  714.                     (makedir (tackon FW_dest "FWClipArt"))
  715.                     )
  716.                 )
  717.  
  718.                 ; Make installer cd into FWClipArt when it executes the run statement
  719.                 (set @execute-dir (tackon FW_dest "FWClipArt"))
  720.  
  721.                 (working (#install_clipart #install_disk_3))
  722.  
  723.                 (set error
  724.                     (run
  725.                         ("\"%s\" -f x \"Disk 3:cc.lha\" >NIL:" DeArcher)
  726.                     )
  727.                 )
  728.  
  729.                 ; Abort if any errors
  730.                 (if error
  731.                     (abort #install_clipart_err)
  732.                 )
  733.  
  734.                 (complete 50)
  735.  
  736.                 (set error
  737.                     (run
  738.                         ("\"%s\" -f x \"Disk 3:fed.lha\" >NIL:" DeArcher)
  739.                     )
  740.                 )
  741.  
  742.                 ; Abort if any errors
  743.                 (if error
  744.                     (abort #install_clipart_err)
  745.                 )
  746.  
  747.                 (complete 55)
  748.  
  749.                 (set error
  750.                     (run
  751.                         ("\"%s\" -f x \"Disk 3:maps.lha\" >NIL:" DeArcher)
  752.                     )
  753.                 )
  754.  
  755.                 ; Abort if any errors
  756.                 (if error
  757.                     (abort #install_clipart_err)
  758.                 )
  759.  
  760.                 (complete 60)
  761.  
  762.                 (set error
  763.                     (run
  764.                         ("\"%s\" -f x \"Disk 3:metro1.lha\" >NIL:" DeArcher)
  765.                     )
  766.                 )
  767.  
  768.                 ; Abort if any errors
  769.                 (if error
  770.                     (abort #install_clipart_err)
  771.                 )
  772.             )
  773.         )
  774.     )
  775. )
  776.  
  777. (complete 65)
  778.  
  779. (if (IN install_options 7)
  780.     (
  781.         ; ----------
  782.         ; Get Disk 4
  783.         ;
  784.         (askdisk
  785.             (prompt    (#ask_disk_prompt #install_disk_4))
  786.             (help        (#ask_disk4_help #install_disk_4))
  787.             (dest        #install_disk_4)
  788.         )
  789.  
  790.         ; Installing EPS Clip Art <dms> <totem>
  791.  
  792.         ; If FWClipArt doesn't exist, create it.
  793.         (if (NOT (exists (tackon FW_dest "FWClipArt")))
  794.             (
  795.             (makedir (tackon FW_dest "FWClipArt"))
  796.             )
  797.         )
  798.  
  799.         ; Make installer cd into FWClipArt when it executes the run statement
  800.         (set @execute-dir (tackon FW_dest "FWClipArt"))
  801.  
  802.         (working (#install_clipart #install_disk_4))
  803.         (set error
  804.             (run
  805.                 ("\"%s\" -f x \"Disk 4:dms.lha\" >NIL:" DeArcher)
  806.             )
  807.         )
  808.  
  809.         ; Abort if any errors
  810.         (if error
  811.             (abort #install_clipart_err)
  812.         )
  813.  
  814.         (complete 70)
  815.  
  816.         (set error
  817.             (run
  818.                 ("\"%s\" -f x \"Disk 4:totem.lha\" >NIL:" DeArcher)
  819.             )
  820.         )
  821.  
  822.         ; Abort if any errors
  823.         (if error
  824.             (abort #install_clipart_err)
  825.         )
  826.     )
  827. )
  828.  
  829. (complete 75)
  830.  
  831. (if (IN install_options 7 8)
  832.     (
  833.         ; ----------
  834.         ; Get Disk 5
  835.         ;
  836.         (askdisk
  837.             (prompt    (#ask_disk_prompt #install_disk_5))
  838.             (help        (#ask_disk5_help #install_disk_5))
  839.             (dest        #install_disk_5)
  840.         )
  841.  
  842.         ; Instaling EPS Clip Art
  843.         (if (IN install_options 7)
  844.             (
  845.                 ; Make installer cd into FWClipArt/Metro when it executes the run statement
  846.                 (set @execute-dir (tackon FW_dest "FWClipArt/Metro"))
  847.  
  848.                 (working (#install_clipart #install_disk_5))
  849.                 (set error
  850.                     (run
  851.                         ("\"%s\" -f x \"Disk 5:Metro2.lha\" >NIL:" DeArcher)
  852.                     )
  853.                 )
  854.  
  855.                 ; Abort if any errors
  856.                 (if error
  857.                     (abort #install_clipart_err)
  858.                 )
  859.             )
  860.         )
  861.  
  862.         (complete 80)
  863.  
  864.         ; Instaling Decorative fonts
  865.         (if (IN install_options 8)
  866.             (
  867.                 ; If FWFonts/SWOLFonts/Deco doesn't exist, create it.
  868.                 (if (NOT (exists (tackon FW_dest "FWFonts/SWOLFonts/Deco")))
  869.                     (
  870.                     (makedir (tackon FW_dest "FWFonts/SWOLFonts/Deco") (infos))
  871.                     )
  872.                 )
  873.  
  874.                 ; Make installer cd into Deco when it executes the run statement
  875.                 (set @execute-dir (tackon FW_dest "FWFonts/SWOLFonts/Deco"))
  876.  
  877.                 (working (#install_deco #install_disk_5))
  878.                 (set error
  879.                     (run
  880.                         ("\"%s\" -f x \"Disk 5:Deco.lha\" >NIL:" DeArcher)
  881.                     )
  882.                 )
  883.  
  884.                 ; Abort if any errors
  885.                 (if error
  886.                     (abort #install_deco_err)
  887.                 )
  888.             )
  889.         )
  890.  
  891.         (complete 85)
  892.  
  893.         ; Instaling Serif1 fonts
  894.         (if (IN install_options 8)
  895.             (
  896.                 ; If FWFonts/SWOLFonts/Serif doesn't exist, create it.
  897.                 (if (NOT (exists (tackon FW_dest "FWFonts/SWOLFonts/Serif")))
  898.                     (
  899.                     (makedir (tackon FW_dest "FWFonts/SWOLFonts/Serif") (infos))
  900.                     )
  901.                 )
  902.  
  903.                 ; Make installer cd into Serif when it executes the run statement
  904.                 (set @execute-dir (tackon FW_dest "FWFonts/SWOLFonts/Serif"))
  905.  
  906.                 (working (#install_serif #install_disk_5))
  907.                 (set error
  908.                     (run
  909.                         ("\"%s\" -f x \"Disk 5:Serif1.lha\" >NIL:" DeArcher)
  910.                     )
  911.                 )
  912.  
  913.                 ; Abort if any errors
  914.                 (if error
  915.                     (abort #install_serif_err)
  916.                 )
  917.             )
  918.         )
  919.     )
  920. )
  921.  
  922. (complete 90)
  923.  
  924. (if (IN install_options 8)
  925.     (
  926.         ; ----------
  927.         ; Get Disk 6
  928.         ;
  929.         (askdisk
  930.             (prompt    (#ask_disk_prompt #install_disk_6))
  931.             (help        (#ask_disk6_help #install_disk_6))
  932.             (dest        #install_disk_6)
  933.         )
  934.  
  935.         ; Instaling Serif2 fonts
  936.         (if (IN install_options 8)
  937.             (
  938.                 ; If FWFonts/SWOLFonts/Serif doesn't exist, create it.
  939.                 (if (NOT (exists (tackon FW_dest "FWFonts/SWOLFonts/Serif")))
  940.                     (
  941.                     (makedir (tackon FW_dest "FWFonts/SWOLFonts/Serif") (infos))
  942.                     )
  943.                 )
  944.  
  945.                 ; Make installer cd into Serif when it executes the run statement
  946.                 (set @execute-dir (tackon FW_dest "FWFonts/SWOLFonts/Serif"))
  947.  
  948.                 (working (#install_serif #install_disk_6))
  949.                 (set error
  950.                     (run
  951.                         ("\"%s\" -f x \"Disk 6:Serif2.lha\" >NIL:" DeArcher)
  952.                     )
  953.                 )
  954.  
  955.                 ; Abort if any errors
  956.                 (if error
  957.                     (abort #install_serif_err)
  958.                 )
  959.             )
  960.         )
  961.     )
  962. )
  963.  
  964. (complete 95)
  965.  
  966. (if (IN install_options 8)
  967.     (
  968.         ; ----------
  969.         ; Get Disk 7
  970.         ;
  971.         (askdisk
  972.             (prompt    (#ask_disk_prompt #install_disk_7))
  973.             (help        (#ask_disk7_help #install_disk_7))
  974.             (dest        #install_disk_7)
  975.         )
  976.  
  977.         ; Instaling Sans serif fonts
  978.         (if (IN install_options 8)
  979.             (
  980.                 ; If FWFonts/SWOLFonts/Sans doesn't exist, create it.
  981.                 (if (NOT (exists (tackon FW_dest "FWFonts/SWOLFonts/Sans")))
  982.                     (
  983.                     (makedir (tackon FW_dest "FWFonts/SWOLFonts/Sans") (infos))
  984.                     )
  985.                 )
  986.  
  987.                 ; Make installer cd into Sans when it executes the run statement
  988.                 (set @execute-dir (tackon FW_dest "FWFonts/SWOLFonts/Sans"))
  989.  
  990.                 (working (#install_sans #install_disk_7))
  991.                 (set error
  992.                     (run
  993.                         ("\"%s\" -f x \"Disk 7:Sans.lha\" >NIL:" DeArcher)
  994.                     )
  995.                 )
  996.  
  997.                 ; Abort if any errors
  998.                 (if error
  999.                     (abort #install_sans_err)
  1000.                 )
  1001.             )
  1002.         )
  1003.     )
  1004. )
  1005.  
  1006. ; If FWDocs doesn't exist, create it.
  1007. (if (NOT (exists (tackon FW_dest "FWDocs")))
  1008.     (
  1009.     (makedir (tackon FW_dest "FWDocs") (infos))
  1010.     )
  1011. )
  1012.  
  1013. ; If FWTextClips doesn't exist, create it.
  1014. (if (NOT (exists (tackon FW_dest "FWTextClips")))
  1015.     (
  1016.     (makedir (tackon FW_dest "FWTextClips") (infos))
  1017.     )
  1018. )
  1019.  
  1020. (delete DeArcher)
  1021.  
  1022. (complete 100)
  1023.  
  1024. (exit)
  1025.  
  1026.