Jump to content

Unattended Windows 98 Install


lhy

Recommended Posts

Ok after searching the forum and on google no one really comfirm they have a working copy of unattended window 98 install (Please do not reply with msg like win98 is old or no one will use win98.. things like that). So with this topic I really want to bring up the discussion again how to make a windows 98 unattended install?

Hier are 3 main point I get stuck off:

1.

I have try the OPKinstall section in the msbatch file without suces.

2.

Does anyone know how to bypass the login screen automaticly after you windows install sucefully?

3.

Is RunOnceEx working with windows 98 or I need to work with batch files?

Link to comment
Share on other sites


And the one posted here:

http://www.msfn.org/board/index.php?showtopic=8497

does not work for you?

Here are the related MS articles:

http://support.microsoft.com/kb/835891/en-gb

http://support.microsoft.com/default.aspx?...kb;EN-US;214714

http://support.microsoft.com/default.aspx?...727&product=w98

The reskit guide:

http://www.microsoft.com/resources/documen...t7/wrkappd.mspx

and the hard to find technet one:

http://www.microsoft.com/technet/archive/w...oy/batch98.mspx

and the whitepaper:

http://support.microsoft.com/?id=169539

And the onecomputerguy one:

http://www.onecomputerguy.com/install/install.htm

I remember to have seen it working, but it has been quite a lot of time, cannot remember or find anything more precise.

Re: your points:

1. can you desctibe it better or post a copy of the .inf file?

2. cannot say, which one, can you post the title of the dialog?

3. no, batch files only

jaclaz

Link to comment
Share on other sites

It's been a while since I messed with unattended win98 and I don't recall how far I got with it before getting distracted by other projects/school. I did manage to use RunonceEx in win98, but it got just a tad complicated. I've got two tests in the next two days so I'll be busy studying, but after that I'll dig through my win98 stuff and see what exactly I did.

As for the login prompt, I don't think I ever got around it. It's probably a simple as a registry entry, but we'll see. If it's possible to run a program at that point it might be possible to create a vbscript that hits the enter key. I'll have to get back to the project some time soon I guess. :)

Link to comment
Share on other sites

first of all thanks for the links. Second thanks for all your reply I'll start to do the research again since the test iso I have tried not working.

[edit]

; MSBATCH.INF

;

; Copyright © 1995-1998 Microsoft Corporation.

; All rights reserved.

;

[batchSetup]Version=3.0 (32-bit)

SaveDate=02-25-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=0

Network=1

System=0

CCP=0

CleanBoot=0

Display=0

DevicePath=0

NoDirWarn=1

TimeZone="W. Europe"

Uninstall=0

NoPrompt2Boot=0

[system]

Locale=L0413

SelectedKeyboard=KEYBOARD_00000409

[NameAndOrg]

Display=0

Name="user"

Org="H-net"

[Network]

Workgroup="Home-network"

Description="Stage PC"

Display=0

PrimaryLogon=Windows

Clients=VREDIR

Protocols=MSTCP

Security=SHARE

[MSTCP]

LMHOSTS=1

LMHOSTPath="C:\WINDOWS\LMHOSTS"

DHCP=1

DNS=1

WINS=D

DNSServers=10.0.1.1

Hostname=stage

Gateways=10.0.1.1

[VREDIR]

LogonDomain="home-network"

ValidatedLogon=0

[OptionalComponents]

"Toegankelijkheidsopties"=1

"Hulpprogramma's"=0

"Werkmap"=0

"Rekenmachine"=1

"Bureaublad-achtergrond"=0

"Documentsjablonen"=1

"Ontspanning"=0

"Imaging"=1

"Muisaanwijzers"=0

"Paint"=1

"Snel weergeven"=0

"Windows Scripting Host"=1

"WordPad"=1

"Adresboek"=1

"ATM-ondersteuning voor inbellen"=0

"Externe toegang"=0

"Externe-toegangsserver"=0

"Directe kabelverbinding"=0

"HyperTerminal"=0

"Microsoft Chat 2.5"=0

"NetMeeting"=1

"Telefoonkiezer"=1

"Virtueel particulier netwerk"=0

"Baseball"=0

"Dangerous Creatures"=0

"In de computer"=0

"Jungle"=0

"Leonardo da Vinci"=0

