Help - Search - Members - Calendar
Full Version: 98 unattended install
MSFN Forums > Microsoft Software Products - Discussion & Support > Windows 95/98/98SE/ME

   
Google Internet Forums Unattended CD/DVD Guide
mikenj
hi,
looks like a great forum, maybe someone can help me, im a student ,only 7 weeks into school, and im tryin to get the unattended install right for win98,
i go through the steps and creat my msbatch.inf file, but , sadly, i still get some prompts, i know the scandisk /si switch, but i think im missing some, im not using the cd, i read this might make me have edit the batch file , anyone know what i need to add to msbatch.inf to run a true unattended install , thank you in advance,
mike
jack99
tongue.gif [CODE];MSBATCH.INF
;
;Copyright © 1995-1998 Microsoft Corporation.
;All rights reserved.
;

[BatchSetup]
Version=3.0 (32-bit)
SaveDate=03/13/98

[Version]
Signature = "$CHICAGO$"

[Setup]
Express=1 ; Allows user input.
InstallDir="C:\Windows"
; Windows 98 installation directory
InstallType=3 ; Custom installation. Refer to the Install Type
; parameter in the [Setup]section earlier in this
; chapter for other installation types.
EBD=0 ; Do no create a Windows 98 Startup disk.
ShowEula=0 ; Automatically agree to the terms specified in the
; End User License Agreement and do not display it.
ChangeDir=0 ; Do not change the installation directory
; from the default (C:\Windows is the default
; directory for new installations).
OptionalComponents=1
; Forces Setup to display the Select Components
; dialog box during a batch installation.
; You must set InstallType=3 with this setting.
CleanBoot=0 ; Do not force a new installation. Perform an upgrade
; instead. For more information on running Setup
; on a new computer or a computer with a reformatted
; hard disk, see "Running Setup on a New Installation"
; in Chapter 2 "Setting Up Windows 98."
DevicePath=0
NoDirWarn=1 ; Install Windows 98 over an existing Windows directory
; without warning the user.
TimeZone="Pacific"
Uninstall=0
NoPrompt2Boot=1

[System]
Locale=L0409
SelectedKeyboard=KEYBOARD_00000409

[NameAndOrg]
Name="Pilar"
Org="Widgets"
Display=0

[Network]
ComputerName="Computer1"
Workgroup="Marketing"
Description="Test Computer (Compaq)"
Display=0
PrimaryLogon=VREDIR
; Specifies the primary network logon client.
Clients=VREDIR, NWREDIR
Protocols=NETBEUI, NWLINK, MSTCP
Services=VSERVER, NWREDIR4
Security=DOMAIN
PassThroughAgent="Domain_Name"

[NWLINK]
Frame_Type=4
NetBIOS=0

[MSTCP]
LMHOSTS=1
LMHOSTPath="C:\WINDOWS\Lmhosts"
;Specifies the path for the LMHOSTS file.
DHCP=1
DNS=0
WINS=D

[NWREDIR]
FirstNetDrive=G:
PreferredServer=Preferred_Server_Name
ProcessLoginScript=1

[VREDIR]
LogonDomain="Logon_Domain_Name"
ValidatedLogon=1

[VSERVER]
LMAnnounce=0
MaintainServerList=2

[NWRedir4]
PreferredTree=Preferred_Tree_Name
NameContext=Name_Context-Name

[OptionalComponents] ; 0 means do not install the component.
; 1 means install it. The default is 0
"Accessibility Options"=0
"Accessibility Tools"=0
"Briefcase"=1
"Calculator"=1
"Desktop Wallpaper"=1
"Document Templates"=1
"Games"=1
"Imaging"=1
"Mouse Pointers"=1
"Paint"=1
"Quick View"=1
"Windows Script Host"=1
"WordPad"=1
"Dial-Up Networking"=1
"Dial-Up Server"=1
"Direct Cable Connection"=1
"HyperTerminal"=0
"Microsoft Chat 2.1"=1
"Microsoft NetMeeting"=1
"Phone Dialer"=0
"Virtual Private Networking"=1
"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 95"=0
"Desktop Themes Support"=0
"Microsoft FrontPage Express"=1
"Microsoft VRML 2.0 Viewer"=0
"Microsoft Wallet"=0
"Personal Web Server"=0
"Real Audio Player 4.0"=1
"Web Publishing Wizard"=0
"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"=0
"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)"=0
"Group policies"=1
"Net Watcher"=1
"System Monitor"=1
"System Resource Meter"=1
"WinPopup"=1
"Web TV for Windows"=0

