home *** CD-ROM | disk | FTP | other *** search
-
- ; GIFComposer installer by Tomas Åkesson
-
- (set @app-name "GIFComposer")
- (set #language "")
- (set #directory "")
- (set #nuffra 0)
-
- ; Börja installationen.
- ; Välj språk.
- (set #nuffra
- (askchoice
- (prompt "Which language would you like to install?")
- (help "If you don't choose english, a catalog file will be installed in Locale:catalogs/ with the language of your choice.")
- (choices "English (no catalog)"
- "Svenska"
- "Deutsch")
- (default 0)
- )
- )
-
- (if (= #nuffra 0)
- (set #language "English")
- )
- (if (= #nuffra 1)
- (set #language "Svenska")
- )
- (if (= #nuffra 2)
- (set #language "Deutsch")
- )
-
- ; Välj vart GC skall hamna
- (set #directory
- (askdir
- (prompt "Choose a directory to install GIFComposer in. A drawer will not be created (make one yourself if you want to).")
- (help "Specify a directory where the main program should end up. You could put the program wherever you want.\n\n")
- (default "work:")
- )
- )
-
- ; Välj vart guidefilen skall hamna
- (set #docdir
- (askdir
- (prompt "Where do you want to install the documentation?")
- (help "If you put the documentation in the HELP: directory, it may be opened from within GIFComposer when you press the Help-key")
- (default "help:")
- )
- )
-
- ; Börja kopiera
- ; Program filen med ikon.
- (if (<> #directory "")
- (copyfiles (prompt "Copying GIFComposer")
- (help "")
- (source "gifcomposer")
- (dest #directory)
- )
- )
- (if (<> #directory "")
- (copyfiles (prompt "Copying GIFComposer's icon")
- (help "")
- (source "gifcomposer.info")
- (dest #directory)
- )
- )
-
- (if (exists "libs:locale.library")
- (
- ; Katalog filen.
- (if (> #nuffra 0)
- (
- (set #spath (cat "catalogs/" #language))
- (set #spath (cat #spath "/gifcomposer.catalog"))
- (set #dpath (cat "Locale:Catalogs/" #language))
- (copyfiles (prompt "Copying catalog file")
- (help "")
- (source #spath)
- (dest #dpath)
- )
- )
- )
- )
- )
-
- ; Guide filen med ikon.
- (copyfiles (prompt "Copying GIFComposer.guide")
- (help "")
- (source "GIFComposer.guide")
- (dest #docdir)
- )
- (copyfiles (prompt "Copying GIFComposer.guide.info")
- (help "")
- (source "GIFComposer.guide.info")
- (dest #docdir)
- )
-
-
- (set @default-dest #directory)
-
- (message "\nGIFComposer is now installed. Have fun!")
-
-