"Meer Windows"=0

"Mysterie"=0

"Natuur"=0

"Wetenschap"=0

"De ruimte"=0

"Sport"=0

"Jaren zestig"=0

"Industriële vormgeving"=0

"Reizen"=0

"Onderwater"=0

"Windows 98"=0

"Delen van Internet-verbinding"=0

"Microsoft Wallet"=0

"Personal Web Server"=1

"Wizard webpublicaties"=0

"Web-Based Enterprise Mgmt"=0

"Microsoft Outlook Express"=1

"Baltisch"=0

"Centraaleuropees"=0

"Cyrillisch"=0

"Grieks"=0

"Turks"=0

"Audiocompressie"=1

"Cd-speler"=1

"Macromedia Shockwave Director"=1

"Macromedia Shockwave Flash"=1

"Multimediageluidsschema's"=0

"Voorbeeldgeluiden"=0

"Geluidsrecorder"=1

"Videocompressie"=1

"Volumeregeling"=1

"Extra schermbeveiligingen"=0

"Windows-logo's"=1

"OpenGL-schermbeveiligingen"=0

"Reservekopie maken"=0

"Speciale tekens"=0

"Klembord-viewer"=0

"Schijfcompressie-werkset"=1

"Conversieprogramma (FAT32)"=1

"Groepsbeleid"=0

"Netwerkmonitor"=0

"Systeemmonitor"=0

"Systeembronmeter"=0

"WinPopup"=0

[Printers]

[installLocationsMRU]

[install]

AddReg=Run.Installed.Components,Registry.WinUpdate,RegistrySettings,RunOnce.BatchDelay,Skip.PCMCIA.W

izard

AddReg=OPKInstall,.....

CopyFiles=regfile.copy

[OPKInstall]

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductId",,12345-OEM-0071364-21762

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductKey",,"xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"

HKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOwner",,blah

HKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOrganization",,none

[regfile.copy]

setup.reg

logon.reg

