home *** CD-ROM | disk | FTP | other *** search
- 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
- 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 3 2 76 6 -border
- color text yellow
- echo 5 6 70 1 -center "%title%"
- color text white
- rem --------- If on slow cpu, switch to alternate product --------
- set _needCpu 486
- getCpuType
- set _gotCpu %_1%
- set _version 1
- if %_gotCpu% < %_needCpu%
- set _version 0
- endif
- color back blue
- type %_text%\cpuid.txt 18 19 45 6
- color back cyan
- menu %_text%\cpuid.mnu 17 11 48 5 %_text%\cpuid.tit %_text%\enter.leg -default 0
- switch %_1%
- case slow:
- set _links ka386.lnk
- case fast:
- set _links ka.lnk
- case escape:
- goto exit_unsaved
- endswitch
- textbox 1 9 80 16 blue
- 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 install.img 18 1
- 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 1.49
- 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 19 50 6 -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
- mkdir misdisc
- copy %shortTitle%.ico
- copy %shortTitle%.pif
- copy %_links% ka.lnk
- copy misdisc\fixed.pal
- copy misdisc\zrun.exe zrun.exe
- copy misdisc\cursor1.cur
- copy misdisc\bum.arc
- copy misdisc\clk.arc
- copy misdisc\cmd.arc
- copy misdisc\txt.arc
- copy misdisc\zsc.arc
- copy callss.exe
- copy ssvol.exe
- copy doc doc -dir
- copy doceng.txl doceng.txl
- copy install.exe readme.exe
- copy install.exe setup.exe
- copy readme.dat readme.bat -expand
- copy ka.ad
- copy ka.bml
- copy ka.com
- copy ka.db
- copy ka.inl
- copy ka.lch
- copy ka.ndx
- copy ka.not
- copy ka.skp
- copy ka.str
- copy ka.txt
- 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.ico
- copy readme.pif
- copy readme.scr
- copy sbtest.com
- copy setup.ico
- copy setup.scr
- copy small.fnt
- copy standard.fnt
- copy tiny.fnt
- 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 19 50 6 -border
- beep
- waitkey
- chain .\setup
- :exit_unsaved
- textbox 1 1 80 25 black
- quit
-