home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
America Adventure
/
AMERICAADVE.BIN
/
america
/
iinstall.scr
< prev
next >
Wrap
Text File
|
1993-12-15
|
3KB
|
137 lines
rem Set default language
set LANG eng
set _text inst%LANG%.txl
err_handler %_text%\errhand.txt
rem ----------------- select language/quit --------------------
:pick_language
textbox 1 1 80 24 blue
color back cyan
rem only one language, so don't show menu
rem type %_text%\install.txt 2 2 77 6 -border
rem textbox 1 9 80 13 blue
menu %_text%\startup.mnu 15 11 50 7 %_text%\startup.tit %_text%\updown.leg -default 0 -lookupOnly
set LANG %_1%
set yes %_2%
set no %_3%
set shortTitle %_4%
set title "%_5%"
switch %_1%
case quit:
goto exit_unsaved
case escape:
goto exit_unsaved
case default:
endswitch
set _text inst%LANG%.txl
type %_text%\install.txt 2 2 77 6 -border
rem --------- Ask user Where to install it ------------
textbox 1 9 80 16 blue
promptdir c:\%shortTitle% 20 11 40 7 %_text%\whichdrv.tit %_text%\whichdrv.txt
if %_1% eq escape
goto exit_unsaved
endif
setdestdir %_1%
mkdirdest
if %_err% != 0
beep
type %_text%\noaccess.txt 9 11 62 9 -border
waitkey_noesc
goto exit_unsaved
endif
textbox 1 9 80 16 blue
getVga
if %_err% = 1
type %_text%\novga.txt 9 11 62 13 -border
waitkey
textbox 1 9 80 16 blue
endif
set _needDisk 3.25
getdiskfree
set _gotDisk %_1%
if %_gotDisk% < %_needDisk%
type %_text%\diskfree.txt 9 11 62 9 -border
waitkey_noesc
goto exit_unsaved
endif
set needMem 523
getmemfree
set _gotMem %_1%
if %_gotMem% < %needMem%
type %_text%\memfree.txt 9 11 62 9 -border
waitkey
textbox 1 9 80 16 blue
endif
rem determine which version to install; default is 486
set _links ka486.lnk
set _needCpu 486
getCpuType
set _gotCpu %_1%
if %_gotCpu% < %_needCpu%
:ask_cpu
type %_text%\cpuid.txt 9 11 62 14 -border
waitkey
textbox 1 9 80 16
switch %_1%
case %yes%:
set _links ka386.lnk
case %no%:
rem do nothing
case default:
goto ask_cpu
endswitch
endif
rem set CDroot %CDroot%\_archiveDir
ifcanwrite can_write
type %_text%\noaccess.txt 9 11 62 9 -border
waitkey_noesc
goto exit_unsaved
:can_write
type %_text%\copying.txt 9 11 62 9 -border
saveconfig
copy readme.bat
copy readme.doc
copy %shortTitle%.ico %shortTitle%.ico
copy %shortTitle%.pif %shortTitle%.pif
rem Copy files needed for sound test
copy ka.ad
copy knowledg.voc
copy sbtest.com
copy kalogo.adl
copy kalogo.rld
copy iinstall.exe setup.exe
copy setup.scr
rem copy iinstall.pal
rem copy iinstall.fnt
rem Copy files needed for real product
copy ka.bml
copy ka.com
copy ka.db
copy ka.inl
rem copy ka.lch
copy %_links% ka.lnk
copy ka.ndx
copy ka.not
copy ka.skp
type %_text%\copying2.txt 9 11 62 9 -border
copy ka.txt
copy kaicons.pal
copy kav.pgm
copy mouse.com
copy moustest.exe
copy small.fnt
copy standard.fnt
copy tiny.fnt
copy vgacapt.exe
copy whichvga.com
copy vrsd.386
rem Done copying.
:install_done
type %_text%\finish.txt 9 11 62 9 -border
beep
waitkey
chain .\setup
:exit_unsaved
textbox 1 1 80 25 black
quit