lhy Posted February 28, 2005 Posted February 28, 2005 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?
jaclaz Posted February 28, 2005 Posted February 28, 2005 And the one posted here:http://www.msfn.org/board/index.php?showtopic=8497does not work for you?Here are the related MS articles:http://support.microsoft.com/kb/835891/en-gbhttp://support.microsoft.com/default.aspx?...kb;EN-US;214714http://support.microsoft.com/default.aspx?...727&product=w98The reskit guide:http://www.microsoft.com/resources/documen...t7/wrkappd.mspxand the hard to find technet one:http://www.microsoft.com/technet/archive/w...oy/batch98.mspxand the whitepaper:http://support.microsoft.com/?id=169539And the onecomputerguy one:http://www.onecomputerguy.com/install/install.htmI 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 onlyjaclaz
Bachus Posted February 28, 2005 Posted February 28, 2005 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.
amp_man Posted February 28, 2005 Posted February 28, 2005 tweakui 1.33 can auto-logon a user, i imagine this is done through a reg key, might want to check it out
lhy Posted March 1, 2005 Author Posted March 1, 2005 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.5LayoutFile=layout.inf[setup]Express=1InstallDir="c:\windows"InstallType=3ProductKey="xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"EBD=0ShowEula=0ChangeDir=0OptionalComponents=0Network=1System=0CCP=0CleanBoot=0Display=0DevicePath=0NoDirWarn=1TimeZone="W. Europe"Uninstall=0NoPrompt2Boot=0[system]Locale=L0413SelectedKeyboard=KEYBOARD_00000409[NameAndOrg]Display=0Name="user"Org="H-net"[Network]Workgroup="Home-network"Description="Stage PC"Display=0PrimaryLogon=WindowsClients=VREDIRProtocols=MSTCPSecurity=SHARE[MSTCP]LMHOSTS=1LMHOSTPath="C:\WINDOWS\LMHOSTS"DHCP=1DNS=1WINS=DDNSServers=10.0.1.1Hostname=stageGateways=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.WizardAddReg=OPKInstall,.....CopyFiles=regfile.copy[OPKInstall]HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductId",,12345-OEM-0071364-21762HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductKey",,"xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"HKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOwner",,blahHKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOrganization",,none[regfile.copy]setup.reglogon.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,00HKLM,%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,00HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,Version,,"3,0,0,0"HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,StubPath,,"%24%\progra~1\intern~1\connec~1\icwconn1 /restoredesktopHKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,,,">Batch 98 - Advanced Settings"HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,IsInstalled,1,01,00,00,00HKLM,%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,00HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,Version,,"3,0,0,0"HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,StubPath,,"wupdmgr.exe -shortcut"[installed.Components.General]AddReg=Browser.Settings, Shell.PrepBitReg=Shell.Settings[installed.Components.Advanced]DelFiles=Connect.Icon, OLS.Icons, QuickLaunch.IconsCustomDestination=Custom.DestRunPostSetupCommands=DirCleanup[Custom.Dest]49070=DesktopLDIDSection,549050=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.lnkat&two~1.lnkcompus~1.lnkprodig~1.lnkthemic~1.lnkaboutt~1.lnkabouto~1.txtservices.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,00HKLM,Software\Microsoft\Windows\CurrentVersion,RegDone,1,01,00,00,00[Registry.WinUpdate]HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDevMgrUpdate,0x10001,0HKLM,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,00HKCU,"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\desktopOLS.Icons=49070,Online~1QuickLaunch.Icons=49050,Micros~1\Intern~1\QuickL~1regfile.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"
jaclaz Posted March 1, 2005 Posted March 1, 2005 According to these:http://www.msfn.org/board/index.php?showtopic=32586http://www.msfn.org/board/index.php?showtopic=21230it 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=34083jaclaz
lhy Posted March 1, 2005 Author Posted March 1, 2005 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...
jaclaz Posted March 1, 2005 Posted March 1, 2005 Well, the OPKinstall part[OPKInstall]; The following line: don't detect monitorHKLM,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 desktopHKCU,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,0a,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-12345HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductKey",,ABCDE-FGHIJ-KLMNO-PQRST-UVWXYHKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOwner",,UserHKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOrganization",,nonein this post:http://www.msfn.org/board/index.php?showtopic=21230Seem 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,00000000Another 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-UVWXYhas not.jaclaz
lhy Posted March 2, 2005 Author Posted March 2, 2005 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.
Bachus Posted March 2, 2005 Posted March 2, 2005 [install]AddReg=Run.Installed.Components,Registry.WinUpdate,RegistrySettings,RunOnce.BatchDelay,Skip.PCMCIA.WizardAddReg=OPKInstall,.....CopyFiles=regfile.copyTry putting OPKInstall on the same line as the other AddReg stuff:OPKInstall,AddReg=Run.Installed.Components,Registry.WinUpdate,RegistrySettings,RunOnce.BatchDelay,Skip.PCMCIA.WizardThat's how I have mine and it works fine. That's the only difference I've seen so far.
lhy Posted March 3, 2005 Author Posted March 3, 2005 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.5LayoutFile=layout.inf[setup]Express=1InstallDir="c:\windows"InstallType=3ProductKey="xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"EBD=0ShowEula=0ChangeDir=0OptionalComponents=0Network=1System=0CCP=0CleanBoot=0Display=0DevicePath=0NoDirWarn=1TimeZone="W. Europe"Uninstall=0NoPrompt2Boot=0[system]Locale=L0413SelectedKeyboard=KEYBOARD_00000409[NameAndOrg]Display=0Name="user"Org="Truecom"[Network]Workgroup="H-net"Description="Stage PC"Display=0PrimaryLogon=WindowsClients=VREDIRProtocols=MSTCPSecurity=SHARE[MSTCP]LMHOSTS=1LMHOSTPath="C:\WINDOWS\LMHOSTS"DHCP=1DNS=1WINS=DDNSServers=10.0.1.1Hostname=stageGateways=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,Skip.PCMCIA.WizardCopyFiles=regfile.copy[OPKInstall]; The following line: don't detect monitorHKLM,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 desktopHKCU,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,0a,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-21762HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductKey",,xxxxx-xxxxx-xxxxx-xxxxxHKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOwner",,blahHKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOrganization",,none[regfile.copy]setup.reglogon.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,00HKLM,%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,00HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,Version,,"3,0,0,0"HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,StubPath,,"%24%\progra~1\intern~1\connec~1\icwconn1 /restoredesktopHKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,,,">Batch 98 - Advanced Settings"HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,IsInstalled,1,01,00,00,00HKLM,%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,00HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,Version,,"3,0,0,0"HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,StubPath,,"wupdmgr.exe -shortcut"[installed.Components.General]AddReg=Browser.Settings, Shell.PrepBitReg=Shell.Settings[installed.Components.Advanced]DelFiles=Connect.Icon, OLS.Icons, QuickLaunch.IconsCustomDestination=Custom.DestRunPostSetupCommands=DirCleanup[Custom.Dest]49070=DesktopLDIDSection,549050=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.lnkat&two~1.lnkcompus~1.lnkprodig~1.lnkthemic~1.lnkaboutt~1.lnkabouto~1.txtservices.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,00HKLM,Software\Microsoft\Windows\CurrentVersion,RegDone,1,01,00,00,00[Registry.WinUpdate]HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDevMgrUpdate,0x10001,0HKLM,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,00HKCU,"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\desktopOLS.Icons=49070,Online~1QuickLaunch.Icons=49050,Micros~1\Intern~1\QuickL~1regfile.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"
jaclaz Posted March 3, 2005 Posted March 3, 2005 At this point, I have to spend my two cents:1) Could Bachus be so kind as to post his BATCH.INF2) 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 areAlso, cannot say if it helps, but I found this:http://www.tacktech.com/display.cfm?ttid=208jaclaz
blinkdt Posted March 22, 2005 Posted March 22, 2005 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,00000000Question: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.
blinkdt Posted March 25, 2005 Posted March 25, 2005 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 ) 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 offCopy "%systemdrive%\Files\test.exe" "%windir%\Start Menu\Programs\StartUp"clsexitThe compiled script was copied over to the hard drive earlier, along with the Windows setup files, using a batch file:Setup.bat:@ECHO OFFREM 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=%%dECHO.ECHO Creating installation directories on the hard drive...ECHO.ECHO C:\FILESECHO C:\WINDOWS\OPTIONS\CABSECHO.md c:\filesmd c:\windowsmd c:\windows\optionsmd c:\windows\options\cabsECHO Copying setup files to new installation directories...ECHO.xcopy %CDROM%\files\*.* c:\files /scopy %CDROM%\win98\*.* c:\windows\options\cabscopy %CDROM%\PIwiz.bat c:\windowsECHO.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.infCLSEXITTools 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.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now