home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Resources
/
System
/
VersCheckGUI
/
Install
< prev
next >
Wrap
Text File
|
1999-11-19
|
9KB
|
331 lines
; $VER: InstallVersCheckGUI V 1.1 (19.11.1999) multi language version
; Installer script to install/update VersCheckGUI
; written by Michaela Prüß
; Note(s):
; - This script includes a special feature for use by InstallerNG
; - Last settings will stored and reloaded at next installation
; - Testet with Installer V44 (OS3.5) and InstallerNG 1.4
; ----------------------------------------------------------------------------
; languages (the number is the used language number inside this script)
; ----------------------------------------------------------------------------
; # translation exists for install catalog guide
;
; 0 english -default- YES YES YES
;
; ----------------------------------------------------------------------------
; init var's and set text vars (english) as default, other languages later
; ----------------------------------------------------------------------------
(complete 0)
(user 0)
(set @app-name "VersCheckGUI")
(set #default_language 0)
;== output and help ENGLISH ==================================================
(set @abort-button "Abort")
(set #err_oldkick "Need KickStart 2.0 or higher")
(set #mes_copyfile "Copy file...")
(set #mes_copyinfo "Copy icon...")
(set #ask_true "Yes")
(set #ask_false "No")
(set #txt_ask_prgcpu
(cat "\nInstall VersCheckGUI on harddisk."
"\n\nPlease choose your CPU type:"
))
(set #hlp_ask_prgcpu
(cat "\nVersCheckGUI will be installed in a later choosen"
"\ndrawer."
"\nFirst set the cpu-version that you want to be"
"\ninstalled!"
"\n\nMichaela Prüß, 16.10.1999\n"
))
(set #txt_ask_docs
(cat "Path for the document's.\n"
"A drawer 'VersCheckGuide' will be added there!"
))
(set #hlp_ask_docs "Drawer for the documentation.\n")
(set #txt_ask_fonts "Install xen.font into fonts: drawer?\n")
(set #hlp_ask_fonts
(cat "\nDo you want to install the xen.font to your"
"\nfonts: drawer?\n"
"\nThis font is needed for VersCheckGUI!\n"
))
(set #choice_cpu-0 "68000")
(set #choice_cpu-1 "68010")
(set #choice_cpu-2 "68020 / 68881")
(set #choice_cpu-3 "68030 / 68882")
(set #choice_cpu-4 "68040 / FPU 040")
(set #choice_cpu-5 "68060 / FPU 060")
(set #choice_cpu-6 "PowerPC with PowerUp")
(set #choice_cpu-7 "PowerPC with Warp-OS")
(set #txt_dir_prog
(cat "Select path for the programfile."
"\nUse the drawer where VersCheck is installed!"
"\nNo new drawer will be added!"
))
(set #hlp_dir_prog
(cat "Choose the location for installing"
"\nVersCheckGUI."
))
(set #txt_finish
(cat "\nEnd of installation!\n"
"\nVersCheckGUI is complete installed and txt_finish for"
"\nusage!\n"
))
(set #txt_welcome
(cat "\nWelcome to the installation of\nVersCheckGUI!\n\n"
"(c) 1998, 1999 by Michaela Prüß"
"\n\nVersCheckGUI need VersCheck to work!\n"
))
;=============================================================================
; HERE THE WORK BEGIN *** Check system, set defaults ***
;=============================================================================
(user 2)
(onerror ((if (> @ioerr 0)(message (cat "\n INSTALLER ERROR: " @ioerr "\n\n")))))
(complete 1)
(if (< (/ (getversion) 65536) 37)((abort #err_oldkick)))
(complete 2)
(message #txt_welcome)
(complete 5)
(set #cpu 0)
(if (patmatch "68010" (database "cpu"))((set #cpu 1)))
(if (patmatch "68020" (database "cpu"))((set #cpu 2)))
(if (patmatch "68030" (database "cpu"))((set #cpu 3)))
(if (patmatch "68040" (database "cpu"))((set #cpu 4)))
(if (patmatch "68060" (database "cpu"))((set #cpu 5)))
(set #testlib (tackon "libs:" "PowerPC.library"))
(if (= (exists #testlib) 0)(
(set #testlib (tackon "libs:" "ppc.library"))
(if (= (exists #testlib) 0)(
(set #prgcpu #cpu)
)(
(set #prgcpu 6)))
)(
(set #prgcpu 7)
))
(complete 7)
(set #stortest (tackon "env:" "VCheck/VersDir"))
(if (= (exists #stortest) 0)(
(set #stored_dir_prog "c:")
)(
(set #stored_dir_prog (getenv "VCheck/VersDir"))
))
(set #stortest (tackon "env:" "VCheck/VersDoc"))
(if (= (exists #stortest) 0)(
(set #stored_dir_docs "help:")
)(
(set #stored_dir_docs (getenv "VCheck/VersDoc"))
))
;=============================================================================
; HERE THE INPUT BEGIN / USER ACTION *** All need questions ***
;=============================================================================
(user 2)
(set #inst_cpu_prog
(askchoice
(default #prgcpu)
(prompt #txt_ask_prgcpu)
(help #hlp_ask_prgcpu)
(choices #choice_cpu-0
#choice_cpu-1
#choice_cpu-2
#choice_cpu-3
#choice_cpu-4
#choice_cpu-5
#choice_cpu-6
#choice_cpu-7
)))
(complete 10)
(if (= @installer-ng-version 0)(
(set #inst_dir_prog
(askdir
(prompt #txt_dir_prog)
(help #hlp_dir_prog)
(default #stored_dir_prog)
(disk)
))
(set #inst_dir_docs
(askdir
(prompt #txt_dir_docs)
(help #hlp_dir_docs)
(default #stored_dir_docs)
(disk)
))
)(
(set #inst_dir_prog
(askdir
(prompt (cat (cat #txt_dir_prog "\n\ndefault: »")(cat #stored_dir_prog "«")))
(help #hlp_dir_prog)
(default #stored_dir_prog)
(disk)
))
(set #inst_dir_docs
(askdir
(prompt (cat (cat #txt_dir_docs "\n\ndefault: »")(cat #stored_dir_docs "«")))
(help #hlp_dir_docs)
(default #stored_dir_docs)
(disk)
))))
(complete 20)
(set #inst_set_fonts
(askchoice
(prompt #txt_ask_fonts)
(help #hlp_ask_fonts)
(choices #ask_true
#ask_false
)))
(complete 25)
;=============================================================================
; HERE THE COPY BEGIN *** install all files ***
;=============================================================================
(user 0)
(if (= #inst_cpu_prog 0)(
(copyfiles
(prompt #mes_copyfile)
(dest #inst_dir_prog)
(source "VersCheckGUI")
(newname "VersCheckGUI")
(infos)
)))
(if (= #inst_cpu_prog 1)(
(copyfiles
(prompt #mes_copyfile)
(dest #inst_dir_prog)
(source "VersCheckGUI.010")
(newname "VersCheckGUI")
(infos)
)))
(if (= #inst_cpu_prog 2)(
(copyfiles
(prompt #mes_copyfile)
(dest #inst_dir_prog)
(source "VersCheckGUI.020")
(newname "VersCheckGUI")
(infos)
)))
(if (= #inst_cpu_prog 3)(
(copyfiles
(prompt #mes_copyfile)
(dest #inst_dir_prog)
(source "VersCheckGUI.030")
(newname "VersCheckGUI")
(infos)
)))
(if (= #inst_cpu_prog 4)(
(copyfiles
(prompt #mes_copyfile)
(dest #inst_dir_prog)
(source "VersCheckGUI.040")
(newname "VersCheckGUI")
(infos)
)))
(if (= #inst_cpu_prog 5)(
(copyfiles
(prompt #mes_copyfile)
(dest #inst_dir_prog)
(source "VersCheckGUI.060")
(newname "VersCheckGUI")
(infos)
)))
(if (= #inst_cpu_prog 6)(
(copyfiles
(prompt #mes_copyfile)
(dest #inst_dir_prog)
(source "VersCheckGUI.elf")
(newname "VersCheckGUI")
(infos)
)))
(if (= #inst_cpu_prog 7)(
(copyfiles
(prompt #mes_copyfile)
(dest #inst_dir_prog)
(source "VersCheckGUI.wos")
(newname "VersCheckGUI")
(infos)
)))
(complete 25)
(copyfiles
(prompt #mes_copyinfo)
(dest #inst_dir_prog)
(source "VersCheckGUI.info")
(newname "VersCheckGUI.info")
(infos)
)
(complete 30)
(copylib
(prompt #mes_copyfile)
(dest "Libs:")
(source "Libs/intuisup.library")
)
(complete 40)
(set #n 0)
(while
(set #workfile (select #n
"ReadMe.1st"
"Doku/VersCheckGUI.readme"
"Doku/VersCheckGUI.doc"
""
))
(copyfiles
(prompt #mes_copyfile)
(dest (tackon #inst_dir_docs "VersCheckGuide"))
(source #workfile)
)
(copyfiles
(prompt #mes_copyfile)
(dest (tackon #inst_dir_docs "VersCheckGuide"))
(source (cat #workfile ".info"))
)
(set #n (+ #n 1))
)
(complete 80)
(copyfiles
(prompt #mes_copyfile)
(dest (tackon #inst_dir_docs "VersCheckGuide/GUISource"))
(source "src")
(all)
)
(complete 90)
(if (= #inst_set_fonts)
(copyfiles
(prompt #mes_copyfile)
(dest "Fonts:")
(source "Fonts")
(pattern "#?")
))
(user 2)
;=============================================================================
; SAY GOODBYE TO THE USER *** the end ***
;=============================================================================
(complete 100)
(message #txt_finish)
(exit (quiet))
(welcome)