Batch install script

Microsoft / Ms dos 6.22
July 10, 2010 at 16:25:35
Specs: MS DOS 6.22, 486/16MB
I am working on an install batch for a MS-DOS 6.22 install CD. I already know the disc will have problems since the installer looks for floppies labeled a certain way. What I did was install MS-DOS using the floppies, copied the files to the CD then made it bootable and pointing to a batch to make a directory and copy the files to that directory. What I'm looking to do is create an 'installer' that upon bootm, would check to see if the drive has a valid partition. If it doesn't, it'll ask to create one, then reboot the computer when done. If it finds the partition, it'll format it if it's not formatted and then copy the system files (sys.com) and then copy the files into a directory the installer asks for. Then it'll go into installing the rest (CDROM, Mouse Drivers, audio drivers, etc.)You won't even see the driver's menu if MS DOS is not installed and you won't see the MS DOS install options unless the disc is properly prepared. Anyone have an idea?

See More: Batch install script

Report •

#1
July 10, 2010 at 18:37:38
I'm sure that would be possible but I'm not really a batch file person.

The other method that many have tried with varying results is to edit dossetup.ini on disk 1. That's the file that tells setup.exe the installation is from floppy disk, the floppy disk labels and the files to expand and install.

If that's edited right you should be able to do the install from cd. I don't recall if the floppy install prompts for partitioning and formatting but if it does then it'd be the same with the cd as all that is in the setup.exe file.

Dossetup.ini is a text file so you don't need a hex editor.

Glass Packs--The sound of freedom.


Report •

#2
July 10, 2010 at 19:03:15
I've peeked into that file and had no idea what I was doing. Is there some resource or another posting online that could 'demystify' that file?

Report •

#3
July 10, 2010 at 21:08:05
I believe the [disk-type] 4 tells setup it's 1.44 floppy disks. The DISK 1, DISK 2, DISK 3 are the floppy disk software labels. If the disk you put in doesn't have the correct label it'll tell you to put in the correct disk.

I don't know if there's a dos disk type that's a cd. I don't know if the labels should be edited to the cdrom label. I would try removing or editing those entries and any others that refer to separate disks just to see what happens. That may be all you need to do.

I did some googling before posting and found posted links of people who seemed to be going in that direction but none that reported success. But it was only a few links I checked.

You'd need to install the cdrom driver in config.sys and mscdex and the mouse driver in autoexec.bat and that would be done before setup.exe started.

Generic sound drivers are going to be a problem. There was the PCSPEAKER or PCSPEAK file or whatever it was that enabled the on-board speaker. That may be the best you can do with the audio.

Glass Packs--The sound of freedom.


Report •

Related Solutions

#4
July 12, 2010 at 22:37:25
Well, looks like I am back at square one. Noone seems to know how to make the original installer install off CD. I've changed a few things in the dossetup.ini and it still doesn't want to work, so now I'm back to building this batch file.

My first step is trying to figure out how to check if there is a primary partition on the primary drive.

i've gone through alot of webpages, and unless I missed something, I don't know how to make a bat file check for the needed partition so it will go to the first step in the installer I'm making (again, out fo bat files) to sys the drive and then ask if I want to install Dos or Dos and Windows.

Any ideas?


Report •

#5
July 12, 2010 at 22:44:32
I don't. You may want to wait and see if anyone else responds or repost in the programming forum.

Glass Packs--The sound of freedom.


Report •

Ask Question