this is mine from a Win98 install (the install routines are very similar):
; MSBATCH.INF
; Windows 98 Seven Years Later Edition
; By soporific ~ October 2005
; Ver 3.5.01
[BatchSetup]
Version=3.0 (32-bit)
SaveDate=06/14/05
[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=0
NoDirWarn=1
TimeZone="E. Australia"
Uninstall=0
NoPrompt2Boot=1
[System]
Locale=L0C09
SelectedKeyboard=KEYBOARD_00000409
DisplChar=16,800,600
[NameAndOrg]
Name="User"
Org="none"
Display=0
[Network]
ComputerName="Win98 User"
Workgroup="MSHOME"
Description="Windows 98 seven years later ed."
Display=0
PrimaryLogon=Windows
Clients=VREDIR
Protocols=MSTCP
Services=VSERVER
Security=SHARE
[MSTCP]
LMHOSTS=0
DHCP=1
DNS=0
WINS=D
[VREDIR]
LogonDomain="Work"
ValidatedLogon=0
[VSERVER]
LMAnnounce=0
MaintainServerList=2
[OptionalComponents]
"Accessibility Options"=0
"Briefcase"=0
<<<< snip -- not important >>>>
"Web TV for Windows"=0
[Printers]
[InstallLocationsMRU]
"C:\Win98\"
"D:\win98\"
"E:\win98\"
"F:\win98\"
"G:\win98\"
[Install]
AddReg=OPKInstall,RunOnce.BatchDelay,Run.Installed.Components,Skip.PCMCIA.Wizard,Registry.WinUpdate,
ExtraApps,IE6
[RunOnce.BatchDelay]
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_INSTCOMP%\>BatchSetupx,,,">Batch 98 - General Settings"
HKLM,%KEY_INSTCOMP%\>BatchSetupx,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTCOMP%\>BatchSetupx,Version,,"3,0,0,0"
HKLM,%KEY_INSTCOMP%\>BatchSetupx,StubPath,,"%25%\rundll.exe setupx.dll,InstallHinfSection Installed.Components.General 4 %10%\msbatch.inf"
HKLM,%KEY_INSTCOMP%\BatchSetupx,,,"ICW"
HKLM,%KEY_INSTCOMP%\BatchSetupx,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTCOMP%\BatchSetupx,Version,,"3,0,0,0"
HKLM,%KEY_INSTCOMP%\BatchSetupx,StubPath,,"%24%\progra~1\intern~1\connec~1\icwconn1 /restoredesktop
HKLM,%KEY_INSTCOMP%\>BatchAdvpack,,,">Batch 98 - Advanced Settings"
HKLM,%KEY_INSTCOMP%\>BatchAdvpack,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTCOMP%\>BatchAdvpack,Version,,"3,0,0,0"
HKLM,%KEY_INSTCOMP%\>BatchAdvpack,StubPath,,"%25%\rundll32.exe advpack.dll,LaunchINFSection %10%\msbatch.inf,Installed.Components.Advanced"
HKLM,%KEY_INSTCOMP%\>Batchwu,,,">Batch 98 - Windows Update"
HKLM,%KEY_INSTCOMP%\>Batchwu,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTCOMP%\>Batchwu,Version,,"3,0,0,0"
HKLM,%KEY_INSTCOMP%\>Batchwu,StubPath,,"wupdmgr.exe -shortcut"
[Installed.Components.General]
AddReg=Browser.Settings, Shell.Prep
BitReg=Shell.Settings
[DelOEdesktop]
setup.ini, progman.groups,, "groupOE=..\..\desktop"
setup.ini, groupOE,, """Outlook Express"""
[Installed.Components.Advanced]
DelFiles=OLS.Icons, QuickLaunch.Icons
CustomDestination=Custom.Dest
RunPostSetupCommands=DirCleanup
[Custom.Dest]
49070=DesktopLDIDSection,5
49050=QuickLinksLDIDSection,5
[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_IE_MAIN%,"Start Page",,"about:blank"
HKCU,%KEY_IE_MAIN%,"First Home Page",,"about:blank"
HKCU,%KEY_IE_MAIN%,"Search Page",,"http://www.google.com.au/ie/"
HKCU,%KEY_IE_MAIN%,"Search Bar",,"http://www.google.com.au/ie/"
HKCU,%KEY_IE_HELP%,,"Online_Support",,"http://support.microsoft.com/support"
[Shell.Prep]
HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer,ShellState,1,1C,00,00,00,20,08,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,0
A,00,00,00
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
HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer,ShellState,1,40,4
[QuickLinksLDIDSection]
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",AppData,QuickLaunch,"%25%\Application Data"
[QuickLaunch.Icons]
viewch~1.scf
[Skip.PCMCIA.Wizard]
HKLM,System\CurrentControlSet\Services\Class\PCMCIA,SkipWizardForBatchSetup,,1
[DestinationDirs]
OLS.Icons=49070,Online~1
QuickLaunch.Icons=49050,Micros~1\Intern~1\QuickL~1
[Strings]
Key_RUN="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
KEY_RUNONCE="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
KEY_RUNONCESETUP="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\Setup"
KEY_INSTCOMP="SOFTWARE\Microsoft\Active Setup\Installed Components"
KEY_IE_MAIN="SOFTWARE\Microsoft\Internet Explorer\Main"
KEY_IE_HELP="SOFTWARE\Microsoft\Internet Explorer\Help_Menu_URLs"
KEY_CURR_VER="SOFTWARE\Microsoft\Windows\CurrentVersion"
KEY_EXPLORE="SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer"
OnlineLong="Online Services"
[OPKInstall]
; This gets you past the EULA stage
HKLM,%KEY_CURR_VER%,"ProductId",,"16305-OEM-0088921-12491"
HKLM,%KEY_CURR_VER%,"ProductKey",,"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
HKLM,%KEY_CURR_VER%,"RegisteredOwner",,"User"
HKLM,%KEY_CURR_VER%,"RegisteredOrganization",,"none"
; This gets you past the password stage
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Network\Real Mode Net","autologon",1,00000000
[ExtraApps]
HKLM,%KEY_RUNONCESETUP%,"Applications from this millenium",,"C:\win98\@Launch.bat @DoMenu.bat"
[IE6]
; Installs IE 6 sp1 at the end of saving config settings
HKLM,%KEY_RUNONCE%,"Internet Explorer 6.0 SP1",,"C:\Win98\@Launch.bat @DoMenu.bat"
; Always make sure your .inf, .bat and .reg files have at least one carriage return
; at the end or the file may just not work at all. For Reg files, none of it will work.
; No wonder NASA space missions fail with just one wrong hyphen.
This post has been edited by soporific: 21 August 2006 - 10:00 PM