msbatch.inf

Unattended and Customized Installation of Windows 98


Sample Answer file for unattended Windows 98 setup. This text files provides answers to questions normally asked during setup, such as where to install, which options to include (or not), basic network configuration, drivers to be installed, etc.

The standard name of the answer file is msbatch.inf, and it is typically located in the Windows Setup Directory. If Setup detects an msbatch.inf, it will use it to execute with the given parameter values. Alternatively, you can call setup with command line options to use an answer file. In addition, other parameters can be used to skip scandisk a.o. Use Setup /? to see setup command line syntax.


		SETUP [batch] [/ie] [/im] [/is] [/iv] [/nr] [/T:tempdir]		

			batch	: path to answer file
	
			ie	: skip creation of 'Windows Boot Disks'
			im	: skip memory check
			is	: skip ScanDisk 
			iv	: don't show billboards
			nr	: skip registry check
			/T:tempdir 	: tempdir = directory for temporary setup files. Directory needs to exist, and 
					  any file therein will be deleted
		
		e.g. 
	
		E:\setup a:\upubsetup.inf  /ie /is /im 

		

Windows 98 boot disk voor unattended setup

To install Windows 98 unattended, we will boot from a Windows 98 boot disk, then start a batch file (Win98Setup.bat) that will execute the following tasks :


	REM UNATTENDED WINDOWS 98 SETUP
	REM Koen Noens, June 2005

	REM assuming CD drive letter = D:

	:copy setup CD to HDD
	XCOPY D:\ C:\W98\ /S

	:copy additional utilities and updates HDD + postinstall batch
	XCOPY D:\W98Updates\ C:\W98Updates\ /S

	:: Windows 98 custom unattended setup 
	CD C:\w98
	setup.exe msbatch.inf  /is /ie

	

answer file

Sample answer file for Windows 98 unattended setup, with

Please refer to Windows 98 Unattended Setup for a discussion on how to plan and design an Windows 98 Unattended Setup


; MSBATCH.INF
;
; Copyright (c) 1995-1998 Microsoft Corporation.
; All rights reserved.
;

[BatchSetup]
Version=3.0 (32-bit)
SaveDate=01/01/05

[Version]
Signature = "$CHICAGO$"
AdvancedINF=2.5
LayoutFile=layout.inf

[Setup]
Express=1
InstallDir="d:\win98"
InstallType=3
ProductKey="j2gkm-fhmc4-dyktd-bvdtw-bf676"
EBD=0
ShowEula=0
ChangeDir=0
OptionalComponents=1
Network=1
System=0
CCP=0
CleanBoot=0
Display=0
DevicePath=0
NoDirWarn=1
TimeZone="Romance"
Uninstall=0
NoPrompt2Boot=1

[System]
Locale=L0813
SelectedKeyboard=KEYBOARD_0000080C

[NameAndOrg]
Name="usr1"
Org="The Silly Software Company"
Display=0

[Network]
ComputerName="PC03_w98"
Workgroup="kicks"
Description="testsystem with Windows 98"
Display=0
PrimaryLogon=VREDIR
Clients=VREDIR
Protocols=MSTCP
Security=SHARE

[MSTCP]
LMHOSTS=1
LMHOSTPath="D:\WIN98\LMHOSTS"
DHCP=0
DNS=1
WINS=Y
DNSServers=192.168.1.254, 212.35.2.2, 195.130.131.2
Hostname=pc01
Gateways=192.168.1.254
IPAddress=192.168.1.44
IPMask=255.255.255.0
WINSServer1=192.168.1.45

[VREDIR]
LogonDomain="KICKS"
ValidatedLogon=1

[OptionalComponents]
"Accessibility Options"=0
"Accessibility Tools"=0
"Briefcase"=0
"Calculator"=1
"Desktop Wallpaper"=0
"Document Templates"=0
"Games"=0
"Imaging"=1
"Mouse Pointers"=0
"Paint"=1
"Quick View"=0
"Windows Scripting Host"=1
"WordPad"=1
"Dial-Up Networking"=0
"Dial-Up Server"=0
"Direct Cable Connection"=0
"HyperTerminal"=1
"Microsoft Chat 2.1"=0
"Microsoft NetMeeting"=0
"Phone Dialer"=0
"Virtual Private Networking"=0
"Baseball"=0
"Dangerous Creatures"=0
"Inside your Computer"=0
"Jungle"=0
"Leonardo da Vinci"=0
"More Windows"=0
"Mystery"=0
"Nature"=0
"Science"=0
"Space"=0
"Sports"=0
"The 60's USA"=0
"The Golden Era"=0
"Travel"=0
"Underwater"=0
"Windows 98"=0
"Desktop Themes Support"=0
"Microsoft FrontPage Express"=0
"Microsoft VRML 2.0 Viewer"=0
"Microsoft Wallet"=0
"Personal Web Server"=0
"Real Audio Player 4.0"=0
"Web Publishing Wizard"=0
"Web-Based Enterprise Mgmt"=0
"Microsoft Outlook Express"=0
"Baltic"=0
"Central European"=0
"Cyrillic"=0
"Greek"=0
"Turkish"=0
"Audio Compression"=1
"CD Player"=1
"Macromedia Shockwave Director"=0
"Macromedia Shockwave Flash"=0
"Media Player"=0
"Microsoft NetShow Player 2.0"=0
"Multimedia Sound Schemes"=0
"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"=0
"Additional Screen Savers"=0
"Flying Windows"=1
"OpenGL Screen Savers"=1
"Backup"=0
"Character Map"=0
"Clipboard Viewer"=0
"Disk compression tools"=0
"Drive Converter (FAT32)"=0
"Group policies"=0
"Net Watcher"=0
"System Monitor"=0
"System Resource Meter"=0
"Web TV for Windows"=0
"WaveTop Data Broadcasting"=0

