home *** CD-ROM | disk | FTP | other *** search
- ;
- ; Commander 1.0 installer
- ; *************************
- ;
- ; (c) 2001 Magic Software
- ; ***********************
- ;
- ;
- ; -------------------------------------------------------------------------
- ;
- ; Set messages
- ;
- (if (= @language "english")
- (
- (set #select-destination
- (cat "Where do you want to install program files? A directory "
- "called \"Commander\" will be automatically created."
- )
- )
- (set #select-executable "Where do you want to install the executable file?")
- (set #select-catalogs "Which translations do you want to install?")
- (set #copying-files "Copying files...")
- (set #copying-library "Copying utilities.library...")
- )
- )
-
- (if (= @language "polski")
- (
- (set #select-destination
- (cat "Gdzie chcesz zainstalowaê pliki zwiâzane z programem? Katalog "
- "o nazwie \"Commander\" zostanie automatycznie utworzony."
- )
- )
- (set #select-executable "Gdzie chcesz zainstalowaê plik wykonywalny?")
- (set #select-catalogs "Które tîumaczenia chcesz zainstalowaê?")
- (set #copying-files "Kopiujë pliki...")
- (set #copying-library "Kopiujë utilities.library...")
-
- )
- )
- ;
- ;
- ;--------------------------------------------------------------------------
- ;
- ;
-
- ;
- ; Ask about files' destination
- ;
- (set #destinationParent
- (askdir
- (prompt #select-destination)
- (help @askdir-help)
- (default "SYS:")
- )
- )
-
- ;
- ; Ask about executable's destination
- ;
- (set #destinationExecutable
- (askdir
- (prompt #select-executable)
- (help @askdir-help)
- (default "SYS:WBStartup/")
- )
- )
-
- ;
- ; Ask about catalogs
- ;
- (set #catalogs
- (askoptions
- (prompt #select-catalogs)
- (help @askoptions-help)
- (choices "Deutsch" "Polski" "Suomi")
- (default 0)
- )
- )
- ;
- ;
- ; -------------------------------------------------------------------------
- ;
- ;
- (set #destination
- (tackon #destinationParent "Commander"
- )
- )
-
- ;
- ; Create destination directory
- ;
- (makedir #destination
- (infos)
- )
-
- ;
- ; Copy files
- ;
- (copyfiles
- (source "/")
- (dest #destination)
- (choices "Docs")
- (prompt #copying-files)
- (help @copyfiles-help)
- (infos)
- )
-
- ;
- ; Copy executable file
- ;
- (copyfiles
- (source "/WBStartup/Commander")
- (dest #destinationExecutable)
- (prompt #copying-files)
- (help @copyfiles-help)
- (infos)
- )
-
- ;
- ; Copy catalog description and catalogs
- ;
- (makedir (cat #destination "/Catalogs") )
- (copyfiles
- (source "/Catalogs.info")
- (dest #destination)
- (prompt #copying-files)
- (help @copyfiles-help)
- )
-
- (copyfiles
- (source "/Catalogs/Commander.cd")
- (dest (cat #destination "/Catalogs") )
- (prompt #copying-files)
- (help @copyfiles-help)
- )
-
- (set n 0)
- (while (set #catalog (select n "Polski" "Deutsch" "Suomi" "") )
- (
- (if (IN #catalogs n)
- (
- (copyfiles
- (source (cat "/Catalogs/" #catalog) )
- (dest (cat "LOCALE:Catalogs/" #catalog) )
- (all)
- )
- )
- )
- (set n (+ n 1) )
- )
- )
-
- ;
- ; Copy utilities.library
- ;
- (copylib
- (source "/Libs/utilities.library")
- (dest "Libs:")
- (prompt #copying-library)
- (help @copylib-help)
- (confirm)
- )
-
- ;
- ; Copy wbstart.library
- ;
- (copylib
- (source "/Libs/wbstart.library")
- (dest "Libs:")
- (prompt #copying-library)
- (help @copylib-help)
- (confirm)
- )
-
- (exit)
-