MSFN Forum: Unattended Windows 98 Install - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unattended Windows 98 Install Rate Topic: -----

#1 User is offline   lhy 

  • Group: Members
  • Posts: 5
  • Joined: 28-February 05

Posted 28 February 2005 - 07:17 AM

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?


#2 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,112
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 28 February 2005 - 12:15 PM

And the one posted here:
http://www.msfn.org/...?showtopic=8497
does not work for you?


Here are the related MS articles:
http://support.micro...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.micro....com/?id=169539

And the onecomputerguy one:
http://www.onecomput...all/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

#3 User is offline   Bachus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 408
  • Joined: 25-July 03

Posted 28 February 2005 - 02:35 PM

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. :)

#4 User is offline   amp_man 

  • My stereo is worth more than my car...
  • Pip
  • Group: Members
  • Posts: 69
  • Joined: 03-January 05

Posted 28 February 2005 - 04:25 PM

tweakui 1.33 can auto-logon a user, i imagine this is done through a reg key, might want to check it out

#5 User is offline   lhy 

  • Group: Members
  • Posts: 5
  • Joined: 28-February 05

Posted 01 March 2005 - 02:05 AM

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]

Quote

; 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"


#6 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,112
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 01 March 2005 - 07:20 AM

According to these:
http://www.msfn.org/...showtopic=32586
http://www.msfn.org/...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/...showtopic=34083


jaclaz

#7 User is offline   lhy 

  • Group: Members
  • Posts: 5
  • Joined: 28-February 05

Posted 01 March 2005 - 08:02 AM

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

#8 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,112
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 01 March 2005 - 09:17 AM

Well, the OPKinstall part

Quote

[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/...showtopic=21230

Seem to be more complete than yours, expecially these:

Quote

; 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:

Quote

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


has quotes around last item, whilst the other one:

Quote

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


has not.

jaclaz

#9 User is offline   lhy 

  • Group: Members
  • Posts: 5
  • Joined: 28-February 05

Posted 02 March 2005 - 05:09 AM

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.

#10 User is offline   Bachus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 408
  • Joined: 25-July 03

Posted 02 March 2005 - 03:28 PM

Quote

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

Quote

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.

#11 User is offline   lhy 

  • Group: Members
  • Posts: 5
  • Joined: 28-February 05

Posted 03 March 2005 - 05:44 AM

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

Quote

; 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"


#12 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,112
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 03 March 2005 - 07:27 AM

At this point, I have to spend my two cents:
1) Could Bachus be so kind as to post his BATCH.INF
2) It could be the copy lhy has, i.e. maybe it is not a "full" OEM, but a modified one, just like Dell's XP OEM's are

Also, cannot say if it helps, but I found this:
http://www.tacktech....ay.cfm?ttid=208

jaclaz

#13 User is offline   Bachus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 408
  • Joined: 25-July 03

Posted 17 March 2005 - 12:25 PM

Sorry for the delay. :)

Attached File(s)



#14 User is offline   blinkdt 

  • Somewhat Knowledgeable
  • PipPipPipPip
  • Group: Members
  • Posts: 582
  • Joined: 30-September 03
  • OS:Vista Ultimate x64
  • Country: Country Flag

Posted 22 March 2005 - 01:19 AM

Quote

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:

#15 User is offline   blinkdt 

  • Somewhat Knowledgeable
  • PipPipPipPip
  • Group: Members
  • Posts: 582
  • Joined: 30-September 03
  • OS:Vista Ultimate x64
  • Country: Country Flag

Posted 25 March 2005 - 11:36 AM

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.

#16 User is offline   naikosen 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 21-September 06

Posted 12 October 2006 - 07:14 PM

All what I did is:
I copied the '@msbatch.inf' to the Win98 folder then tried to install Windows 98se in Virual Machine (VMware Workstation) using the command line in the autoexec.bat:
path=a:\;%CDROM%\
%CDROM%
cd \WIN98
setup.exe @msbatch.inf

It started copying all neccessary files to the disk. Hereafter, it restarted the computer automatically.
Now it displays the following on Dump screen:
" Cannot read or write to Partition C: press any key to continue "
When I press any key I have this message:
" Cannot load or read KRNL386.exe"

One more question:
How to bypass the scandisk process during installation?

#17 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 13 October 2006 - 07:23 AM

If msbatch.inf is in the same folder of SETUP.EXE, you don't have to mention it on the command line.

This is my command line: SETUP.EXE /ie /is /nf /nm /nr


WIN98SE Setup Options: SETUP [batch] [/ie] [/im] [/is] [/iv] [/nr] [/T:tmpdir]


batch Specifies the name and location of the file that contains the Setup options.
/ie Skip the Startup Disk screen.
/im Skip the check for low conventional memory.
/is Do not run ScanDisk.
/iv Do not display billboards.
/nr Skips the registry check.
/T:tmpdir Specifies the directory where Setup is to copy its temporary files.
This directory must already exist, but any existing files in the directory
will be deleted.

#18 User is offline   naikosen 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 21-September 06

Posted 13 October 2006 - 09:13 PM

View Postmazin, on Oct 13 2006, 07:23 AM, said:

If msbatch.inf is in the same folder of SETUP.EXE, you don't have to mention it on the command line.

This is my command line: SETUP.EXE /ie /is /nf /nm /nr


WIN98SE Setup Options: SETUP [batch] [/ie] [/im] [/is] [/iv] [/nr] [/T:tmpdir]


batch Specifies the name and location of the file that contains the Setup options.
/ie Skip the Startup Disk screen.
/im Skip the check for low conventional memory.
/is Do not run ScanDisk.
/iv Do not display billboards.
/nr Skips the registry check.
/T:tmpdir Specifies the directory where Setup is to copy its temporary files.
This directory must already exist, but any existing files in the directory
will be deleted.

Thank you very much for your nice help.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy