> On Sep 30, 2015, at 3:40 PM, Antony Gordon <cuzint...@gmail.com> wrote:
> 
> 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. 
> 

Thanks for the reply. Unfortunately, in a couple cases that is not going to 
work.

 It would work fine if you had booted dos normally, then inserted the install 
media and run the setup.bat installer. (or run it from a subdirectory).

However, if you boot the install media and it runs the setup.bat file, the dos 
version will be the version you want to install. Not, the already installed 
version.

It will be easy to remedy though. After the installer completes, write a notice 
file like C:\FDOS\VERSION.FDI that is a text file containing the OS version 
information. Similar to what linux distros do.

Or, a less reliable method would be to query installed programs for their 
version numbers and figure it out from there. 

With the previous id file, at worst the user deletes it. Then if they boot from 
the install media, the installer will assume it is not installed and ask if they
want to do it again. 


> 
>> 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


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

Reply via email to