[Printers]
HP LaserJet 5Si=HP LaserJet 5Si,\\Print_Server_Name\Share
HP LaserJet 4Si=HP LaserJet 4Si,LPT1

[InstallLocationsMRU] ; Path for Windows 98 installation point.
"\\Server_Name\Share"

[Install]
AddReg=RunOnce.BatchDelay, Run.Installed.Components, Skip.PCMCIA.Wizard, User.Profiles.Reg, User.Box.One, User.Box.Two, RegistrySettings

[RunOnce.BatchDelay] ; Adds registry entries to the RunOnce key.
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.OLS.Icons 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun3,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.Welcome 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun4,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.Regwiz 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun5,,"%25%\rundll.exe setupx.dll,InstallHinfSection WinUpdate 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,WUShortcut,,"wupdmgr.exe -shortcut"

[Delete.MSN.Icon] ; Deletes the MSN icon from the Desktop.
DelReg=MSN.Icon

[MSN.Icon] ; Deletes the MSN icon from the Desktop.
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\{4B876A40-4EE8-11D1-811E-00C04FB98EEC},,,

[Delete.OLS.Icons] ; Deletes links from OLS desktop folder.
DelFiles=OLS.Icons
UpdateInis=OLS.Folder

[OLS.Icons] ; Lists the OLS links to be deleted.
aol.lnk
at&two~1.lnk
compus~1.lnk
prodig~1.lnk
themic~1.lnk
aboutt~1.txt

[OLS.Folder] ; Deletes the OLS folder after it has been emptied.
wininit.ini,DIRNUL,,"%25%\Desktop\Online~1=1"

[Delete.Welcome] ; Disables the Welcome to Windows 98 screen
; at startup.
DelReg=Registry.Welcome

[Registry.Welcome] ; Disables the Welcome to Windows 98 screen
; at startup.
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,Welcome,,

[Delete.Regwiz] ; Disables the Windows 98 Registration Wizard
; at startup.
AddReg=Registry.Regwiz

[Registry.Regwiz] ; Disables the Windows 98 Registration Wizard
; at startup.
HKLM,Software\Microsoft\Windows\CurrentVersion\Welcome\Regwiz,@,1,01,00,00,00
HKLM,Software\Microsoft\Windows\CurrentVersion,RegDone,1,01,00,00,00

[WinUpdate] ; Disables Start --> Settings --> Windows Update.
AddReg=Registry.WinUpdate

[Registry.WinUpdate] ; Disables Start --> Settings --> Windows Update.
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDevMgrUpdate,0x10001,1
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoWindowsUpdate,0x10001,1

[Run.Installed.Components]
; Sets up the Batch Run for msbatch.inf and
; calls the Installed.Components section.
HKLM,%KEY_INSTALLEDCOMPS%,,,">Batch98"
HKLM,%KEY_INSTALLEDCOMPS%,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%,Version,,"1,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%,StubPath,,"%25%\rundll.exe setupx.dll,InstallHinfSection Installed.Components 4 %10%\msbatch.inf"

[Installed.Components]
; Prepares additional sections to process.
AddReg=Browser.Settings, Proxy.Settings, Shell.Prep
BitReg=Shell.Settings
DelFiles=QuickLaunch.Icons

[Browser.Settings] ; Specifies Home, First, Search, Support Pages
; and Support Bar settings.
HKCU,%KEY_IEXPLORERMAIN%,"Start Page",,"http://YourLocalHomePage"
HKCU,%KEY_IEXPLORERMAIN%,"First Home Page",,"http://www.microsoft.com/windows/default.asp"
HKCU,%KEY_IEXPLORERMAIN%,"Search Page",,"http://home.microsoft.com/access/allinone.asp"
HKLM,%KEY_IEXPLORERMAIN%,"Search Bar","http://home.microsoft.com/access/allinone.asp"
HKCU, "SOFTWARE\Microsoft\Internet Explorer\Help_Menu_URLs",Online_Support,,"http://support.microsoft.com/support"""