[Printers]
Canon BJC-2100=Canon BJC-2100,\\192.168.1.23\CANON
;fake printer=PaperWaster B-156 Plus,\\192.168.1.23\FakeSharedPrinter

[InstallLocationsMRU]
"J:\VGA\SIS650_740\Win98&ME\Win98&ME\"
"A:\"
"g:\win98\"
"D:\WIN98\DEVICES"

[Install]
;see ZAK Admin Guide
AddReg=RunOnce.BatchDelay,Run.Installed.Components,Skip.PCMCIA.Wizard,User.Profiles.Reg,User.Box.One,User.Box.Two,Registry.WinUpdate,VIA4in1

[VIA4in1]
HKLM,%KEY_RUNONCE%,VIAdrivers,,"VIAHyperion4in1453v.exe"		;attempt to run VIA 4in1 Driver setup



[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=Mydocs.Icon, Browser.Settings, Security.Settings, Shell.Prep
BitReg=Shell.Settings
UpdateInis=DelOEQuick.Links

[DelOEQuick.Links]
setup.ini, progman.groups,, "groupQL=..\..\Applic~1\Micros~1\Intern~1\Quickl~1"
setup.ini, groupQL,, """Launch Outlook Express"""                ;deletes link

[DelOEdesktop]
setup.ini, progman.groups,, "groupOE=..\..\desktop"
setup.ini, groupOE,, """Outlook Express"""                ;deletes icon

[Installed.Components.Advanced]
DelFiles=OLS.Icons, QuickLaunch.Icons
CustomDestination=Custom.Dest
RunPostSetupCommands=DirCleanup

[Custom.Dest]
49070=DesktopLDIDSection,5
49050=QuickLinksLDIDSection,5

[Mydocs.Icon]
HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\Documents,HideMyDocsFolder,,

[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://www.google.com/"
HKCU,%KEY_IEXPLORERMAIN%,"First Home Page",,"http://home.microsoft.com/runonce.asp"
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"

[Security.Settings]
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1",CurrentLevel,1,00,00,01,00

[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
HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState,Settings,1,20,4

[QuickLinksLDIDSection]
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",AppData,QuickLaunch,"%25%\Application Data"

[QuickLaunch.Icons]
showde~1.scf
viewch~1.scf

[Skip.PCMCIA.Wizard]
HKLM,System\CurrentControlSet\Services\Class\PCMCIA,SkipWizardForBatchSetup,,1

[User.Profiles.Reg]
HKLM,"Network\Logon",UserProfiles,1,1

[User.Box.One]
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",CentralFile,,"Desktop"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",DefaultDir,,"%10%\Desktop"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",LocalFile,,"Desktop"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",RegValue,,"Desktop"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",CentralFile,,"NetHood"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",DefaultDir,,"%10%\NetHood"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",LocalFile,,"NetHood"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",RegValue,,"NetHood"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",CentralFile,,"Recent"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",DefaultDir,,"%10%\Recent"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",LocalFile,,"Recent"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",RegValue,,"Recent"

[User.Box.Two]
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",CentralFile,,"Start Menu"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",DefaultDir,,"%10%\Start Menu"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",LocalFile,,"Start Menu"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",RegValue,,"Start Menu"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",CentralFile,,"Programs"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",DefaultDir,,"%10%\Start Menu\Programs"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",LocalFile,,"Start Menu\Programs"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",ParentKey,,"Start Menu"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",RegValue,,"Programs"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",CentralFile,,"Startup"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",DefaultDir,,"%10%\Start Menu\Programs\Startup"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",LocalFile,,"Start Menu\Programs\Startup"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",ParentKey,,"Start Menu"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",RegValue,,"Startup"

[DestinationDirs]
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"
CurrentVersion="Software\Microsoft\Windows\CurrentVersion"
PrimaryRec="ProfileReconciliation"
SecondaryRec="SecondaryProfileReconciliation"


		

Koen Noens
june 7, 2005