For option 2, all you would need to do is execute a FreeDOS version function 
call. I don’t have the spec in front of me, however in the case of MS-DOS, and 
INT 21H/3306H and INT 21/30 returns the DOS version number.

Int 21/30 can be altered by SETVER, but INT 21/3306 should return BL as the 
major, BH as the minor. AL should be FFh if FreeDOS considers itself to be < 
MS-DOS 5.0

You may want to (in the case of someone wishing to install  FreeDOS over 
another DOS) use these functions I mentioned to determine the DOS that is 
running, i.e., DRDOS, OpenDOS, MSDOS 7.x. I’ll leave that up to your discretion.
Hopefully that helps you out a bit. 


> On Sep 30, 2015, at 10:32 AM, Jerome E. Shidel Jr. <jer...@shidel.net> wrote:
> 
> Did a little more restructuring. So now, the setup files make a little more 
> sense now for future updates to the installer.
> 
> So far this is what happens:
> 
>       1) boots from floppy or floppy image (like bottle CD)
> 
>       (Note: if user manually lauches installer, skip 2 and goto 3)
> 
>       2) Detects if latest FreeDOS version is installed (actual test not 
> written)
>               If it is the latest version, returns to prompt with welcome 
> message.
>               If not installer continues.
> 
>       3) Welcomes user to installer and asks if the want to continue.
>               If no, returns to prompt with install aborted message.
> 
>       4) Checks for drive C’s existence.
>               If it exists, skip to 7.
> 
>       5) Informs user they need to partition and offers to run partitioner.
>               if yes, runs fdisk.
>               If no, returns to prompt with abort message.
> 
>       6) Partitioner runs, then asked user to reboot.
>               if yes, reboots
>               If no, returns to prompt with abort message.
>       
>       7) Checks if C is formatted.
>               if yes, skip to 9.
>       
>       8) offers to format or exit to prompt.
> 
>       ——— to do ——— 
> 
>       9) Offer backup.
> 
>       10) install.
> 
> If user manually launches with "SETUP.BAT adv”, the installer will run in 
> advanced mode.
> 
> Also, at any choice box, if the User presses CTRL-C, they are provided with 
> choices to 
> either quit to DOS, go back to where they were or switch to and from Advanced 
> Mode.
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel


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

Reply via email to