Help - Search - Members - Calendar
Full Version: Custom 95 & 98 Boot Images
MSFN Forums > Unattended Windows Discussion & Support > Multi-Boot CD/DVDs

   


Google Internet Forums Unattended CD/DVD Guide
Randy Rhoads
Ive attached my finished boot image files for these OS's and quoted the 98 example. The 95 is the same just edited to say 95 instead.

The attachment has all the files needed to inject into your current images sepeated by folders.

Both include a JO.SYS file which gives you the option to boot from hardrive or CDROM with hardrive being default with a 10 second timer. This is best if you use these for seperate Windows cd's.

So, if you use these for a multiboot CD or DVD, you will need to edit in your paths to the windows folder inside the Autoexec.bat and it would be better to not use the JO.SYS file so the multi-boot menu jumps straight to the Autoexec.bat.

The Autoexec.bat included is edited assuming the WIN95 and WIN98 folders are in the root of the cd.

QUOTE
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%

path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
copy choice.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
copy rebooter.exe %RAMD%:\ > NUL

%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo.
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:M
echo.
smartdrv.exe /q
set CDROM=FOO23
FINDCD.EXE
if "%CDROM%"=="FOO23" goto NOCDROM
path=a:\;%CDROM%\

:ERROR
IF EXIST ebd.cab GOTO MAIN
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR

:MAIN
CLS
echo Windows 98SE Setup Main Menu
echo =============================
echo.
ECHO Press 1. Run The FDISK Utility To Create Or Delete Partitions
ECHO Press 2. Go To The Format Menu With Full Or Quick Options
ECHO Press 3. Copy The 98 CD Files To Drive C And Begin Setup
ECHO Press 4. Start The 98 SE Setup Straight From The CDROM
echo.
ECHO Press 5. Exit To DOS Prompt
ECHO Press 6. Reboot The Computer
echo.
CHOICE /C:123456 /N /T:5,60 Press the Number Key To Choose a Menu Option.
IF ERRORLEVEL == 6 GOTO REBOOT
IF ERRORLEVEL == 5 GOTO QUIT
IF ERRORLEVEL == 4 GOTO CDROM
IF ERRORLEVEL == 3 GOTO DRIVEC
IF ERRORLEVEL == 2 GOTO FORMAT
IF ERRORLEVEL == 1 GOTO FDISK

:FDISK
CLS
FDISK.EXE
GOTO REBOOT

:DRIVEC
CLS
MD C:\CABS
path=a:\;%CDROM%\
%CDROM%
CD \WIN98
XCOPY *.* C:\CABS\*.* /s
CLS
echo Setup Is Ready To Start 98SE Install.
echo ===================================
echo.
echo Once Setup Begins You Can Remove The CD.
echo.
echo.
Pause
C:\CABS\SETUP.EXE /nf /ie /is
GOTO QUIT

:CDROM
CLS
path=a:\;%CDROM%\
%CDROM%
CD \WIN98
echo.
SETUP.EXE /nf /ie /is
GOTO QUIT

:FORMAT
CLS
echo Format Options Menu
echo ====================
echo.
ECHO Quick options are only for partitions that have been
ECHO previously full formated.
echo.
ECHO Drive D options are only for extended partitions
ECHO that was created using FDISK.
echo.
ECHO Press 1. Full Format Of Drive C
ECHO Press 2. Quick Format Of Drive C
echo.
ECHO Press 3. Full Format Of Drive D
ECHO Press 4. Quick Format Of Drive D
echo.
ECHO Press 5. Go Back To Main Menu
ECHO Press 6. Exit To DOS Prompt
ECHO Press 7. Reboot the Computer
echo.
echo.
CHOICE /C:1234567 /N /T:6,60 Press the Number Key To Choose a Menu Option.
IF ERRORLEVEL == 7 GOTO REBOOT
IF ERRORLEVEL == 6 GOTO QUIT
IF ERRORLEVEL == 5 GOTO MAIN
IF ERRORLEVEL == 4 GOTO QUICKD
IF ERRORLEVEL == 3 GOTO FULLD
IF ERRORLEVEL == 2 GOTO QUICKC
IF ERRORLEVEL == 1 GOTO FULLC

:FULLC
CLS
ECHO Press Y or N followed by the Enter key to begin.
ECHO -------------------------------------------------------------
echo.
path=a:\;%CDROM%\
%CDROM%
CD \WIN98
FORMAT C: /s /v:WIN_98
GOTO MAIN

:QUICKC
CLS
ECHO Press Y or N followed by the Enter key to begin.
ECHO -------------------------------------------------------------
echo.
path=a:\;%CDROM%\
%CDROM%
CD \WIN98
FORMAT C: /q /s /v:WIN_98
GOTO MAIN

:FULLD
CLS
ECHO Press Y or N followed by the Enter key to begin.
ECHO -------------------------------------------------------------
echo.
path=a:\;%CDROM%\
%CDROM%
CD \WIN98
FORMAT D: /s /v:DRV_D
GOTO MAIN

:QUICKD
CLS
ECHO Press Y or N followed by the Enter key to begin.
ECHO -------------------------------------------------------------
echo.
path=a:\;%CDROM%\
%CDROM%
CD \WIN98
FORMAT D: /q /s /v:DRV_D
GOTO MAIN

:NOCDROM
echo.
echo Dude, the Windows 98 cd wasnt detected.
pause
echo.

:REBOOT
CLS
ECHO Rebooting Computer.....
REBOOTER.EXE


:QUIT
CLS
echo To get help, type HELP and press ENTER.
rem clean up environment variables
set CDROM=
set LglDrv=
Randy Rhoads
I went ahead and threw in all the small DOS apps needed as well and reuploaded the attachment. XCOPY files, CHOICE.COM, and REBOOTER.EXE
jaclaz
Thanx Randy,
I'll have a look into it.

jaclaz
Alanoll
if you have more then one CDROM, you might run into problems.
Randy Rhoads
QUOTE
  if you have more then one CDROM, you might run into problems.


Details?

The cdrom will always boot as drive Z, C will always be the 1st active partition, and you cant format D untill you create an extended D partition to format which will boot the cdrom as E, by default, after the reboot, but the edited autoexec should boot it as drive Z anyway.
Alanoll
If say you have 2 CDROMs. IF you use the SECOND CDROM, the autoexec will break, as the FIRST one detected becomes Z: and the second shouldn't even get a letter.
Randy Rhoads
QUOTE
If say you have 2 CDROMs. IF you use the SECOND CDROM, the autoexec will break, as the FIRST one detected becomes Z: and the second shouldn't even get a letter.


I'll have to check that, but who boots a Windows disk with a slave drive? If you have a CDRW theres no need for a cdrom added as it is just sapping the PSU. If you have a DVD burner, theres no reason to have a seperate CDRW or CDROM installed ither. So, technically, you just one master optical drive.
Jito463
Personally I wouldn't need this, but say someone used it on a multi-boot DVD and the only DVD drive was the slave? That would be an example. I don't think Alanoll is being critical, he's just trying to help you out by showing you ways you can make it better.
Randy Rhoads
QUOTE
and the only DVD drive was the slave?


There should never be a need for slave optical drive IMO. I see no reason why it wont work, because if it didnt work in a slave drive, then that means booting a default 98 cd wouldnt have worked in that situation ither as all i changed from the original code, in that area, is to boot as Z instead of D. So, if thats the case then its M$'s fault..lol
Alanoll
except the original 98 boot sector, actually found the CD drive letter. But started MSCDEX.EXE with letters at M or something (atleast the one I have). But IF the CD was still D to begin with, and the hdd was also D, the CD would then become E instead.

As for two optical drives, i personally have three. One CD Burner, and two DVD burner. Sure it takes more power, but it's simply for ease of use. Which is why i know the problem with Z tongue.gif
harunaksoy
Thanks man I was looking for this all the time.
and does this work with ME and 3.11 too?
Randy Rhoads
Well i did some changes although im not sure if it would help as i dont have a setup to try a slave drive without cracking open the tower and adding one. Added a hexed FINDCD.EXE you add in the images and a file for each 9X's you place in the root of the CD/CD's (renamed WIN51 files). I also added how the autoexec.bat looks now as well.

Someone with a slave drive and old empty hardrive to play with will have to check it out or just boot from a master drive only, which i feel is the easiest method.

DVD Burner is the only drive someone should own because it can function as a:

*CDROM
*CDRW
*DVD Player
*DVD Burner

All in one drive, set it as master, throw slave in garbage. Problem solved...lol
jaclaz
Maybe stupid comment, but wouldn't it be easier to set Cdrom to W:
so you still have X: Y: and Z: ?

jaclaz
Randy Rhoads
QUOTE
  Maybe stupid comment, but wouldn't it be easier to set Cdrom to W:
so you still have X: Y: and Z: ?


X,Y, and Z for what? 30+ slave drives? laugh.gif

jk..

Just edit the autoexec.bat to suit your needs.
Jito463
Not to try and drag this conversation out any longer than it needs to, but while a sole DVD±RW drive is a good idea, it also has it's downsides. Number one, if you do a lot of CD burning, that puts extra wear-and-tear on your burner. Better to have a seperate CD-RW drive for that. What happens if one of the lasers fail (CD burning for example), but everything else works? Do you throw away the entire burner and buy a new one or do you add a CD-RW drive in and keep the DVD±RW drive a while longer? Not everything's so simple as you make it. If you don't want to make it designed to support multiple drives, that's your perogative. You made it and chose to post it however, so we also have the perogative of pointing out any potential flaws. Anyway, I've put in my $0.02 worth. I'm done. smile.gif
Randy Rhoads
There were no flaws that i know of unless you tried to boot with a slave drive, which, as i explained, doesnt need to be installed on a PC.

If the drive fails because you use it to much, then you would have to do what everyone else does, buy a new/better one. Theres no use to have a slave drive connected just to collect dust. Better to wear the burner out, while under warranty, with lots of backups made, than keep it 5 years with its only job to be an extra strain on the PSU.

The best plan still remains that if there were flaws using a slave drive then its as simple as booting the cd in a master drive instead. Master drives are found in every PC with a optical drive installed, there has to be, otherwise you wouldnt have a slave drive or have any issues with boot disks.

Whats next?, we stop using our tires because they go flat, or we pile the miles on and buy new ones when they blow out?

My last post on the matter, see above statements for any future slave drive supporters..lol. welcome.gif
Randy Rhoads
QUOTE
does this work with ME and 3.11 too?


Me?, sure i edited them for Me and added them below. The IE.reg and MSbatch file are optional, the rest are required. Be sure to add the format.com if your win9x folder doesnt have one inside there.

If you want to use ither the msbatch or ie.reg then add them both because i added a line in the msbatch to look for the ie.reg, or remove the lines pointing to that if you just want the msbatch.

Using the msbatch will turn System Restore off automatically. You can open that and tweak the names, options, etc. They are also a MSBATCH.XPR which has the same contents of the MSBATCH.inf just renamed.

My original Me OEM cd had both so im not sure if both are required so i opened the MSBATCH.XPR and added in the changes i made to my inf to match and added it as well.


3.1?.. no clue, dont even have it anymore.
harunaksoy
QUOTE (Randy Rhoads @ Sep 17 2004, 12:49 AM)
3.1?.. no clue, dont even have it anymore.

Thanks man, and it does works with 3.11




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.