[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://www.google.com"

HKCU,%KEY_IEXPLORERMAIN%,"First Home Page",,"http://www.google.com"

HKCU,%KEY_IEXPLORERMAIN%,"Search Page",,"http://home.microsoft.com/search/search.asp"

HKLM,%KEY_IEXPLORERMAIN%,"Search Bar",,"http://home.microsoft.com/search/search.asp"

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

[skip.PCMCIA.Wizard]

HKLM,System\CurrentControlSet\Services\Class\PCMCIA,SkipWizardForBatchSetup,,1

[RegistrySettings]

HKLM,%KEY_RUNONCE%,BatchReg1,,"%25%\regedit.exe /s "%10%\setup.reg""

HKLM,%KEY_RUNONCE%,BatchReg1,,"%25%\regedit.exe /s "%10%\logon.reg""

[DestinationDirs]

Connect.Icon=10,alluse~1\desktop

OLS.Icons=49070,Online~1

QuickLaunch.Icons=49050,Micros~1\Intern~1\QuickL~1

regfile.copy=10

[strings]

KEY_INSTALLEDCOMPS="SOFTWARE\Microsoft\Active Setup\Installed Components"

KEY_RUNONCE="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

OnlineLong="Online Services"

KEY_IEXPLORERMAIN="Software\Microsoft\Internet Explorer\Main"

Link to comment
Share on other sites

According to these:

http://www.msfn.org/board/index.php?showtopic=32586

http://www.msfn.org/board/index.php?showtopic=21230

it should work, even on the OEM version.

You could try with the MSBATCH.INF posted there to see if it makes any difference.

This should be the reply to point 2., I presume:

http://www.msfn.org/board/index.php?showtopic=34083

jaclaz

Link to comment
Share on other sites

well if you check my inf file above then you will see I highlight the part that add registry entries for the key etc.. but still not workin maybe I did something wrong I dunno.

And the second one is for welcome screen.. the code that are posted in that thread I also have it in my inf file. I don't think it is the welcome screen. That welcome screen refers to that annoying thing when you start up windows for the first time...

Link to comment
Share on other sites

Well, the OPKinstall part

[OPKInstall]; The following line: don't detect monitor

HKLM,System\CurrentControlSet\Services\Class\Display\0000\DEFAULT,"DDC",,0

; The following line will allow ACPI on all OEM machines regardless

; of the good BIOS list

; HKLM,Software\Microsoft\Windows\CurrentVersion\Detect,"ACPIOption",,1

; The following line suppresses the interactive setup of Exchange during

; runonce.

HKLM,Software\Microsoft\Exchange\Client\Options,SilentRunning,,"1"

; The following line changes the product type after the first part of

; setup is complete to activate OEM install features.

HKLM,Software\Microsoft\Windows\CurrentVersion,"ProductType",,"115"

; The line below deletes Welcome applet for factory configuration portion

; of Express setup so it doesn't pop up over the Notepad message.

HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\Tips,show,1,00

; active desktop

HKCU,Software\Microsoft\Windows\CurrentVersion& #092;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

; This line is a temprary fix to  remove welcome from the factory.

HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\run,"Welcome",,

; The line below turns off the user logon going into Windows (needed for

; factory configuration portion of Express setup).

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Network\Real Mode Net","autologon",1,00000000

; The line belows forces windows 98 into audit mode so that the correct

; runonce sequence occurs (factory runonce options are executed)

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductId",,12345-OEM-1234567-12345

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductKey",,ABCDE-FGHIJ-KLMNO-PQRST-UVWXY

HKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOwner",,User

HKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOrganization",,none

in this post:

http://www.msfn.org/board/index.php?showtopic=21230

Seem to be more complete than yours, expecially these:

; This line is a temprary fix to  remove welcome from the factory.

HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\run,"Welcome",,

; The line below turns off the user logon going into Windows (needed for

; factory configuration portion of Express setup).

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Network\Real Mode Net","autologon",1,00000000

Another thing, cannot say which one is right, but your line:
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductKey",,"xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"

has quotes around last item, whilst the other one:

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductKey",,ABCDE-FGHIJ-KLMNO-PQRST-UVWXY

has not.

jaclaz

Link to comment
Share on other sites

Ok I followed your advice and copyied the the extra lines.

I also copy the whole OPKinstall section to make sure I have them all (ofcouse I edit the key there and productid)

But still asking for the Eula and name etc.....

So it seems to be not working at all. in some post on this forum I see Bachus had the same problem but after the OPKinstall "way" he solve it. I dunno why it aint working. This is really weird.

My test install is still running (VMware) so need to wait longer untill I can say the Logon part.

Link to comment
Share on other sites

[install]AddReg=Run.Installed.Components,Registry.WinUpdate,RegistrySettings,RunOnce.BatchDelay,Skip

.PCMCIA.Wizard

AddReg=OPKInstall,.....

CopyFiles=regfile.copy

Try putting OPKInstall on the same line as the other AddReg stuff:

OPKInstall,AddReg=Run.Installed.Components,Registry.WinUpdate,RegistrySettings,RunOnce.BatchDelay,Sk

ip.PCMCIA.Wizard

That's how I have mine and it works fine. That's the only difference I've seen so far.

Link to comment
Share on other sites

well still not working :( my msbatch.ini is after all changes the one below

; MSBATCH.INF

;

; Copyright © 1995-1998 Microsoft Corporation.

; All rights reserved.

;

[batchSetup]Version=3.0 (32-bit)

SaveDate=02-25-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=0

Network=1

System=0

CCP=0

CleanBoot=0

Display=0

DevicePath=0

NoDirWarn=1

TimeZone="W. Europe"

Uninstall=0

NoPrompt2Boot=0

[system]

Locale=L0413

SelectedKeyboard=KEYBOARD_00000409

[NameAndOrg]

Display=0

Name="user"

Org="Truecom"

[Network]

Workgroup="H-net"

Description="Stage PC"

Display=0

PrimaryLogon=Windows

Clients=VREDIR

Protocols=MSTCP

Security=SHARE

[MSTCP]

LMHOSTS=1

LMHOSTPath="C:\WINDOWS\LMHOSTS"

DHCP=1

DNS=1

WINS=D

DNSServers=10.0.1.1

Hostname=stage

Gateways=10.0.1.1

[VREDIR]

LogonDomain="H-net"

ValidatedLogon=0

[OptionalComponents]

"Toegankelijkheidsopties"=1

"Hulpprogramma's"=0

"Werkmap"=0

"Rekenmachine"=1

"Bureaublad-achtergrond"=0

"Documentsjablonen"=1

"Ontspanning"=0

"Imaging"=1

"Muisaanwijzers"=0

"Paint"=1

"Snel weergeven"=0

"Windows Scripting Host"=1

"WordPad"=1

"Adresboek"=1

"ATM-ondersteuning voor inbellen"=0

"Externe toegang"=0

"Externe-toegangsserver"=0

"Directe kabelverbinding"=0

"HyperTerminal"=0

"Microsoft Chat 2.5"=0

"NetMeeting"=1

"Telefoonkiezer"=1

"Virtueel particulier netwerk"=0

"Baseball"=0

"Dangerous Creatures"=0

"In de computer"=0

"Jungle"=0

"Leonardo da Vinci"=0

"Meer Windows"=0

"Mysterie"=0

"Natuur"=0

"Wetenschap"=0

"De ruimte"=0

"Sport"=0

"Jaren zestig"=0

"Industriële vormgeving"=0

"Reizen"=0

"Onderwater"=0

"Windows 98"=0

"Delen van Internet-verbinding"=0

"Microsoft Wallet"=0

"Personal Web Server"=1

"Wizard webpublicaties"=0

"Web-Based Enterprise Mgmt"=0

"Microsoft Outlook Express"=1

"Baltisch"=0

"Centraaleuropees"=0

"Cyrillisch"=0

"Grieks"=0

"Turks"=0

"Audiocompressie"=1

"Cd-speler"=1

"Macromedia Shockwave Director"=1

"Macromedia Shockwave Flash"=1

"Multimediageluidsschema's"=0

"Voorbeeldgeluiden"=0

"Geluidsrecorder"=1

"Videocompressie"=1

"Volumeregeling"=1

"Extra schermbeveiligingen"=0

"Windows-logo's"=1

"OpenGL-schermbeveiligingen"=0

"Reservekopie maken"=0

"Speciale tekens"=0

"Klembord-viewer"=0

"Schijfcompressie-werkset"=1

"Conversieprogramma (FAT32)"=1

"Groepsbeleid"=0

"Netwerkmonitor"=0

"Systeemmonitor"=0

"Systeembronmeter"=0

"WinPopup"=0

[Printers]

[installLocationsMRU]

[install]

OPKInstall,AddReg=Run.Installed.Components,Registry.WinUpdate,RegistrySettings,RunOnce.BatchDelay,Sk

ip.PCMCIA.Wizard

CopyFiles=regfile.copy

[OPKInstall]

; The following line: don't detect monitor

HKLM,System\CurrentControlSet\Services\Class\Display\0000\DEFAULT,"DDC",,0

; The following line will allow ACPI on all OEM machines regardless

; of the good BIOS list

; HKLM,Software\Microsoft\Windows\CurrentVersion\Detect,"ACPIOption",,1

; The following line suppresses the interactive setup of Exchange during

; runonce.

HKLM,Software\Microsoft\Exchange\Client\Options,SilentRunning,,"1"

; The following line changes the product type after the first part of

; setup is complete to activate OEM install features.

HKLM,Software\Microsoft\Windows\CurrentVersion,"ProductType",,"115"

; The line below deletes Welcome applet for factory configuration portion

; of Express setup so it doesn't pop up over the Notepad message.

HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\Tips,show,1,00

; active desktop

HKCU,Software\Microsoft\Windows\CurrentVersion& #092;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

; This line is a temprary fix to  remove welcome from the factory.

HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\run,"Welcome",,

; The line below turns off the user logon going into Windows (needed for

; factory configuration portion of Express setup).

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Network\Real Mode Net","autologon",1,00000000

; The line belows forces windows 98 into audit mode so that the correct

; runonce sequence occurs (factory runonce options are executed)

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductId",,12345-OEM-0071364-21762

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductKey",,xxxxx-xxxxx-xxxxx-xxxxx

HKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOwner",,blah

HKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOrganization",,none

[regfile.copy]

setup.reg

logon.reg

[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,,

; The line below turns off the user logon going into Windows (needed for

; factory configuration portion of Express setup).

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Network\Real Mode Net","autologon",1,00000000

[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.nl"

HKCU,%KEY_IEXPLORERMAIN%,"First Home Page",,"http://www.google.nl"

HKCU,%KEY_IEXPLORERMAIN%,"Search Page",,"http://home.microsoft.com/search/search.asp"

HKLM,%KEY_IEXPLORERMAIN%,"Search Bar",,"http://home.microsoft.com/search/search.asp"

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

[skip.PCMCIA.Wizard]

HKLM,System\CurrentControlSet\Services\Class\PCMCIA,SkipWizardForBatchSetup,,1

[RegistrySettings]

HKLM,%KEY_RUNONCE%,BatchReg1,,"%25%\regedit.exe /s "%10%\setup.reg""

HKLM,%KEY_RUNONCE%,BatchReg1,,"%25%\regedit.exe /s "%10%\logon.reg""

[DestinationDirs]

Connect.Icon=10,alluse~1\desktop

OLS.Icons=49070,Online~1

QuickLaunch.Icons=49050,Micros~1\Intern~1\QuickL~1

regfile.copy=10

[strings]

KEY_INSTALLEDCOMPS="SOFTWARE\Microsoft\Active Setup\Installed Components"

KEY_RUNONCE="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

OnlineLong="Online Services"

KEY_IEXPLORERMAIN="Software\Microsoft\Internet Explorer\Main"

Link to comment
Share on other sites

  • 2 weeks later...
2.

Does anyone know how to bypass the login screen automaticly after you windows install sucefully?

This msbatch.inf entry works for me:

[AddRegistry]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Network\Real Mode Net","autologon",1,00000000

Question:

Does anyone know how to use msbatch.inf to copy a file to the Startup directory? If this is possible (it must be), then I could copy an AutoIt script that would install about a dozen programs and run a few cleanup batch files when the installation hits the desktop, with the necessary reboots. :yes:

Link to comment
Share on other sites

OK, I finally got this pig working. I have to say, although I want an unattended Windows 98 disc that loads the OS and post-installs some programs, I DO NOT want to spend an inordinate amount of time learning the nuances of the msbatch.inf. Although I found references to using msbatch.inf to place items in StartUp (HERE, for example), I'm going to rely on batch files and AutoIt.

My goal was to get a compiled AutoIt script into the StartUp folder. That script will perform the program installs, customizations, and cleanup. I drew on Bachus' OEMApps.INF file posted earlier in this thread (big thanks, Bachus :thumbup ) to utilize RunOnce. RunOnce fires up a batch file (HKLM,%KEY_RUNONCE%,AppsInstall,,"%10%\PIwiz.bat") that copies the compiled script, in this case test.exe, to the StartUp directory:

PIwiz.bat:

@echo off
Copy "%systemdrive%\Files\test.exe" "%windir%\Start Menu\Programs\StartUp"
cls
exit

The compiled script was copied over to the hard drive earlier, along with the Windows setup files, using a batch file:

Setup.bat:

@ECHO OFF
REM Locate the CDROM drive, where PIwiz.bat exists at the root...
FOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\PIwiz.bat SET CDROM=%%d
ECHO.
ECHO Creating installation directories on the hard drive...
ECHO.
ECHO C:\FILES
ECHO C:\WINDOWS\OPTIONS\CABS
ECHO.
md c:\files
md c:\windows
md c:\windows\options
md c:\windows\options\cabs
ECHO Copying setup files to new installation directories...
ECHO.
xcopy %CDROM%\files\*.* c:\files /s
copy %CDROM%\win98\*.* c:\windows\options\cabs
copy %CDROM%\PIwiz.bat c:\windows
ECHO.
ECHO Preparing to run setup...
ECHO.
REM Now run setup from the local hard drive keyed to an .inf answer file.
c:\windows\options\cabs\setup.exe /IS /IV /IQ c:\windows\options\cabs\msbatch.inf
CLS
EXIT

Tools like xcopy, JO.SYS, and IBM's WIPE utility are placed on a customized Win98SE boot disk, which is used to make a bootable CD (no need for a floppy on systems that support CD boot). So I can boot from CD, wipe the drive, partition the drive, format the drive, and then type "setup[ENTER]" and away she flies!

Oh, yeah, anyone know how to bypass the "Add New Hardware" wizard? Those plug-and-play monitors are a bit of a pain.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...