Copy all WinXp cd to Root
Copy Win98SE Cabs to Win98SE folder under root
I created following dir structure
CD-ROOT : WinXP CD Files
----DOCS
----SUPPORT
----i386
----VALUEADD
----<Other WinXP files>
----Win98SE (Folder having CABs)
----Extra Software Folder
You can always add extra OS as long as your CD space permits (Upto 800MB today).
Next thing to do is create a bootable floppy disk from Win98SE Control Panel>>Add Remove Programs.
Search for SMARTDRV.EXE and CHOICE.COM in Windows 98 system and copy those files to your bootable floppy.
Now edit config.sys so that following lines are there
--------------------------- SAMPLE CONFIG.SYS -------------------------------------------------
[menu]
menuitem=CD, Start computer with CD-ROM support.
menuitem=NOCD, Start computer without CD-ROM support.
submenu=OPERATING,Install Operating System.
menuitem=HELP,Help.
menudefault=CD,30
menucolor=3,0
[CD]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:mscd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /D:mscd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:mscd001
[NOCD]
device=himem.sys /testmem:off
[COMMON]
files=150
buffers=35,0
DOS=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 2048
LASTDRIVE=Z
[OPERATING]
submenu=WIN98SE,Install Microsoft Windows 98 SE.
submenu=WINXP,Install Microsoft Windows XP ( Professional Edition. )
[WIN98SE]
menuitem=WIN98SE_AUTO,Install Win98SE with answer file
menuitem=WIN98SE_NORMAL, Install Win98SE with normal procedure.
[WINXP]
menuitem=WINXP_AUTO,Install Windows XP with answer file
menuitem=WINXP_NORMAL, Install Windows XP with normal procedure.
------------------------------ END OF FILE -----------------------------------------
Next step is to edit autoexec.bat
------------------------------- SAMPLE AUTOEXEC.BAT ---------------------------
@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%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
IF "%config%"=="WIN98SE_AUTO" GOTO WIN98SE_AUTO
IF "%config%"=="WIN98SE_NORMAL" GOTO WIN98SE_NORMAL
IF "%config%"=="WINXP_AUTO" GOTO WINXP_AUTO
IF "%config%"=="WINXP_NORMAL" GOTO WINXP_NORMAL
:WIN98SE_AUTO
cls
echo.Windows 98 SE AUTO Install.
echo ((((( -- NOTE -- )))))
echo.
echo Note that in auto installtion everything takes its default
echo values, even you cannot change the drive to install windows to.
echo This is called unattended mode of windows installation.
echo .
echo If you have any previous Operating System
echo installed, please select NORMAL installation. Once selected,
echo AUTO installation does not give any chance to stop the
echo process and it is recommended only for
echo * Clean installation on blank Hard Disk.
echo * Re-installing Windows 98 SE for error recovery.
echo.
echo Also it is assumed that Hard disk is properly partitioned,
echo if not then select CANCEL, and use fdisk and format to partition
echo the disk.
echo.
echo --- ASHISH PATIL ---
[email protected]echo.
pause
echo [1] Continue AUTO Installation
echo [2] Start NORMAL Installation
echo [3] CANCEL Installation
echo.
choice /c:123 /s /t:3,30 Choose an option
if errorlevel == 3 goto CANCEL
if errorlevel == 2 goto WIN98SE_NORMAL
@rem AUTO install command
smartdrv.exe
%cdrom%:
cd win98se
setup.exe -msbatch.inf
cd ..
goto END
:WIN98SE_NORMAL
smartdrv.exe
%cdrom%:
edit win98se\setup.txt
echo Please note down following CD-Key. You will need it in the install process.
type cd_key.98
pause
cd win98se
setup.exe -empty.inf
cd ..
goto END
:WINXP_AUTO
cls
echo.Windows XP Professional Edition AUTO Install.
echo ((((( -- NOTE -- )))))
echo.
echo Note that in auto installtion everything takes its default
echo values, even you cannot change the drive to install windows to.
echo This is called unattended mode of windows installation.
echo .
echo If you have any previous Operating System
echo installed, please select NORMAL installation. Once selected,
echo AUTO installation does not give any chance to stop the
echo process and it is recommended only for
echo * Clean installation on blank Hard Disk.
echo * Re-installing Windows XP for error recovery.
echo.
echo Also it is assumed that Hard disk is properly partitioned,
echo if not then select CANCEL, and use fdisk and format to partition
echo the disk.
echo.
echo --- ASHISH PATIL ---
[email protected]echo.
pause
echo [1] Continue AUTO Installation
echo [2] Start NORMAL Installation
echo [3] CANCEL Installation
echo.
choice /c:123 /s /t:3,30 Choose an option
if errorlevel == 3 goto CANCEL
if errorlevel == 2 goto WINXP_NORMAL
@rem AUTO install command
smartdrv.exe
%cdrom%:
set AnswerFile=.\i386\mssetup.inf
set SetupFiles=.\i386
%SetupFiles%\winnt /s:%SetupFiles% /u:%AnswerFile%
goto END
:WINXP_NORMAL
smartdrv.exe
%cdrom%:
edit docs\read1st.txt
cls
echo Please note down following CD-Key. You will need it in the install process.
type cd_key.xp
pause
set SetupFiles=.\i386
%SetupFiles%\winnt /s:%SetupFiles%
goto END
:CANCEL
echo Install canceled.
goto END
:END
%cdrom%:
echo.
echo Showing directories and files
echo.
dir /w/p
GOTO QUIT
:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo BYE -- ASHISH PATIL --
[email protected]echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
GOTO QUIT
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables
set CDROM=
set LglDrv=
----------------------------------- END OF FILE -------------------------------
Now it is the bootable floppy ready.
Next to do is creating ANSWER FILES for Win98SE and WinXP
The msbatch.inf file is answer file for win98se. Copy and paste following lines to msbatch.inf in Win98SE
------------------------------- msbatch.inf ------------------------------------
; MSBATCH.INF
;
; Copyright © 1995-1998 Microsoft Corporation.
; All rights reserved.
;
[BatchSetup]
Version=3.0 (32-bit)
SaveDate=06/04/02
[Version]
Signature = "$CHICAGO$"
AdvancedINF=2.5
LayoutFile=layout.inf
[Setup]
Express=1
InstallDir="c:\windows"
InstallType=3
ProductKey="xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"
EBD=0
ShowEula=0
ChangeDir=0
OptionalComponents=1
Network=1
System=0
CCP=0
CleanBoot=0
Display=0
DevicePath=1
NoDirWarn=1
TimeZone="India"
Uninstall=5
NoPrompt2Boot=1
[System]
Locale=L0409
SelectedKeyboard=KEYBOARD_00000409
[NameAndOrg]
Name="PC Owner"
Org="ADP Info"
Display=0
[Network]
ComputerName="Bond007"
Workgroup="HOME"
Description="PC OWNER's Computer"
Display=0
PrimaryLogon=VREDIR
Clients=VREDIR
Protocols=MSTCP
Services=VSERVER
Security=SHARE
[MSTCP]
LMHOSTS=1
LMHOSTPath="C:\WINDOWS\lmhosts"
DHCP=1
DNS=0
WINS=D
[VREDIR]
LogonDomain="ADP INFO"
ValidatedLogon=0
[VSERVER]
LMAnnounce=0
MaintainServerList=2
[OptionalComponents]
"Accessibility Options"=0
"Accessibility Tools"=0
"Briefcase"=0
"Calculator"=1
"Desktop Wallpaper"=1
"Document Templates"=1
"Games"=1
"Imaging"=1
"Mouse Pointers"=1
"Paint"=1
"Quick View"=1
"Windows Scripting Host"=1
"WordPad"=1
"Dial-Up Networking"=1
"Dial-Up Server"=1
"Direct Cable Connection"=0
"HyperTerminal"=1
"Microsoft Chat 2.1"=1
"Microsoft NetMeeting"=1
"Phone Dialer"=1
"Virtual Private Networking"=1
"Baseball"=1
"Dangerous Creatures"=1
"Inside your Computer"=1
"Jungle"=1
"Leonardo da Vinci"=1
"More Windows"=1
"Mystery"=1
"Nature"=1
"Science"=1
"Space"=1
"Sports"=1
"The 60's USA"=1
"The Golden Era"=1
"Travel"=1
"Underwater"=1
"Windows 98"=1
"Desktop Themes Support"=1
"Microsoft FrontPage Express"=0
"Microsoft VRML 2.0 Viewer"=0
"Microsoft Wallet"=1
"Personal Web Server"=1
"Real Audio Player 4.0"=0
"Web Publishing Wizard"=1
"Web-Based Enterprise Mgmt"=0
"Microsoft Outlook Express"=1
"Baltic"=0
"Central European"=0
"Cyrillic"=0
"Greek"=0
"Turkish"=0
"Audio Compression"=1
"CD Player"=1
"Macromedia Shockwave Director"=1
"Macromedia Shockwave Flash"=1
"Media Player"=1
"Microsoft NetShow Player 2.0"=1
"Multimedia Sound Schemes"=1
"Sample Sounds"=1
"Sound Recorder"=1
"Video Compression"=1
"Volume Control"=1
"America Online"=0
"AT&T WorldNet Service"=0
"CompuServe"=0
"Prodigy Internet"=0
"The Microsoft Network"=1
"Additional Screen Savers"=1
"Flying Windows"=1
"OpenGL Screen Savers"=1
"Backup"=0
"Character Map"=1
"Clipboard Viewer"=1
"Disk compression tools"=0
"Drive Converter (FAT32)"=1
"Group policies"=1
"Net Watcher"=1
"System Monitor"=1
"System Resource Meter"=1
"Web TV for Windows"=0
"WaveTop Data Broadcasting"=0
[Printers]
[InstallLocationsMRU]
[Install]
AddReg=RunOnce.BatchDelay,Run.Installed.Components,Registry.WinUpdate
[RunOnce.BatchDelay]
HKLM,%KEY_RUNONCE%,BatchRun1,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.MSN.Icon 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun2,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.Welcome 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun3,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.Regwiz 4 %10%\msbatch.inf"
[Run.Installed.Components]
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,,,">Batch 98 - General Settings"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,StubPath,,"%25%\rundll.exe setupx.dll,InstallHinfSection Installed.Components.General 4 %10%\msbatch.inf"
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,,,"ICW"
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,StubPath,,"%24%\progra~1\intern~1\connec~1\icwconn1 /restoredesktop
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,,,">Batch 98 - Advanced Settings"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,StubPath,,"%25%\rundll32.exe advpack.dll,LaunchINFSection %10%\msbatch.inf,Installed.Components.Advanced"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,,,">Batch 98 - Windows Update"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,StubPath,,"wupdmgr.exe -shortcut"
[Installed.Components.General]
AddReg=Browser.Settings, Shell.Prep
BitReg=Shell.Settings
[Installed.Components.Advanced]
DelFiles=Connect.Icon, OLS.Icons, QuickLaunch.Icons
CustomDestination=Custom.Dest
RunPostSetupCommands=DirCleanup
[Custom.Dest]
49070=DesktopLDIDSection,5
49050=QuickLinksLDIDSection,5
[Connect.Icon]
connec~1.lnk
[Delete.MSN.Icon]
DelReg=MSN.Icon
[MSN.Icon]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\{4B876A40-4EE8-11D1-811E-00C04FB98EEC},,,
[DesktopLDIDSection]
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",Desktop,OLSFolder,"%25%\Desktop"
[OLS.Icons]
americ~1.lnk
at&two~1.lnk
compus~1.lnk
prodig~1.lnk
themic~1.lnk
aboutt~1.lnk
abouto~1.txt
services.txt
[DirCleanup]
rundll32.exe advpack.dll,DelNodeRunDLL32 %49070%\%OnlineLong%
[Delete.Welcome]
DelReg=Registry.Welcome
[Registry.Welcome]
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,Welcome,,
[Delete.Regwiz]
AddReg=Registry.Regwiz
[Registry.Regwiz]
HKLM,Software\Microsoft\Windows\CurrentVersion\Welcome\Regwiz,@,1,01,00,00,00
HKLM,Software\Microsoft\Windows\CurrentVersion,RegDone,1,01,00,00,00
[Registry.WinUpdate]
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDevMgrUpdate,0x10001,0
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoWindowsUpdate,0x10001,0
[Browser.Settings]
HKCU,%KEY_IEXPLORERMAIN%,"Start Page",,"
http://about:blank"
HKCU,%KEY_IEXPLORERMAIN%,"First Home Page",,"
http://www.google.com"
HKCU,%KEY_IEXPLORERMAIN%,"Search Page",,"
http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch"
HKLM,%KEY_IEXPLORERMAIN%,"Search Bar",,"
http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch"
HKCU, "SOFTWARE\Microsoft\Internet Explorer\Help_Menu_URLs","Online_Support",,"
http://support.microsoft.com/support"
[Shell.Prep]
HKCU,"Software\Microsoft\Internet Explorer\Desktop\Components\0",Flags,01,00,00,00
HKCU,"Software\Microsoft\Internet Explorer\main",Show_ChannelBand,0,"no"
[Shell.Settings]
HKCU,"Software\Microsoft\Internet Explorer\Desktop\Components\0",Flags,0,20,1
[QuickLinksLDIDSection]
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",AppData,QuickLaunch,"%25%\Application Data"
[QuickLaunch.Icons]
viewch~1.scf
[DestinationDirs]
Connect.Icon=10,alluse~1\desktop
OLS.Icons=49070,Online~1
QuickLaunch.Icons=49050,Micros~1\Intern~1\QuickL~1
[Strings]
KEY_RUNONCE="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
KEY_INSTALLEDCOMPS="SOFTWARE\Microsoft\Active Setup\Installed Components"
OnlineLong="Online Services"
KEY_IEXPLORERMAIN="Software\Microsoft\Internet Explorer\Main"
-------------------------- END OF FILE ----------------------------------------
Enter your Win98SE CD-Key in Product key which i have given as "xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"
If you want to enter product key at time of installation then delete line containing ProductKey in [SETUP] section.
Also create an empty file and save it in Win98SE with name "empty.inf"
For WinXp use following answer file
Save this file in i386 folder
------------------------------ unattend.txt -----------------------------------------
;SetupMgrTag
[Unattended]
UnattendMode=FullUnattended
OemPreinstall=Yes
TargetPath=Windows
OemSkipEula=Yes
[GuiUnattended]
TimeZone=190 ; This is for India Time zone +05.30 GMT
AdminPassword=*
OemSkipWelcome=1
[TapiLocation]
CountryCode=91
Dialing=Tone
AreaCode=91
[RegionalSettings]
OEMSkipRegionalSettings=1
LanguageGroup=1
[Identification]
JoinWorkgroup="ADP Info"
[Networking]
InstallDefaultComponents=No
[UserData]
ComputerName=*
FullName="Ashish Patil"
OrgName="ADP Info"
ProductKey="xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"
[Branding]
IEBrandingFile=untest1.ins
[SetupMgr]
DistFolder=D:\winxp_new
DistShare=win2000dist
ComputerName0=Matrix
ComputerName1=Home
ComputerName2=Server
ComputerName3=PC_1
ComputerName4=PC_2
ComputerName5=PC_3
ComputerName6=PC_4
ComputerName7=PC_5
[OEM_Ads]
Logo="ADP Info2.bmp"
Background=Logo.bmp
[NetAdapters]
Adapter1=params.Adapter1
[params.Adapter1]
INFID=*
[NetClients]
MS_MSClient=params.MS_MSClient
[params.MS_MSClient]
RPCSupportForBanyan=No
[NetServices]
MS_SERVER=params.MS_SERVER
[NetProtocols]
MS_TCPIP=params.MS_TCPIP
[params.MS_TCPIP]
DNS=No
UseDomainNameDevolution=No
EnableLMHosts=Yes
AdapterSections=params.MS_TCPIP.Adapter1
[params.MS_TCPIP.Adapter1]
SpecificTo=Adapter1
DHCP=Yes
WINS=No
NetBIOSOptions=0
DNSServerSearchOrder=192.168.2.1
--------------------------- END OF FILE ----------------------------------------
Enter your CD-Key in [User Data] section as ProductKey
Else delete that line.
Now some final words :
Win XP takes some 500MB with all languages.
Win98SE will take 121MB,
So u have nearly 80MB Extra
Best software to be on CD are
-- Internet Explorer 6
-- DirectX9
-- Windows Media Player 9 for Win9x
-- Windows Media Player 9 for WinXP
-- Your Display Card/Sound Card/Modem/Motherboard/LAN Card drivers.
-- Winamp 2.91 (It shows video too)
Put whatever you like.
Use bootable floppy and create the CD using Nero or any other software which supports bootable CD creation.
Best of luck.
In case you have any problem please fill free to mail me at
[email protected]