home *** CD-ROM | disk | FTP | other *** search
- @echo off
- set fdosroot=%cdrom%freedos\setup
- set path=A:\freedos;%fdosroot%\bin;%fdosroot%\install
- cls
- for %%x in ( [%lang%] [%color%] [%key%] [%instmode%] [%display%] ) do if %%x==[] goto defaults
- goto optmenu1
-
- :optmenu1
- set menu1_nr=
- call %fdosroot%\batch\menu1.bat
- echo.
- if "%menu1_nr%"=="INSTFDOS" goto optmenu2
- if "%menu1_nr%"=="BOOTDISK" call %fdosroot%\batch\bootdisk.bat
- if "%menu1_nr%"=="QUIT" LOCALIZE 0.17
- if "%menu1_nr%"=="QUIT" goto end
- if "%menu1_nr%"=="VIEW" %fdosroot%\bin\pg %cdrom%freedos\docs\install3.txt
- if "%menu1_nr%"=="REBOOT" FDISK /REBOOT
- cls
- goto optmenu1
-
- :defaults
- alias menu=%fdosroot%\batch\autorun.bat
- set nlspath=%fdosroot%\nls
- set lang=EN
- set color=Color
- for %%x in ( 8086 80186 80286 ) do if "%cputype%"=="%%x" set color=Mono
- set display=yes
- set instmode=Mini
- if not "%disksrc%"=="B:" goto optmenu1
- if exist A:\freedos\localize.%lang% goto optmenu1
- if exist %fdosroot%\nls\localize.%lang% copy /y %fdosroot%\nls\localize.%lang% A:\freedos\localize.%lang%
- if exist A:\freedos\localize.%lang% set nlspath=A:\freedos
- cls
- goto optmenu1
-
- :optmenu2
- set menu2_nr=
- call %fdosroot%\batch\menu2.bat
- echo.
- if "%menu2_nr%"=="INSTFDOS" goto installr
- if "%menu2_nr%"=="SETLANG" goto sel_lang
- if "%menu2_nr%"=="SETSCRN" goto sel_scrn
- if "%menu2_nr%"=="SETKEYB" goto sel_keyb
- if "%menu2_nr%"=="SETSIZE" goto sel_mode
- if "%menu2_nr%"=="QUIT" goto optmenu1
- goto optmenu2
-
- :installr
- rem ## provide general information
- cls
- for %%x in ( %fdosroot%\LANGUAGE\%LANG%\BETA*.TXT ) DO if exist %%x TYPE %%x
- echo.
- pause
- rem ## provide installation notes.
- for %%x in ( %fdosroot%\LANGUAGE\%LANG%\INST.TXT ) DO if exist %%x %cdrom%\freedos\setup\bin\pg %%x
-
- set TEXTMENU=
- call %fdosroot%\batch\textmenu.bat
- if "%TEXTMENU%"=="QUIT" goto optmenu2
- if "%TEXTMENU%"=="QUIT" goto optmenu2
- rem Do not CALL this, but let it be the end-option.
- rem But what about the INSTALLER not being run? how to solve that?
- if exist %fdosroot%\batch\postinst.bat %fdosroot%\batch\postinst.bat
- goto optmenu2
-
- :sel_lang
- set LANG=EN
- cls
- goto optmenu2
-
- :sel_scrn
- echo What kind of monitor do you have?
- echo 1) Color
- echo 2) Monochrome
- echo.
- echo NB: if graphical installer does not work properly, please pick monochrome
- %fdosroot%\bin\choice /C:12 " "
- if errorlevel 1 set color=Color
- if errorlevel 2 set color=Mono
- goto optmenu2
-
- :sel_keyb
- cls
- type %fdosroot%\language\regional.txt
- echo.
- echo.
- echo Please enter the number corresponding to the name which best described
- set /P choice=your current location (confirm input by pressing ENTER):
- if "%choice%"=="" goto optmenu2
- if not "%display%"=="" LH %fdosroot%\bin\DISPLAY CON=(EGA,,1)
- call %fdosroot%\batch\regional.bat %choice%
- set display=
- goto optmenu2
-
- :sel_mode
- echo What kind of install do you want?
- echo 1) Full install
- echo 2) Minimal install
- %fdosroot%\bin\choice /C:12 " "
- if errorlevel 1 set instmode=Full
- if errorlevel 2 set instmode=Mini
- goto optmenu2
-
- :end