[Proxy.Settings] ; Preconfigure proxy gateway settings for IE browser
HKCU,%KEY_INTERNETSETTINGS%,ProxyEnable,1,01,00,00,00
HKCU,%KEY_INTERNETSETTINGS%,ProxyOverride,,";<local>"
HKCU,%KEY_INTERNETSETTINGS%,ProxyServer,,"YourProxyServer:80"

[Shell.Prep]
HKCU,"Software\Microsoft\Internet Explorer\Desktop\Components\0",Flags,01,00,00,00

[Shell.Settings]
HKCU,"Software\Microsoft\Internet Explorer\Desktop\Components\0",Flags,0,20,1

[QuickLaunch.Icons] ; List of icons to be removed from Quick Launch
; on the Taskbar.
launch~1.lnk
viewch~1.scf

[Skip.PCMCIA.Wizard] ; Skips checking for real-mode PCMCIA drivers.
HKLM,System\CurrentControlSet\Services\Class\PCMCIA,SkipWizardForBatchSetup,,1

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

[User.Box.One] ; Includes Desktop icons and Network Neighborhood
; in user profile.
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] ; Includes Start Menu and Program Groups
; in User Profile.
[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"

[RegistrySettings] ; The registry files must be located in the
; Windows 98 installation directory.
HKLM,%KEY_RUNONCE%,BatchReg1,
,"%25%\regedit.exe /s "%1%\FileName.reg""
HKLM,%KEY_RUNONCE%,BatchReg2,
,"%25%\regedit.exe /s "%1%\FileName.reg""
HKLM,%KEY_RUNONCE%,BatchReg3,
,"%25%\regedit.exe /s "%1%\FileName.reg""
HKLM,%KEY_RUNONCE%,BatchReg4,
,"\\ServerName\Share\Setup.exe"

[DestinationDirs]
OLS.Icons=25,Desktop\Online~1
QuickLaunch.Icons=25,%QuickLaunch_Path%

[Strings]
KEY_RUNONCE="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
KEY_INSTALLEDCOMPS="SOFTWARE\Microsoft\Active Setup\Installed Components\BatchRun"
KEY_IEXPLORERMAIN="Software\Microsoft\Internet Explorer\Main"
KEY_INTERNETSETTINGS="Software\Microsoft\Windows\CurrentVersion\Internet Settings"
QuickLaunch_Path="Applic~1\Micros~1\Intern~1\QuickL~1"
CurrentVersion="Software\Microsoft\Windows\CurrentVersion"
PrimaryRec="ProfileReconciliation"
SecondaryRec="SecondaryProfileReconciliation"
mikenj
wow
that was fast omg, thank you
smile.gif hmm looks like i have somehting to do for next couple hours
thank you again for the help, hope some day i may be able to help someone,
(give or take another 10 months till i finish chubb haha)
chankya
Dear jack99

Where can i get more about msbatch.inf pl's post web link from where u found it.
chankya
Dear jack99

Where can i get more about msbatch.inf pl's post web link from where u found it.
aspenjim
**** that's alot of information. I have a couple of unattended files for both win98 and me, that I got working pretty good. I also got it to install IE6 unattended. My files are on my server at work. They may be a little easier to understand. I can give you this little tidbit... you need the retail versions to make it completely unattended, else it stops at the EULA and makes you click okay three times through the EULA, cdkey and name/organization. I also made a very cool win98/winme AIO that would boot and let you choose which OS and then from there on out it was completely unattended until IE6 was installed. I haven't worked with it for a few years though. I'll post mine tommorrow from work. 98 is a kinda dead OS now, however.

aj
mikenj
hi
thank you again for the awesome batch file, i spent many hours understanding it smile.gif
im tryin to link 3 unattended installs together, win98,win2000,winxp . i keep gettin stuck at the video screen, i cant figure out how to not be prompted , have the link figured out by having the registry point to the next batch ,in this case, win98 then win2000 , but cant seem to stop the video from prompting me, if anyone knows which line i need to edit, maybe im just not reading it right,, thank you in advance , and this is best forum by far ive seen, i still have 10 months of school left, hope yas dont get sick of me by then smile.gif
mikenj
hi jack99
just wanted to say that an awesome sig lol,
thanx again for the msbatch.inf file
mike nj
jaclaz
@mikenj
Welcome on the board.

Read these also:
http://www.msfn.org/board/index.php?showtopic=35349
http://www.msfn.org/board/index.php?showtopic=40303

(a search on the board very often gives results)

jaclaz
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.