home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 2
/
CD-ROM_Today_-_The_Disc_2_June-July_1994.iso
/
bodydemo
/
install.scr
< prev
next >
Wrap
Text File
|
1994-04-13
|
5KB
|
205 lines
rem Set default language
set LANG eng
set _text inst%LANG%.txl
err_handler %_text%\errhand.txt
getOpt -N:
switch %_err%
case 0:
rem -N given, add it to options
set _next %_1%
case 1:
rem -N not given
set _next 9999
endswitch
getOpt -help
if %_err% = 0
textbox 1 1 80 25 blue
type %_text%\insthlp.txt 3 2 77 15 -border -nocenter
waitkey
goto exit_unsaved
endif
rem ----------------- select language/quit --------------------
:pick_language
rem 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
rem type %_text%\install.txt 3 2 76 6 -border
color text yellow
rem echo 5 6 70 1 -center "%title%"
color text white
rem --------- Check for windows and warn if present ---------
rem getenv's argument is case sensitive, almost always uppercase,
rem but windir is lowercase. That way you can't set it from commandline!
getenv windir
if "%_1%" ne ""
rem by golly they're in windows;
type %_text%\nowin.txt 10 11 60 7 -border
waitkey_noesc
switch %_1%
case escape:
rem fall through and install
textbox 5 10 70 10 blue
case default:
goto exit_unsaved
endswitch
endif
rem -------------- Text vs. Graphics Install ---------
rem Don't switch into graphics if -T is given
getOpt -T
switch %_err%
case 0:
rem -T given, no graphics
textbox 1 1 80 25 blue
color back cyan
type %_text%\install.txt 3 2 76 6 -border
color text yellow
echo 5 6 70 1 -center "%title%"
color text white
set _options "-T"
case 1:
rem -T not given, use graphics
graphics
if %_err% > 0
beep
type %_text%\novga.txt 5 17 72 8 -border
waitkey
endif
endswitch
pict install1.img 19 2
rem --------- Ask user Where to install it ------------
promptdir C:\%shortTitle% 13 17 58 8 %_text%\whichdrv.tit %_text%\whichdrv.txt -center
textbox 1 17 80 9 blue
if %_1% eq escape
goto exit_unsaved
endif
setdestdir %_1%
getDriveLetter %CDroot%
set CDdrive %_1%
getDriveLetter %HDroot%
set HDdrive %_1%
getVga
if %_err% = 1
type %_text%\novga.txt 2 13 77 10 -border
waitkey
textbox 1 12 80 13 blue
endif
set _needDisk 2.5
rem Two different error messages: one for compressed full disks.
set _diskWarning diskfree.txt
set shadowCD On
detect_compressedDisk
if %_1% = 1
set shadowCD Off
set _diskWarning dskcfree.txt
add _needDisk %_needDisk%
endif
getdiskfree
set _gotDisk %_1%
if %_gotDisk% < %_needDisk%
type %_text%\%_diskWarning% 17 17 50 8 -border
waitkey_noesc
goto exit_unsaved
endif
set needMem 520
getmemfree
set _gotMem %_1%
if %_gotMem% < %needMem%
type %_text%\memfree.txt 17 19 50 6 -border
waitkey
textbox 1 17 80 8 blue
endif
mkdirdest
if %_err% != 0
beep
type %_text%\noaccess.txt 17 19 50 6 -border
waitkey_noesc
goto exit_unsaved
endif
ifcanwrite can_write
type %_text%\noaccess.txt 17 19 50 6 -border
waitkey_noesc
goto exit_unsaved
:can_write
exist install2.img
if %_1% = 1
textbox 1 1 80 19 blue
pict install2.img 19 2
endif
type %_text%\copying.txt 17 19 50 6 -border
copy %_text%
set _text %hdroot%\%_text%
saveconfig
copy %shortTitle%.ico %shortTitle%.ico
copy %shortTitle%.pif %shortTitle%.pif
copy callss.exe
copy ssvol.exe
copy cmp.arc
copy fixed.pal
copy install.exe setup.exe
copy ka.ad
copy ka.bml
copy ka.com
copy ka.db
copy ka.inl
copy ka.lch
copy ka.lnk
copy ka.ndx
copy ka.not
copy ka.skp
copy ka.str
copy ka.txt
copy kahd.iml
copy kahd.snd
copy kalogo.adl
copy kalogo.rld
copy kav.pgm
copy kawin.exe
copy kawin.txt
copy knowledg.voc
copy more.com
copy mouse.com
copy moustest.exe
copy nofiles.txt
copy readme.dat readme.bat -expand
copy readme.ico
copy readme.pif
copy sbtest.com
copy setup.scr
copy small.fnt
copy standard.fnt
copy txt.arc
copy zsc.arc
copy cmp.arc
copy mov.arc
copy zrun.exe
copy vgacapt.exe
copy whichvga.com
rem type %_text%\copying2.txt 17 19 50 6 -border
rem Make batch file so shell install can loop.
copy %_text%\install.bat install.bat -expand
rem Done copying.
:install_done
type %_text%\finish.txt 17 18 50 7 -border
beep
waitkey
chain .\setup
:exit_unsaved
textbox 1 1 80 25 black
quit