Well, best guess. I’m 70% done with the installer.

Just need to port the backup creation code, the system files transfer stuff and 
example package/zip installer portion.

But, the readme on using it for the OS release is mostly done. 

https://github.com/shidel/FDI/blob/master/README.md 
<https://github.com/shidel/FDI/blob/master/README.md>

FreeDOS 1.2 Installer Prototype

This project is for creating the FreeDOS <http://freedos.org/> 1.2+ 
installation kit based on V8Power Tools <http://up.lod.bz/V8Power> batch file 
enhancement utilities.

 <https://github.com/shidel/FDI/blob/master/README.md#file-list>File List

README.md   - This file.
LICENSE     - GNU GPL v2.
mkFDI.bat   - Create the Floppy installation media.
 
<https://github.com/shidel/FDI/blob/master/README.md#build-files-in-insfiles>Build
 files in INSFILES\

MKBIN.LST    List of files copyied from C:\FDOS\BIN\ to A:\FDSETUP\BIN\
MKHELP.LST   List of files copyied from C:\FDOS\HELP\ to A:\FDSETUP\HELP\
MKV8P.LST    List of files copyied from V8POWER\ to A:\FDSETUP\V8POWER\
MKSETUP.LST  List of files copyied from INSFILES\ to A:\FDSETUP\SETUP\
AUTOEXEC.BAT Copied as-is to A:\
FDCONFIG.SYS Copied as-is to A:\
SETUP.BAT    Copied as-is to A:\
 
<https://github.com/shidel/FDI/blob/master/README.md#what-the-installer-does>What
 the installer does.

AUTOEXEC.BAT calls SETUP.BAT RECOVERY

SETUP.BAT

    Tests for presence of V8Power Tools.
    Tests for I/O redirection support at present.
    Does some basic settings initialization.

    Loads configuration from STAGE000.BAT. This is where some of the
    built-in default settings are stored. Things like New Volume Label,
    OS Version and etc.

    if RECOVERY option was present at launceh, tests if this version of
    FreeDOS is already installed using STAGE001. If so, just exists to
    prompt with a welcome message. Otherwise, proceeds with installer.

    STAGE002, Loads current color scheme from either THEMENUL.BAT or
    if THEMEADV.BAT (Advanced Mode).

    STAGE003, Displays welcome to FreeDOS installer message. Offers to
    continue or exit.

    STAGE004, Checks if drive C exists. If not prompts user that C needs
    partitioned and offers to run fdisk or exit. If user selects fdisk,
    then offers to reboot or exit.

    STAGE005, Checks if drive C is readble. If not prompts user that C
    needs formatted and offers to format or exit. If user selects formats,
    then rechecks if C is readble. If not, offers to reboot or exit.

    STAGE006, Sets up temporary TEMP Directory so I/O redirection can
    function and for storage of a couple temporary files. If I/O
    redirection is still unavailable, it will abort the installation.

    NOTE: Now that a TEMP directory exists,  FDIWIND.BAT and other
    batch files that use I/O redirection for utilities like vmath can
    now be used.

    STAGE007, Calls all Installation configuration batch files named
    FDASK???.BAT located in the FDSETUP\SETUP directory.

    STAGE008, Prompts user that installation will now begin, Offers
    to continue or exit. Then, scans current FDSETUP\SETUP for all
    FDINS???.BAT files. The scans all other drives for
    \FDSETUP\SETUP\FDINS???.BAT files and calls them in that order to
    perform the installation.

    STAGE009, Informs user that instalation is complete offers reboot or
    exit.

    STAGE999, Performs cleanup and is always run. It is only not run
    if the STAGE001 test for existing OS installation passes and the
    batch script is exiting without running the installer.

    If user had selected reboot in STAGE009, it is done now.
 
<https://github.com/shidel/FDI/blob/master/README.md#some-global-environment-variables>Some
 global environment variables.

    OS_NAME     = Should always be "FreeDOS"
    OS_VERSION  = Current OS Version.

    FADV        = "y" if running in advanced mode.
    FDIDFMT     = "y" if during this execution the batch file formatted
                drive C.
    FWAIT       = If your going to use vpause, This is how many seconds you
                should pause. Example: vpause /t %FWAIT%
 
<https://github.com/shidel/FDI/blob/master/README.md#options-configured-by-fdaskbat-files>Options
 configured by FDASK???.BAT files.

    OVOL        If drive is formatted, set its labal to this text
                (actually OVOL is set in STAGE000)

    OBAK        Set in FDASK000. If an operating system is detected.
                and user selects backup it will be set to "y". In advanced
                mode user can select 'archive to zip' then it is set as
                "z". If no OS was detected, or uses selects no backup it
                will be set to "n"

    OSYS        Set in FDASK001. If user is in basic mode it is set to
                "y" to transfer system boot files. In advanced mode,
                it is set to either "y" or "n" depended on choice.
 
<https://github.com/shidel/FDI/blob/master/README.md#installer-fdinsbat-scripts-included-on-boot-disk>Installer
 FDINS???.BAT scripts included on BOOT disk.

    FDINS000    Creates a backup folder of OS and CONFIG files if OBAK
                is set to "y". If it is "z" then a zip archive is created
                and stored in C:\FDBACKUP\ directory. If "n", then
                does nothing.

    FDINS001    Transfers system files if OSYS is "y".
 <https://github.com/shidel/FDI/blob/master/README.md#other-batch-files>Other 
batch files.

    FDCTRLC.BAT Code that is executed anytime the user presses CONTROL-C
                at a vchoice or vpause. Provides 3 options, Return to
                where you were, exit to dos or switch to/from advanced mode.

                You do not "CALL" FDCTRLC.BAT" you pass control to it and
                provide the batch file and options you wish to maintain
                if the user does not quit. The best example of this is
                STAGE004.BAT can return to itself in two separate places.

    FDIWIND.BAT Functions only after STAGE006 runs. Creates a normal box
                for text or choices. %1 is the total height of the box.
                So, add 4 to how many lines you want. You want 1 line for
                just one line of text "CALL FDIWIND.BAT 5"

    FDIOPTS.BAT Functions only after STAGE006. Creates an area to contain
                choices for vchoice. %1 is total number of choices you
                want.

    FDISCAN.BAT Used internally to scan for drives that may contain paths
                that may contain FDINS???.BAT files.

------------------------------------------------------------------------------
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to