home *** CD-ROM | disk | FTP | other *** search
- ; $VER: STFax-Install 1.6 (15.3.97)
-
- (complete 0)
-
- (set InstallDir
- (askdir
- (prompt "Where do you want to install STFax?"
- " (a drawer called 'STFax' will be created there)")
- (help @askdir-help)
- (default "Work:")
- )
- )
-
- (Set DestDir
- (tackon InstallDir "STFax")
- )
-
- (Set FaxInDir
- (tackon DestDir "Fax_In")
- )
-
- (Set FaxOutDir
- (tackon DestDir "Fax_Out")
- )
-
- (Set ConfigDir
- (tackon DestDir "Config")
- )
-
- (Set LocaleDir
- (tackon DestDir "Catalogs")
- )
-
- (Set ContribDir
- (tackon DestDir "Contributions")
- )
-
- (set @default-dest DestDir)
-
- (makedir DestDir)
-
- (copyfiles
- (source "/STFax.info")
- (dest InstallDir)
- (infos)
- (noposition)
- )
-
- (complete 10)
-
- (if (<= (/ (getversion) 65536) 38)
- (set Kick2 1)
- (set Kick2 0)
- )
-
- (copyfiles (source "STFax") (dest DestDir))
- (copyfiles (source "STFax.info") (dest DestDir) (noposition))
- (copyfiles (source "STFax.guide.info") (dest DestDir) (noposition))
- (copyfiles (source "NoData.txt") (dest DestDir))
- (copyfiles (source "Catalogs.info") (dest DestDir) (noposition))
-
- (complete 15)
-
- (copyfiles
- (source "Devs/Printers/STFaxPrt")
- (dest "DEVS:Printers")
- )
-
- (complete 20)
-
- (select
- (askchoice
- (prompt "Which documentation should I install?")
- (help @askoption-help)
- (choices "English" "Italiano")
- (default 0)
- )
- ; case 0 --- English
- (
- (copyfiles (source "STFax.guide") (dest DestDir))
- (copyfiles (source "ReadMe_Now!") (dest DestDir))
- (copyfiles (source "ReadMe_Now!.info") (dest DestDir) (noposition))
- (copyfiles (source "OrderForm.txt") (dest DestDir))
- (copyfiles (source "OrderForm.txt.info") (dest DestDir) (noposition))
- )
- ; case 1 --- Italiano
- (
- (copyfiles (source "docs/italiano/STFax.guide") (dest DestDir))
- (copyfiles (source "docs/italiano/Leggimi_Ora!") (dest DestDir))
- (copyfiles (source "docs/italiano/ModRegistrazione.txt") (dest DestDir))
- (copyfiles
- (source "ReadMe_Now!.info")
- (dest DestDir)
- (newname "Leggimi_Ora!.info")
- (noposition)
- )
- (copyfiles
- (source "OrderForm.txt.info")
- (dest DestDir)
- (newname "ModRegistrazione.txt.info")
- (noposition)
- )
- )
- )
-
-
- (complete 30)
-
- (if (exists "STFax.key")
- (copyfiles
- (source "STFax.key")
- (dest DestDir)
- )
- )
-
- (if Kick2
- (tooltype
- (dest (tackon DestDir "STFax.guide"))
- (setdefaulttool "AmigaGuide")
- )
- )
-
- (complete 40)
-
- (makedir LocaleDir (infos))
-
- (copyfiles
- (source "Catalogs")
- (dest LocaleDir)
- (pattern "IEditor#?.c#?")
- )
-
- (complete 50)
-
- (makedir FaxInDir (infos))
- (makedir FaxOutDir (infos))
- (makedir ConfigDir)
-
- (complete 60)
-
- (copyfiles
- (source "Devs/Datatypes")
- (dest "DEVS:Datatypes")
- (pattern "#?")
- (infos)
- (noposition)
- )
-
- (copylib
- (prompt "Installing STFax.datatype...")
- (help "This will install the STFax.datatype: it will let "
- "you import STFax faxes into any program that supports "
- "datatypes.")
- (source "Classes/Datatypes/STFax.datatype")
- (dest "SYS:Classes/Datatypes")
- (confirm)
- )
-
- (complete 70)
-
- (startup "STFax"
- (prompt "Editing your S:User-Startup")
- (help "The Installer will add one assign needed by STFax")
- (command (cat " Assign STFax: \"" DestDir "\" >NIL:"))
- )
-
- (makeassign "STFax" DestDir)
-
- (complete 80)
-
- (copyfiles
- (prompt "Copying catalog files")
- (help @copyfiles-help)
- (source "Catalogs")
- (dest LocaleDir)
- (choices "ÃeÓtina" "català" "dansk" "deutsch" "español"
- "français" "greek" "italiano" "nederlands" "norsk"
- "polski" "svenska")
- (confirm)
- )
-
- (complete 90)
-
- (copyfiles
- (prompt "Copying contributions")
- (help @copyfiles-help)
- (source "Contributions")
- (dest ContribDir)
- (choices "Multi2STFax" "Multi2STFax.doc")
- (confirm)
- (infos)
- )
-
- (if (exists ContribDir)
- (copyfiles
- (source "Contributions.info")
- (dest DestDir)
- (noposition)
- )
- )
-
- (complete 100)
-