I'll try to help you to include Win98 to your DVD, please feel free to ask any question if there's something not clearly specified.
1) Create a Windows 98 or Windows ME boot disk. You can do it from within your win98 OS, or you can get an image file from here.
2) Create a Win98 folder within your setup folder, your folder structure should look like this:
C:\DVD C:\DVD\SETUP C:\DVD\SETUP\Win983) copy the content of your Win98 CD to the C:\DVD\SETUP\Win98 folder (you may remove the "Extras" and "Support" folders.
4) If you have a Win98 boot disk image file (.ima or.img file), skip this step. If not, we assume you've created your Win98 startup diskette.
- Please download winimage (shareware). You can download it from here.
- Install it.
- Insert your win98 startup diskette on your floppy drive
- Open Winimage
- Click on Disk\Read Disk (or just press Ctrl+R)
- Click on File\Save As. Name it Win98.ima (be sure to select "Image file [*.IMA] from the 'Save as' dropdown list.
- Voilá! you have your Win98 Boot Image!
5) Copy Win98.ima to a folder of your choice, I personally prefer C:\DVD\Setup\BootSect, but it's up to you, just be sure it's not in the root folder of your project. Now here's the tricky part:
* Open Win98.ima file with winimage.
* Drag and drop Autoexec.bat file to your desktop. Don't close WinImage!!
* Right click Autoexec.bat file (in your desktop), and select Edit.
* find the following line (or the most similar)
path=%RAMD%:\;a:\;%path%;%CDROM%:\* modify it to include your Win98 source in the path variable:
path=%RAMD%:\;a:\;%path%;%CDROM%:\;%CDROM%:\SETUP\Win98\* Below that line type: Setup.exe, your autoexec.bat now should look like this (among other lines of code):
echo Loading... echo. path=%RAMD%:\;a:\;%CDROM%:\SETUP\Win98\ Setup.exe echo. GOTO QUIT* Save your autoexec.bat file
* Drag it to your WinImage open window, click yes when prompted if you want to overwrite it.
* Save your Win98.ima file and close winimage.
6) Now goto C:\DVD\BOOT and open CDShell.ini (we'll be using André Guimarães Casal's file for this example) Add the following line just below the XP Professional one: print "2) Windows 98 \n". Part of your cdshell.ini should now look like this:
print c "\n\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ<\c0B$time $date\cXX>ÄÄ \n\n" print c "\cXXMicrosoft Windows XP Professional \n\n" print l "\cXXPress \c0BF1 \cXXfor Help"; print r "\c0Bwww.globalgrooves.pt.vu \n" print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n" print "1) Windows XP Professional \n" print "2) Windows 98 \n" print "\n" print "X) More Options... \n\n"Now go to the getkey part and add: "if $lastKey == key; THEN DISKEMU /Setup/BootSect/Win98.IMA" (without the quotes), be sure to point where your .IMA file resides. Now it should look like this:
MainKey: getkey 20 boot 0x80 if $lastKey == key; then goto XP_Pro if $lastKey == key; THEN DISKEMU /Setup/BootSect/Win98.IMA if $lastKey == key[q]; then endSave changes to your cdshell.ini file.
Now if you type number 2 key in the cdshell boot menu, cdshell will load win98.ima boot disk, which will run the autoexec.bat file, who is responsible for calling setup.exe from the C:\DVD\SETUP\Win98 folder.
Well, that's it, that should do the trick!
Of course if you want your win98 setup to be unettended you'll have to deal with the msbatch.inf file. But that would take another tutorial beyond the scope this topic
Again: fell free to ask!
Edited by chon_, 15 September 2006 - 01:04 PM.