Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Unattended and Updated Boot CD for Windows 98

- - - - -

  • Please log in to reply
47 replies to this topic

#1
soporific

soporific

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 705 posts
  • Joined 12-June 05
The Unattended and Updated Boot CD for Windows 98 has evolved into the
Windows 98 Seven Years Later ed. Boot CD project:


Change Log:
  • version 2.5 released on August 14, 2005:
    - major modification to boot image file: now skips unnecessary stage (that contains a duplicate "boot from CD or Hard drive" choice), EBD.CAB and EBD.SYS have been removed to save space, Symantec's GDISK added, Config.sys code cleaned up, autoexec.bat code vastly improved (again) - it now handles unpartitioned hard drives, as well as more error trapping.
    - added the Ultimate Boot Disk v3.3 to the project - its useful to have hardware diagnostic tools handy in case of problems. I totally recommend it but it will take up about 110 Mb of space.
    - Cdshell.ini corrupted code now fixed.
    - system updates now run in only two stages and some more not-new updates were included (q311561, q273727 & q242975)
    - the guide text was, ahem, slightly improved.
  • version 2.0 released on July 28, 2005:
    - multiple choice of installation configuration at the very start of setup.
    - Boot image now contains choice.com, XCopy32.exe, format.com, reboot.com & edit.exe so was able to remove these files from the Boot CD root directory.
    - vastly improved autoexec.bat code
    - installation files are now copied to the hard drive and are used to install Windows.
    - tweaked the order of critical and security updates - they weren't working properly.
    - all bat file code improved to be more standard across the board and to include more install operation options.
    - the core of the 98-2-Me update now included (thanks to MDGx)
  • version 1.0 released on July 2, 2005:
    - it worked. ... what else can I say ...
    - oh yeah, it was my first ever post on msfn.org
The original post follows:
Hey there,

Some of us, for whatever reason, still have the need to re-install Windows 98. And we absolutely hate having to go through all the prompts, enter in the product keys, get the updates, etc. Wouldn't it be good to just stick the CD in and at the very end, have everything up-to-date? For Win98se this means:

1) a full upgrade of Internet Explorer to version 6 sp1
2) 26 'critical' system updates (some of them for IE6 sp1 which makes things tricky)
3) a DirectX update to 9.0c (but Microsoft doesn't officially allow silent installs for DX9)
4) install the basic programs you know you were going to install anyway, eg Office, etc.

Well, here's how you do it ...

[EDIT: version 2 appears further down this thread - when its totally finished, it'll move here until then go to page 3]

This method does the following (in order of install):

* skips the scandisk. This means one less OK to press. See the autoexec.bat code for all the switches ...
* skips the EULA screen. And my version is an OEM version so rumours that OEM versions couldn't do this are wrong. See the code ...
* installs as many applications as you want before the first boot (excepting 'integrational' apps like your typical anti-virus app)
* installs Internet Explorer 6 sp1 at the 'less than one minute to go" stage
* skips past the password (login) stage with a nice bit of code at the same location as the EULA screen hack.
* DOES NOT GET PAST THE 'Default Monitor' STAGE - this is when Windows asks where to look for updated drivers for whatever monitor is plugged into your machine. This problem doesn't occur when you use Virtual PC to test the CD, but in a real test, the system still asks for a location for more drivers. The trick around this is to turn your monitor off during install (or at least when the first boot to the desktop occurs), but it would still be nice to be able to leave the monitor on. If there's anyone out there with suggestions about how to solve this problem, pls post.
* after the desktop groans into appearance (because IE6 contains lots of new stuff it takes about 5 minutes on a slow machine instead of 30 seconds), after a wait of a minute a Current_User RunOnce command runs which starts silently installing MS Media Player 7.1, kills the MSN icon and then auto reboots
* then it does DirectX 9.0c and reboots. In order to do it unattended, use the dxsetup.exe from the Direct X 8.1 admin install pack.
* then it starts the updates - does all the critical and security updates then reboots
* then all the 'media' and other updates (IE 6, Outlook Express, Media player, and all the weird ones)
* then Microsoft VM and MDAC 2.8
* Then MS Office 2000 sp3 and a reboot.
* Then a cleanup process occurs that deletes all the bat and reg files.

What to do:
1) Download all the windows updates available from Windows downloads page. There are a few that are tricky to get (eg Microsoft VM) but all
is possible without resorting to anything that is naughty. Rename them to fit the code of your bat files. See my examples below.
1)a) To get DirectX 9.0c to install silently, you'll have to grab a copy of the dxsetup.exe that comes with DX 8.1
2) If you are not yet at the stage of having ever done a Boot CD before, go to this site: http://flyakite.msfnhosting.com/ and get to the point where you are able to construct your own Boot CD. There are many postings on this site to help you.
3) Modify the files I've included below for your own purposes. ie change all the references to file locations to yours.
4) I recommend using a virtual machine application (along with a virtual drive app) to test your CD creation. It would have taken me months to go through the number of tests I did to come up with the code you see below. Or just try to marry the code below with your circumstances as closely as you can.
5) I use some DOS apps that you'll need if you want to use my code exactly as it is (with your product keys inserted where it says XXXX-XXX)
- to make your own reboot.com go here: http://blog.jwiz.org...es/2004_07.html (scroll down to the section)
- you don't have to use gdisk if you can't find it on the web, just use fdisk and change the code accordingly.
- i include an external version of choice.com in my CD root directory (as well as fidsk.exe and format.com) which can be found on the net, as the autoexec.bat seems to have trouble calling the standard command.com version. If choice.com is not included in your Boot CD boot image file (which will be the case if you constructed it from the normal Windows 98 Boot Disk) then simply add it and you won't need to then include it again on the CD.
6) Windows 98 setup doesn't have an inbuilt CDROM variable and so the tried and true method for getting around this is to use a neat bit of code at the start of each bat file that needs to refer to the CD for setup files. My method searches for setuptip.txt in the root directory of the CD. Just make sure you use a file that exists on your CD in your code.

Here's the code ... have fun. Sorry for the length of the post but I'm only including the code necessary for people to understand, I've left out as much as I thought I could. The [optional components] section has been snipped to save space and I've snipped the list of apps I install during setup but kept a few for examples. More info at the location of the snips.

msbatch.inf

; MSBATCH.INF; Windows 98 fully updated edition; By soporific ~ June 2005;; NB: This edition for MSFN has been heavily edited to save space; at the locations indicated by: (snip - [notes]);; if you put msbatch.inf in the same directory as the setup cabs,; setup.exe will find it and you don't have to use the switch to do it; thus avoiding having to provide an absolute location for it.[BatchSetup]Version=3.0 (32-bit)SaveDate=06/14/05[Version]Signature = "$CHICAGO$"AdvancedINF=2.5LayoutFile=layout.inf[Setup]Express=1InstallDir="c:\windows"InstallType=3ProductKey="XXXXX-XXXXX-XXXXX-XXXXX"EBD=0ShowEula=0ChangeDir=0OptionalComponents=1Network=1System=0CCP=0CleanBoot=0Display=0DevicePath=0NoDirWarn=1TimeZone="E. Australia"Uninstall=0NoPrompt2Boot=1[System]Locale=L0C09SelectedKeyboard=KEYBOARD_00000409DisplChar=16,800,600[NameAndOrg]Name="User"Org="none"Display=0[Network]ComputerName="Win98"Workgroup="Work"Description="Windows 98se"Display=0PrimaryLogon=WindowsClients=VREDIRProtocols=MSTCPServices=VSERVERSecurity=SHARE[MSTCP]LMHOSTS=0DHCP=1DNS=0WINS=D[VREDIR]LogonDomain="Work"ValidatedLogon=0[VSERVER]LMAnnounce=0MaintainServerList=2[OptionalComponents]"Accessibility Options"=0"Briefcase"=0; (snip); (snip -- here was a long list of Optional Components - they be gone now.; (snip -- there be plenty of msbacth.inf examples on the net: google 'msbatch.inf'); (snip -- or you could make your own msbatch.inf based upon the machine its intended; (snip -- for by using the Batch98 utility available from the Win98 resource kit; (snip -- and then modify it in the appropriate places; (snip)[Printers][InstallLocationsMRU]"D:\win98\""C:\Windows\System\""E:\win98\""F:\win98\""G:\win98\"[Install]AddReg=OPKInstall,RunOnce.BatchDelay,Run.Installed.Components,Skip.PCMCIA.Wizard,Registry.WinUpdate,ExtraApps,IE6CopyFiles=Newfiles.Copy[RunOnce.BatchDelay]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_INSTCOMP%\>BatchSetupx,,,">Batch 98 - General Settings"HKLM,%KEY_INSTCOMP%\>BatchSetupx,IsInstalled,1,01,00,00,00HKLM,%KEY_INSTCOMP%\>BatchSetupx,Version,,"3,0,0,0"HKLM,%KEY_INSTCOMP%\>BatchSetupx,StubPath,,"%25%\rundll.exe setupx.dll,InstallHinfSection Installed.Components.General 4 %10%\msbatch.inf"HKLM,%KEY_INSTCOMP%\BatchSetupx,,,"ICW"HKLM,%KEY_INSTCOMP%\BatchSetupx,IsInstalled,1,01,00,00,00HKLM,%KEY_INSTCOMP%\BatchSetupx,Version,,"3,0,0,0"HKLM,%KEY_INSTCOMP%\BatchSetupx,StubPath,,"%24%\progra~1\intern~1\connec~1\icwconn1 /restoredesktopHKLM,%KEY_INSTCOMP%\>BatchAdvpack,,,">Batch 98 - Advanced Settings"HKLM,%KEY_INSTCOMP%\>BatchAdvpack,IsInstalled,1,01,00,00,00HKLM,%KEY_INSTCOMP%\>BatchAdvpack,Version,,"3,0,0,0"HKLM,%KEY_INSTCOMP%\>BatchAdvpack,StubPath,,"%25%\rundll32.exe advpack.dll,LaunchINFSection %10%\msbatch.inf,Installed.Components.Advanced"HKLM,%KEY_INSTCOMP%\>Batchwu,,,">Batch 98 - Windows Update"HKLM,%KEY_INSTCOMP%\>Batchwu,IsInstalled,1,01,00,00,00HKLM,%KEY_INSTCOMP%\>Batchwu,Version,,"3,0,0,0"HKLM,%KEY_INSTCOMP%\>Batchwu,StubPath,,"wupdmgr.exe -shortcut"[Installed.Components.General]AddReg=Browser.Settings, Shell.PrepBitReg=Shell.Settings[DelOEdesktop]setup.ini, progman.groups,, "groupOE=..\..\desktop"setup.ini, groupOE,, """Outlook Express"""            ;deletes icon[Installed.Components.Advanced]DelFiles=OLS.Icons, QuickLaunch.IconsCustomDestination=Custom.DestRunPostSetupCommands=DirCleanup[Custom.Dest]49070=DesktopLDIDSection,549050=QuickLinksLDIDSection,5[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_IE_MAIN%,"Start Page",,"about:blank"HKCU,%KEY_IE_MAIN%,"First Home Page",,"about:blank"HKCU,%KEY_IE_MAIN%,"Search Page",,"http://www.google.com.au/ie/"HKCU,%KEY_IE_MAIN%,"Search Bar",,"http://www.google.com.au/ie/"HKCU,%KEY_IE_HELP%,,"Online_Support",,"http://support.microsoft.com/support"[Shell.Prep]HKCU,Software\Microsoft\Windows\CurrentVersion\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,00HKCU,"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,1HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer,ShellState,1,40,4[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[DestinationDirs]OLS.Icons=49070,Online~1QuickLaunch.Icons=49050,Micros~1\Intern~1\QuickL~1[Strings]Key_RUN="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"KEY_RUNONCE="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"KEY_RUNONCESETUP="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\Setup"KEY_INSTCOMP="SOFTWARE\Microsoft\Active Setup\Installed Components"KEY_IE_MAIN="SOFTWARE\Microsoft\Internet Explorer\Main"KEY_IE_HELP="SOFTWARE\Microsoft\Internet Explorer\Help_Menu_URLs"KEY_CURR_VER="SOFTWARE\Microsoft\Windows\CurrentVersion"KEY_EXPLORE="SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer"OnlineLong="Online Services"[OPKInstall]; This gets you past the EULA stageHKLM,%KEY_CURR_VER%,"ProductId",,"XXXXX-OEM-00XXXXX-XXXXX"HKLM,%KEY_CURR_VER%,"ProductKey",,"XXXXX-XXXXX-XXXXX-XXXXX"HKLM,%KEY_CURR_VER%,"RegisteredOwner",,"User"HKLM,%KEY_CURR_VER%,"RegisteredOrganization",,"none"; this gets you past the first logon screenHKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Network\Real Mode Net","autologon",1,00000000[Newfiles.Copy]; the list of files that get copied to the windows directory before any of the setup stages.@Launch.bat; 1@Firefox.bat; 2; (snip - I won't bore you with what I install in particular, there are many places on the web listing application switches)@DoAVG7.reg; 37@AVG7.bat; 38  this is currently the last bat file before cleanup@cleanup.bat; 39  copies wininit.ini from CD listing all the files to delete on reboot.[ExtraApps];                     1)HKLM,%KEY_RUNONCESETUP%,"Mozilla Firefox 1.04",,"C:\windows\@Launch.bat @Firefox.bat"; (snip - there are 11 in total for my version); i use a launcher bat file to get around Microsoft deliberately shifting the DOS; windows so they don't block the list of apps that are going to install at the; RunOnce\Setup stage. I chose to let the bat files do the talking ... so the launcher; window gets shifted, then it launches another window to start the next app install.[IE6]; Installs IE 6 sp1 at the end of saving config settings.; There's no other stage you can install IE6 unless you wait until setup finishes.HKLM,%KEY_RUNONCE%,"Internet Explorer 6.0 SP1",,"C:\windows\@Launch.bat @ie6sp1.bat"; Always make sure your .inf, .bat and .reg files have at least one carriage return; at the end or the file may just not work at all. For Reg files, none of it will work.; No wonder NASA space missions fail with just one wrong hyphen.

config.sys:


Autoexec.bat

@echo off:INITIALISESET SC=Windows Media Player 7.1SET SN=DirectX 9.0cSET SD=@DoDX9.regSET SE=@DX9.batSET TA=50SET TC=5SET WD=c:\windowsFOR %%Z IN (D E F G H I J) DO IF EXIST %%Z:\setuptip.txt SET CDROM=%%Z::PRESETUPecho.echo. %SC% will automatically start in %TA% secondsecho.echo. C to Continue nowecho. B to Bypass %SC% and start %SN%echo. Q to Quit automatic install ...echo.Choice /c:qcb /n /t:c,%TA% >NULecho.IF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO BYPASSIF ERRORLEVEL 2 GOTO SETUPIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:SETUPecho. Now installing %SC% ...echo.START /W %CDROM%\UPDATES\mplayer\mplay71.exe /Q:A /R:N /C:"setup_wm.exe /Q:A /R:N"START /W %CDROM%\UPDATES\mplayer\Codecs.exe /QIF NOT ERRORLEVEL 0 GOTO ERROR:QUITMENUecho.echo. Now lets kill the MSN icon from the desktop ...echo.REGEDIT /S %WD%\@KillMSN.regecho. Done ... take that MSN icon !!! It won't be there next time you boot ...echo.REM | Choice /c:c /n /t:c,2 >NULecho. %SC% has ended. The system will automatically reboot in %TC% secondsecho.echo. C to Continue now and add %SD% to registry ...echo. B to Bypass setting %SD% (and thus break the auto install chain).echo.     - reboot will still occurecho.     - manually restart with %WD%\%SE%echo. Q to Quit rebooting and stop everythingecho.Choice /c:qcb /n /t:c,%TC% >NULIF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO CLEANBOTIF ERRORLEVEL 2 GOTO CONTINUEIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:CONTINUEecho.echo. Now adding %SD% to the registry ...REGEDIT /S %WD%\%SD%IF NOT ERRORLEVEL 0 GOTO ERRORecho.echo. ... done.REM | Choice /c:c /n /t:c,2 >NULecho.echo. %SE% will run on next boot ...echo.REM | Choice /c:c /n /t:c,2 >NULgoto CLEANBOT:BYPASSecho.echo. Now starting %SE% ...echo.SET SC=SET SN=SET SD=SET TA=SET TC=SET CDROM=START %WD%\%SE%SET SE=SET WD=clsexitgoto END:ERRORecho. An unexpected error has occurred ... aborting automatic installation.PAUSE:CLEANUPSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET WD=SET CDROM=:QUITclsexitgoto END:CLEANBOTSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET CDROM=START %WD%\@Reboot.batSET WD=clsexit:END
@reboot.bat
@echo off:INITIALISESET SC=Update Pack 1SET SN=Update Pack 2SET SD=@DoUpd2.regSET SE=@Update2.batSET TA=45SET TC=10SET WD=c:\windowsFOR %%Z IN (D E F G H I J) DO IF EXIST %%Z:\setuptip.txt SET CDROM=%%Z::PRESETUPecho. %SC% will automatically start in %TA% secondsecho.echo. C to Continue nowecho. B to Bypass %SC% and start %SN%echo. Q to Quit automatic install ...echo.Choice /c:qcb /n /t:c,%TA% >NULecho.IF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO BYPASSIF ERRORLEVEL 2 GOTO SETUPIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:SETUPecho. Now installing %SC% ...REM | Choice /c:c /n /t:c,2 >NULecho.for %%P in (KB811630 KB896358 KB888113 KB891711 KB891781 KB823559 q329115 q323172 q323255 q259728 q245729 q313829 q256015 q238453) DO START /W %WD%\@Install.bat %%PIF NOT ERRORLEVEL 0 GOTO ERRORecho.echo. ... all done.REM | Choice /c:c /n /t:c,2 >NULecho.:QUITMENUecho. %SC% has ended. The system will automatically reboot in %TC% secondsecho.echo. C to Continue now echo. B to Bypass setting %SD% (and stop auto install)echo.     - reboot will still occurecho.     - manually restart by starting %WD%\%SE%echo. Q to Quit rebooting and stop everythingecho.Choice /c:qcb /n /t:c,%TC% >NULIF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO CLEANBOTIF ERRORLEVEL 2 GOTO CONTINUEIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:CONTINUEecho.echo. Now adding %SD% to the registry ...REGEDIT /S %WD%\%SD%IF NOT ERRORLEVEL 0 GOTO ERRORecho.echo. ... done.REM | Choice /c:c /n /t:c,2 >NULecho.echo. %SE% will run on next boot ...echo.REM | Choice /c:c /n /t:c,2 >NULgoto CLEANBOT:BYPASSecho.echo. Now starting %SE% ...echo.SET SC=SET SN=SET SD=SET TA=SET TC=SET CDROM=START %WD%\%SE%SET SE=SET WD=clsexitgoto END:ERRORecho. An unexpected error has occurred ... aborting automatic installation.PAUSE:CLEANUPSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET WD=SET CDROM=:QUITclsexitgoto END:CLEANBOTSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET CDROM=START %WD%\@Reboot.batSET WD=clsexit:END
[@update2.bat is much like @update1.bat execpt the following section]
[@Update3.bat is run on next reboot after @Update2.bat has finished (just like @Update1.bat)]
@Update2.bat (partial):
:SETUPecho. Now installing %SC% ...REM | Choice /c:c /n /t:c,2 >NULecho.for %%P in (KB883939 KB837009 KB817787 q320920 KB870669 KB814078 q273991 q273017 q260067) DO START /W %WD%\@Install.bat %%PIF NOT ERRORLEVEL 0 GOTO ERRORREM | Choice /c:c /n /t:c,2 >NULecho.echo. ... updates done.REM  This stops windows update asking you to download the GDI+ detection toolREGEDIT /S %WD%\KB873374.regIF NOT ERRORLEVEL 0 GOTO ERRORREM | Choice /c:c /n /t:c,2 >NULecho.echo. ... regirsty entries done.
@update3.bat
@echo off:INITIALISESET SC=Update Pack 3SET SN=Microsoft Office 2000 sp3SET SD=@DoOff2K.regSET SE=@Off2k.batSET TA=45SET TC=5SET WD=c:\windowsFOR %%Z IN (D E F G H I J) DO IF EXIST %%Z:\setuptip.txt SET CDROM=%%Z::PRESETUPecho.echo. %SC% will automatically start in %TA% secondsecho.echo. This is only to allow slower systems to fully load before continuing setupecho.echo. C to Continue nowecho. B to Bypass %SC% and start %SN%echo. Q to Quit automatic install ...echo.Choice /c:qcb /n /t:c,%TA% >NULecho.IF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO BYPASSIF ERRORLEVEL 2 GOTO SETUPIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:SETUPecho. Now installing %SC% ...REM | Choice /c:c /n /t:c,2 >NULecho.for %%P in (KB816093) DO START /W %WD%\@Install.bat %%PIF NOT ERRORLEVEL 0 GOTO ERRORREM | Choice /c:c /n /t:c,1 >NULSTART /W %CDROM%\UPDATES\SYS\MDAC_2.8.exe /Q /C:"Setup /QNT"echo.REM | Choice /c:c /n /t:c,2 >NULecho. ... all done.REM | Choice /c:c /n /t:c,2 >NULecho.:QUITMENUecho. %SC% has ended. The system will automatically reboot in %TC% secondsecho.echo. C to Continue now echo. B to Bypass setting %SD% (and stop auto install)echo.     - reboot will still occurecho.     - manually restart by starting %WD%\%SE%echo. Q to Quit rebooting and stop everythingecho.Choice /c:qcb /n /t:c,%TC% >NULIF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO CLEANBOTIF ERRORLEVEL 2 GOTO CONTINUEIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:CONTINUEecho.echo. Now adding %SD% to the registry ...REGEDIT /S %WD%\%SD%IF NOT ERRORLEVEL 0 GOTO ERRORecho.echo. ... done.REM | Choice /c:c /n /t:c,2 >NULecho.echo. %SE% will run on next boot ...echo.REM | Choice /c:c /n /t:c,2 >NULgoto CLEANBOT:BYPASSecho.echo. Now starting %SE% ...echo.SET SC=SET SN=SET SD=SET TA=SET TC=SET CDROM=START %WD%\%SE%SET SE=SET WD=clsexitgoto END:ERRORecho. An unexpected error has occurred ... aborting automatic installation.PAUSE:CLEANUPSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET WD=SET CDROM=:QUITclsexitgoto END:CLEANBOTSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET CDROM=START %WD%\@Reboot.batSET WD=clsexit:END
KB873374.reg
@Echo Off:INITIALISESET SC=Cleanup temporary batch filesSET SE=@Cleanup.batSET TA=45SET TC=5SET WD=c:\windowsFOR %%Z IN (D E F G H I J) DO IF EXIST %%Z:\setuptip.txt SET CDROM=%%Z:echo.echo. Your computer has finally reached the end of its long, long odyssey ...echo.echo. Please confirm you have all the updates for your computer ASAP.echo.echo. All temporary files will be deleted on next boot if you continue ....echo.:PRESETUPecho.echo. C to Continue now - the computer will reboot afterwardsecho. Q to Quit automatic install ...echo.echo. Choice will default to C in 10 seconds ...echo.Choice /c:qc /n /t:c,10 >NULecho.IF ERRORLEVEL 3 GOTO ERRORIF ERRORLEVEL 2 GOTO CONTINUEIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:CONTINUEecho.echo. Now starting %SC% ...echo.REM | Choice /c:c /n /t:c,2 >NUL:OSTARTecho.echo. Now Checking for Office 2000 installation files ...REM | Choice /c:c /n /t:c,2 >NULIF EXIST c:\Windows\Temp\Office2K\Setup.exe goto OFFICEIF NOT ERRORLEVEL 0 GOTO ERRORecho.echo. ... none found.REM | Choice /c:c /n /t:c,2 >NULecho.goto WSTART:OFFICEecho. Office installation files were found.echo.echo. Do you want to delete the Office 2000 installation files?echo.echo. You may want to keep them to install other parts of Office.echo.echo. K to Keep all the files - location is c:\Windows\Temp\Office2Kecho. D to continue with deletion (default choice) - activates in 10 secondsecho. Q to Quit automatic install ...echo.Choice /c:qdk /n /t:d,10 >NULecho.IF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO SKIPIF ERRORLEVEL 2 GOTO ODELETEIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:ODELETEecho.echo. Deleting files ...echo.REM | Choice /c:c /n /t:c,2 >NULDeltree /Y c:\Windows\Temp\Office2Kecho.echo. ... all files deleted.REM | Choice /c:c /n /t:c,3 >NULecho.goto WSTART:SKIPecho.echo. Office 2000 installation files deletion skipped ...echo.Choice /c:qdk /n /t:d,3 >NUL:WSTARTecho. Now checking for bat files ...IF NOT EXIST c:\Windows\@Acrobat.bat goto NOBATecho.echo. Bat files found.echo.echo. Starting to copy wininit.ini ...Copy %CDROM%\wininit.ini %WD%echo.REM | Choice /c:c /n /t:c,3 >NULecho. finished copying wininit.ini which contains all files for deletion next reboot.echo.REM | Choice /c:c /n /t:c,3 >NULgoto ALLDONE:NOBATecho.echo. At least one of the bat files isn't there which should mean they have all been deleted alreadyecho.REM | Choice /c:c /n /t:c,4 >NUL:ALLDONEecho. All cleanup routines have been run ... that's all folks ...echo.:DONEMENUecho. Computer is set to reboot now ... still wanna do that?echo.echo. C to Continue with reboot in 10 secondsecho. Q to Quit automatic install ...echo.Choice /c:qc /n /t:c,10 >NULecho.IF ERRORLEVEL 3 GOTO ERRORIF ERRORLEVEL 2 GOTO CLEANBOTIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:CLEANUPSET SC=SET TA=SET TC=SET WD=SET CDROM=:QUITclsexitgoto END:CLEANBOTREM | Choice /c:c /n /t:c,2 >NULecho.echo. rebooting now ...SET SC=SET TA=SET TC=SET CDROM=START %WD%\@Reboot.batSET WD=clsexit:END
Wininit.ini
[deletes all the files listed on next reboot]
[this is not my complete version but you'll get the idea.]
@echo offSET SC=DirectX 9.0cSET SN=Flash 7 for IE 6 and Mozilla FirefoxSET SD=@DoFlash.regSET SE=@Flash7.batSET TA=60SET TC=5SET WD=C:\WindowsFOR %%Z IN (D E F G H I J) DO IF EXIST %%Z:\setuptip.txt SET CDROM=%%Z::PRESETUPecho.echo. %SC% setup will automatically start in %TA% seconds ...echo.echo. (The delay is only to allow slower systems to fully load)echo.echo. C to continue nowecho. B to bypass %SC% and start setting up %SN%echo. Q to Quit automatic install ...Choice /c:qcb /n /t:C,%TA% >NULecho.IF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO BYPASSIF ERRORLEVEL 2 GOTO SETUPIF ERRORLEVEL 1 GOTO QUITgoto ERROR:SETUPecho. Now Unpacking and installing %SC% ... this could take a while ...echo.START /W %CDROM%\UPDATES\DirectX\DX9\DX9setup.exeIF NOT ERRORLEVEL 0 GOTO ERRORecho.:QUITMENUecho. %SC% has ended. The system will automatically reboot in %TC% secondsecho.echo. C to Continue now echo. B to Bypass setting %SD% (and stop auto install)echo.     - reboot will still occurecho.     - manually restart with %WD%\%SE%echo. Q to Quit rebooting and stop everythingecho.Choice /c:qcb /n /t:c,%TC% >NULIF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO CLEANBOTIF ERRORLEVEL 2 GOTO CONTINUEIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:CONTINUEecho.echo. Now adding %SD% to the registry ...REGEDIT /S %WD%\%SD%IF NOT ERRORLEVEL 0 GOTO ERRORecho.echo. ... done.REM | Choice /c:c /n /t:c,2 >NULecho.echo. %SE% will run on next boot ...echo.REM | Choice /c:c /n /t:c,2 >NULgoto CLEANBOT:BYPASSecho.echo. Now starting %SE% ...echo.SET SC=SET SN=SET SD=SET TA=SET TC=SET CDROM=START %WD%\%SE%SET SE=SET WD=clsexitgoto END:ERRORecho. An unexpected error has occurred ... aborting automatic installation.PAUSE:CLEANUPSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET WD=SET CDROM=:QUITclsexitgoto END:CLEANBOTSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET CDROM=START %WD%\@Reboot.batSET WD=clsexit:END
@KillMSN.reg
REGEDIT4
; deletes the MSN icon from the desktop after 1st boot to desktop
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\{88667D10-10F0-11D0-8150-00AA00BF8457}]
[-HKEY_CLASSES_ROOT\CLSID\{88667D10-10F0-11D0-8150-00AA00BF8457}]
[-HKEY_LOCAL_MACHINE\Software\CLASSES\CLSID\{88667D10-10F0-11D0-8150-00AA00BF8457}]

Edited by soporific, 14 August 2005 - 10:40 AM.



How to remove advertisement from MSFN

#2
ack-hh

ack-hh

    Newbie

  • Member
  • 43 posts
  • Joined 25-May 05
A few questions/remarks:

- launch.bat & install.bat are missing
- the script refers to ie6sp1.bat, ie6_98.bat is shown; are these files identical?
- update3.bat is shown, but nowhere refered to
- does dx9.bat look similar to ie6sp1.bat (ie6_98.bat)?

Regarding the logon prompt:
fantomcat's hint did the trick for me (add the line e. g. to the OPKInstall section):
; 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"
(maybe this only works if "Windows logon" is used)

Regarding monitor drivers:
I injected the .inf file for my monitor via INFINST into the WIN98 setup folder.
Because my monitor is not 100% DDC(?) compatible it was not
automatically detected by w98. Therefore I took a snapshot before and
after I set up the monitor in the display properties using REGSHOT,
compared these snapshots using REGSHOT, and finally built a .reg file
according to the difference of these two shots.
REGSHOT v1.72: http://www.majorgeek...ownload965.html

HTH
Andreas

Edited by ack-hh, 06 July 2005 - 07:03 AM.


#3
soporific

soporific

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 705 posts
  • Joined 12-June 05
Hi Andreas,

Thankx for the feedback :)

* yes, e6sp1.bat is identical to ie6_98.bat, sorry about that. I've changed the original post.
* the identified missing bat files have been added to original post (i added 3 more)
* @Update3.bat is referred to in @Update2.bat - I didn't post the entire @update2.bat because its identical to @update1.bat except for the posted section. So in the same way @Update1.bat runs @Update2.bat on next reboot, so to for number 3.
* @DX9.bat has now been posted in full so you can see for yourself.
* thanks for those suggestions - I thought I'd already tried the auto logon hack, but I'll give it another go. [this works and code in 1st post has been adjusted]

Cheers.

Edited by soporific, 23 July 2005 - 08:09 PM.


#4
eidenk

eidenk

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,527 posts
  • Joined 28-March 05

REGSHOT v1.72: http://www.majorgeek...ownload965.html


Regshot 1.7.2 Paraglider does output directly in REGEDIT4 format. You may want to try it.
Asus A8V Deluxe - Athlon 64 FX-55 2.6Ghz - 1GB DDRAM 400 - Windows ME (IE 5.5 SP2 Shell) + KernelEx 4.0 and Revolutions Pack 10

#5
soporific

soporific

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 705 posts
  • Joined 12-June 05
Hey y'all

I've nearly reached the end of this project and so I thought I'd add all the interesting info I've come across to this post for others to benefit ...

* The autologon hack posted by ack-hh works so its only the monitor drivers stage that could interrupt the unattended install. I'll adjust the first post to reflect this.

* EDIT: The Following SHOULD NOT BE ATTEMPTED, IT WILL STUFF THINGS UP - it works in under virtual conditions but not very many real world tests. To improve the chances of Windows finding my monitor, I tried substituting all the monitor infs from Windows ME - and it appears to work (ie it doesn't stuff things up like trying to use the ones from Windows XP does) - you'll need to use the INF installer for each of the 13 monitor infs. Just in case you missed the first message, only do the above suggestion if you don't want your monitors to work when entering the GUI stage
[END EDIT].


Just worked it out: there is a way to bypass the monitor drivers stage regardless - when you've started the install process, just switch the monitor off. When Setup gets to the first proper boot up, it doesn't ask for extra monitor drivers cause it can't tell which one you have. It will still ask you for them when you finally boot with the monitor turned on, but at least you can get thru the whole setup process instead of having the process interrupted half way. So, yay, a fully updated and unattended setup is possible!!!

Still, in a perfect world we'd all like to have the monitor on so we can see the magic happen - I'm sure there's a way to direct the system to not search for extra drivers. Can anyone shed some more light on this part of Windows setup?

* Once you have tasted the joys of hex editing, You can customize all the boot menu text in IO.SYS and JO.SYS (these files should be in the boot image) to give your Boot CD extra spice (and to show off to your friends that you can modify all instances of 'Windows' and 'Microsoft' to rather funnier versions)

* It would be quite good to also be able to delete the MSN icon from the desktop automatically. Its annoying that if you forget to delete it before trying to get on the net, a completely unwanted invitation to connect to MSN appears. Apparently the Batch98 utility was designed to achieve this but it doesn't work (even if you just try it without ANY updates at all), and there was also a Dec 2004 KB article that showed how to do it, but that doesn't work either. (Actually it may work but the code was posted without any context - its unclear which other settings need to appear in tandem.) I've also tried RegShot (paraglider version - thanks eidenk) but not extensively, to no avail. [Edit: This problem has been solved]

* I've managed to include Microsoft Office 2000 service pack 3 on my unattended boot CD but its a shame that the process needs to unpack the entire admin installation to install probably only a quarter of it. And the 287MB WinRar archive means that lots of other things I'd hope to include on the CD can't fit (I'd prefer to use a CD rather than a DVD). I was quite overjoyed to find a posting on how to shrink an office installation but the posted suggestions don't seem to work for Office 2K. is there anyway to at least get rid of the obselete IE 5.5 files? Or other suggestions to making the shrink work? (it hangs when I try it.) [Edit: This problem has been solved]

* AND FOR EXTRA SPECIAL BONUS POINTS: I'd also like to automatically set the vcache parameter in Win.ini to the appropriate value based upon the available RAM, does anyone know how to programatically test for the size of RAM, and anyone know how to do the wini.ini adjustment? (my next request will be to ask how to get Windows to do the washing up ...) [edit: d'oh, I meant system.ini]

That's all folks ...

Edited by soporific, 28 July 2005 - 09:03 AM.


#6
eidenk

eidenk

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,527 posts
  • Joined 28-March 05

* It would be quite good to also be able to delete the MSN icon from the desktop automatically.

All the special icons that appear on the desktop are specified in the registry by a GUID value corresponding to a CLSID key (which in turn specifies the icon and the context menu of the icon) under one of those keys :

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace]

Automatically removing any should just be a matter of adding a convenient registry file to batch setup.

Syntax should be (for removing) :

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\GUID Value]

and/or

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\GUID Value]

Edited by eidenk, 18 July 2005 - 06:46 AM.

Asus A8V Deluxe - Athlon 64 FX-55 2.6Ghz - 1GB DDRAM 400 - Windows ME (IE 5.5 SP2 Shell) + KernelEx 4.0 and Revolutions Pack 10

#7
kukris

kukris

    Member

  • Member
  • PipPip
  • 112 posts
  • Joined 28-November 03
Monitor Inf
There are 2 programs (however in german, but it should be understandable), which can make a custom monitor.inf for your monitor:

- flimmer.exe
Neuber
If you know the technical data of your monitor (manual), then you'll don't need that.
This program gives you the following details for your monitor: frequency (horizontal & vertical) and various other info.

- Monitor.Inf Maker
use google
Makes a custom inf-file for your monitor from the technical data you provide.
You can then add your custom inf-file via infinst to your unattended installation.


Delete the MSN icon from the desktop automatically.

Add this to your msbatch.inf:

[RunOnce.BatchDelay]
HKLM,%KEY_RUNONCE%,BatchRun1,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.MSN.Icon 4 %17%\msbatch.inf"


I'd also like to automatically set the vcache parameter in Win.ini

I guess you mean system.ini. Add this to your msbatch.inf:

[UPD.Sys.systemini]
%10%\system.ini, 386Enh, , "32BitDiskAccess=on"
%10%\system.ini, 386Enh, , "32BitFileAccess=on"
%10%\system.ini, 386Enh, , "PagingDrive=C:"
%10%\system.ini, 386Enh, , "PagingFile=C:\PAGEFILE.SYS"
%10%\system.ini, 386Enh, , "MinPagingFileSize=200704"
%10%\system.ini, 386Enh, , "MaxPagingFileSize=200704"
%10%\system.ini, 386Enh, , "WindowUpdateTime=1"
%10%\system.ini, 386Enh, , "LocalLoadHigh=1"
%10%\system.ini, 386Enh, , "VGA MonoText=Off"
%10%\system.ini, 386Enh, , "Text=Off"
%10%\system.ini, 386Enh, , "ConservativeSwapfileUsage=1"
%10%\system.ini, vcache, , "MaxFileCache=32768"
%10%\system.ini, vcache, , "ChunkSize=2048"

[Install]
UpdateInis=UPD.Sys.systemini

You can also modify other files. You must replace the names and number:
%10 = files in your windows dir (system.ini, win.ini...)
%30 = files in C:\ (msdos.sys, autoexec.bat, config.sys)

#8
tentonine

tentonine

    Newbie

  • Member
  • 40 posts
  • Joined 12-January 05

* I've managed to include Microsoft Office 2000 service pack 3 on my unattended boot CD but its a shame that the process needs to unpack the entire admin installation to install probably only a quarter of it. And the 287MB WinRar archive means that lots of other things I'd hope to include on the CD can't fit (I'd prefer to use a CD rather than a DVD). I was quite overjoyed to find a posting on how to shrink an office installation but the posted suggestions don't seem to work for Office 2K. is there anyway to at least get rid of the obselete IE 5.5 files? Or other suggestions to making the shrink work? (it hangs when I try it.)

<{POST_SNAPBACK}>


Check this thread for the answer to the office shrink problem.
http://www.msfn.org/...7&st=0&p=294844

#9
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,859 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
Quite a lot of interesting info.

Thanks,

jaclaz

#10
theuuknown

theuuknown
  • Member
  • 7 posts
  • Joined 12-April 05
the same rules also apply to winME ??
I'd like to have a winME cd like that, not so complicated though...

#11
ack-hh

ack-hh

    Newbie

  • Member
  • 43 posts
  • Joined 25-May 05

I'd also like to automatically set the vcache parameter in Win.ini

I guess you mean system.ini. Add this to your msbatch.inf:

[UPD.Sys.systemini]
%10%\system.ini, 386Enh, , "32BitDiskAccess=on"
%10%\system.ini, 386Enh, , "32BitFileAccess=on"
%10%\system.ini, 386Enh, , "PagingDrive=C:"
%10%\system.ini, 386Enh, , "PagingFile=C:\PAGEFILE.SYS"
%10%\system.ini, 386Enh, , "MinPagingFileSize=200704"
%10%\system.ini, 386Enh, , "MaxPagingFileSize=200704"
%10%\system.ini, 386Enh, , "WindowUpdateTime=1"
%10%\system.ini, 386Enh, , "LocalLoadHigh=1"
%10%\system.ini, 386Enh, , "VGA MonoText=Off"
%10%\system.ini, 386Enh, , "Text=Off"
%10%\system.ini, 386Enh, , "ConservativeSwapfileUsage=1"
%10%\system.ini, vcache, , "MaxFileCache=32768"
%10%\system.ini, vcache, , "ChunkSize=2048"

[Install]
UpdateInis=UPD.Sys.systemini

NEVER set a maximum for the swap file unless you REALLY need to do so.
NEVER use ConservativeSwapfileUsage=1 unless you REALLY need to do so.
(Why should one downgrade to the legacy W95 mode of swap handling?)
Naming the swap file Pagefile.sys (only) makes sense when the swap file
is shared with another OS which uses a swap file with that name.
The value for MaxFileCache might be way too small for many machines -
individual adjustment is required.
The ChunkSize setting is questionable.

#12
ack-hh

ack-hh

    Newbie

  • Member
  • 43 posts
  • Joined 25-May 05

* It would be quite good to also be able to delete the MSN icon from the desktop automatically. Its annoying that if you forget to delete it before trying to get on the net, a completely unwanted invitation to connect to MSN appears. Apparently the Batch98 utility was designed to achieve this but it doesn't work (even if you just try it without ANY updates at all), and there was also a Dec 2004 KB article that showed how to do it, but that doesn't work either. (Actually it may work but the code was posted without any context - its unclear which other settings need to appear in tandem.) I've also tried RegShot (paraglider version - thanks eidenk) but not extensively, to no avail.

<{POST_SNAPBACK}>

I have managed to remove the MSN icon, but at the ultimate stage of the setup
process (after logon) two RunOnce jobs are active which put back that @*~!§$ icon :(

#13
eidenk

eidenk

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,527 posts
  • Joined 28-March 05
That's the CLSID for MSN on WinME :

[HKEY_CLASSES_ROOT\CLSID\{88667D10-10F0-11D0-8150-00AA00BF8457}]
@="Setup MSN Internet Access"

Therefore I would try to add the following registry file to batch setup on WinME not to have the MSN icon :

REGEDIT4

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\88667D10-10F0-11D0-8150-00AA00BF8457]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\88667D10-10F0-11D0-8150-00AA00BF8457]

[-HKEY_CLASSES_ROOT\CLSID\{88667D10-10F0-11D0-8150-00AA00BF8457}]

I have managed to remove the MSN icon, but at the ultimate stage of the setup process (after logon) two RunOnce jobs are active which put back that @*~!§$ icon

If the registry files that are added to batch setup are processed after everything else as it should, the above registry file should automatically remove the MSN icon from the desktop. Provided of course the MSN CLSID is identical on 98 as the one on ME. Otherwise adapt it. Try it and tell me if it works.
Asus A8V Deluxe - Athlon 64 FX-55 2.6Ghz - 1GB DDRAM 400 - Windows ME (IE 5.5 SP2 Shell) + KernelEx 4.0 and Revolutions Pack 10

#14
soporific

soporific

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 705 posts
  • Joined 12-June 05
OK, lots of info still coming in ...

re: deleting the MSN icon:
Thanks for all the suggestions - I only got it to work after setup finishes. I tried adding it to run after Internet Explorer 6 sp1 finishes (which is the last piece of setup before the first boot to the desktop) but I'm guessing it gets added back as a configuration process as the first desktop is loading up. So I've added it to the start of @media71.bat which is the first app that installs after setup. The 1st post has been adjusted.

re: system.ini
Thanks heaps for those [386Enh] settings, Kukris, but it seems ack-hh has taken issue with them. Could you either post a link to somewhere that explains the settings you've suggested, or could you provide a short explanation of each one?

kukris: the only problem I can see is that you can't include a setting for MaxFileCache if you don't know in advance the amount of RAM that is going to be present. For the same reason I'm ignoring any suggestions regarding custom monitor infs, or solutions for a particular monitor (I want it to work for whichever monitor is present), the suggestion for the MaxFileCache is not helpful unless we can somehow determine how much RAM is present. I searched quite a bit for a solution and it appears that its only easily possible in NT or higher. Someone please tell me I'm wrong.

NEVER set a maximum for the swap file unless you REALLY need to do so.
NEVER use ConservativeSwapfileUsage=1 unless you REALLY need to do so.
(Why should one downgrade to the legacy W95 mode of swap handling?)
Naming the swap file Pagefile.sys (only) makes sense when the swap file
is shared with another OS which uses a swap file with that name.
The value for MaxFileCache might be way too small for many machines -
individual adjustment is required.
The ChunkSize setting is questionable.

Well, I'd really like to know why for nearly all your points, ack-hh (because I'm curious not because I disagree!) The only point I can sort of agree with is the one about MaxFileCache but only because of the point I made above, in that we need to know the amount of RAM before automatically setting it. Actually, the setting of 32768 is the perfect setting for 128MB of RAM. Typically, the main reason to install Windows 98 (over Win XP) is because the intended machine has less than 96MB of RAM - so basically what you are saying is that the value for MaxFileCache is too low for machines with more than 128MB RAM. I seriously doubt you would notice the difference if you had 32768 for MaxFileCache with a machine with, say, 512MB RAM. You'd have to be pushing it to the very limit in some way that I can't even think of to need it. What makes you say what you wrote? And I think everyone would benefit if you elaborated further with reasons for why you said what did. Don't take this the wrong way, I think all your comments have been very useful so far!

One question I do have now regards the ConservativeSwapfileUsage=1 setting. Everywhere I've read suggests this is an excellent setting to use for machines with more than 64MB RAM. And you wrote: 'when would you ever NEED to?' - I can't think of a situation where the computer woudldn't work if you didn't include it ... I thought the purpose of including it was to improve performance. I've noticed much less swap file activity with it turned on.

Also, why is naming the page file 'pagefile.sys' a problem? In an ideal world, an assertion would be followed by a reason and even better, an example. Do you have a reason and/or an example why we shouldn't give the page file a name??

And, lastly, thanks for the post re: shrinking office - it worked perfectly - my office archive file is only 65Mb!

[The code for deleting the MSN icon has been moved to the first post]

Edited by soporific, 21 July 2005 - 08:57 PM.


#15
kukris

kukris

    Member

  • Member
  • PipPip
  • 112 posts
  • Joined 28-November 03
The settings were not meant to copy blindly, but meant to be examples.
These settings are specific to my machine with 512 MB RAM and Windows 98SE + W2K installed.

Anyway here comes the explanation:

PagingDrive=C:
PagingFile=C:\PAGEFILE.SYS
Specifies the drive and name for the swap file. If you have a faster drive than your OS is installed you can tell Windows to use another partition. Changing the name makes only sense if you use another NT-OS (NT, W2K, XP) because they use this name and location by default. So you can save space by only having one swap file.


MinPagingFileSize=200704"
MaxPagingFileSize=200704
This sets the minimum and maximum of the swap file. You don't have to use them both.
If you use the same size of minimum and maximum Windows doesn't have to calculate each time the size of the swap file.
Disadvantage: If you need more than that you can get errors (insufficient swap file size).


WindowUpdateTime=1
Specifies the refresh rate in mili seconds for a Dos-Box (not fullscreen). If you have a real slow computer you should use other values or skip it.


LocalLoadHigh=1
Other programs than Windows can use Upper Memory Blocks (UMB). Can crash Dos-Box


VGAMonoText=Off
The space between VGA and MonoText in my previous post was wrong, just remove it.
If you never use the VGA adapter's monochrome mode, you can free up an extra memory block.


Text=Off
I don't know what it does, but it should free up 2KB.


ConservativeSwapfileUsage=1
By default Windows 98 loads some programs in the swap file and not all in RAM. Windows 95 however loads all programs in RAM until it's full. So use this setting only if you have much RAM and a fast hard drive.


MaxFileCache=32768
Sets the maximum amount of RAM that can be used by Windows. By default (without special service packs / patches) Windows cannot deal with more than 512 RAM.

To calculate the setting for your machine use this formula:
RAM (in MB) * 1024 * 0.7 (round up to whole numbers)

up to 128 MB no limitation necessary
up to 256 MB 174080
up to 384 MB 261120
up to 512 MB 348160
> 512 MB 524288


ChunkSize=2048
Block size of VCache, Depending on your RAM other values may apply.

#16
iWindoze

iWindoze

    Member

  • Member
  • PipPip
  • 122 posts
  • Joined 07-June 05

Hey there,

Some of us, for whatever reason, still have the need to re-install Windows 98. And we absolutely hate having to go through all the prompts, enter in the product keys, get the updates, etc. Wouldn't it be good to just stick the CD in and at the very end, have everything up-to-date? For Win98se this means:

1) a full upgrade of Internet Explorer to version 6 sp1
2) 26 'critical' system updates (some of them for IE6 sp1 which makes things tricky)
3) a DirectX update to 9.0c (but Microsoft doesn't officially allow silent installs for DX9)
4) install the basic programs you know you were going to install anyway, eg Office, etc.

Well, here's how you do it ...


This looks very intresting. I'll be giving it a shot soon, once I get all my updates
saved and ready for packaging. What I'd like to know is if it's possible to somehow
follow through with making 98SE2ME a part of this automation, and what the effects
of doing so would be on your updates? I mean, even if I just run the 98SE2ME
installer after installing 'normally' what effects does this have on my state of
updatednes? Do I need to start substituting the WinME versions of these updates?

More information would definately be appreciated!

--iWindoze

PS: Thanks for all the hard work you've obviously put into doing this;
then deciding to sahre it with the rest of us.

EDIT - added the missing 'thank you' PS:
to

Edited by iWindoze, 24 July 2005 - 05:40 PM.


#17
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag
This is great reasearch by soporific and all of you!
Thanks for posting all the info :thumbup
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#18
soporific

soporific

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 705 posts
  • Joined 12-June 05
Hey prathapml, thanks for thanking us - we try our best ...

Thanks for redoing the first post, codeboxes rock! There's ONE thing, however:

There's an issue when using CODEBOX instead of CODE when posting code. In my autoexec.bat I've got some code that puts a bracket around C and also around R ie ( C ) and ( R ) (but without the spaces) but it gets changed to a copyright symbol (a symbol I find offensive) and the Registered (?) symbol. Is this a known issue? I would think not, as it doesn't happen when using CODE

I'll recreate the issue here to save you looking - Both code boxes should be identical, the only difference is the first code uses CODE and the second uses CODEBOX

 

©reate something or other
®eview the code for codebox

Edited by soporific, 23 July 2005 - 08:28 PM.


#19
iWindoze

iWindoze

    Member

  • Member
  • PipPip
  • 122 posts
  • Joined 07-June 05
Hi soporific,

Is there any chance you could link to a site with more information?

I know that there's a link to one such type site in your first post, but
that site seems more dedicated to the making of those 'Xin1' type
boot cds you see everywhere than on how to accomplish what you're
doing. I've tried several times to figure out what to so with your code
and there seems to be some mising information that while obvious to
you is baffling the 'eck out of me when I try to follow in your footsteps.

Could you post a directory structure? I can see from your posted code
that you expect :

<---ROOT
---------------UPDATES
-------------------------->DirectX
------------------------------------->DX9
--------IE6
--------mplayer


But where do the actual updates go, where is the WinSetup directory, ect?
As I've already asked in MGX's 98SE2ME topic, is it possible to pipe the
upgrade version (which I have) to look in a specific directory for Win3.x
and let it continue on from there? Where do the actual code files you've
provided go? With the exception of perhaps the autoexec.bat and config.sys
I'm lost!

Also, since I use Grisoft AVG Free and Firefox 1._insert number here_ myself
is it possible you could add that example of silent install back to the topic? Also,
just because I'm curious about such things, is it possible to use the MSBATCH.INF
file to selective not install IE5.x before upgrading to IE6SP1 or is it required to
be there as a dependancy?

Please, I need more information if I'm to try and follow in your footsteps here;
if its not possible to post here could you at least point me in the right directions?

--iWindoze

PS Thanks again for sharing with us as much as you have!

#20
soporific

soporific

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 705 posts
  • Joined 12-June 05

Is there any chance you could link to a site with more information?
[snip]
Please, I need more information if I'm to try and follow in your footsteps here;
if its not possible to post here could you at least point me in the right directions?

--iWindoze

PS Thanks again for sharing with us as much as you have!

<{POST_SNAPBACK}>


Yep OK give me a day to write some more detail - I do agree that the link to the site I posted doesn't totally help you out - I'll make sure I fill in all the gaps ...

Probably the most trouble I had was getting the boot image to work. The best solution would be for me to upload a package containing all the legally distributable files that I use. I have no idea if this board has a provision for that, or maybe someone can kindly host it for everyone ... I'll check for myself after I post, but if there's anyone that can host a file that's probably going to be under 5 MB can they speak up now (or forever hold their peace).

At the very least, I'll post more info on CD structure and application switches very soon, so stay tuned !!

Edited by soporific, 24 July 2005 - 08:27 PM.


#21
wizardofwindows

wizardofwindows

    Wizard of Windows

  • Member
  • PipPipPip
  • 443 posts
  • Joined 17-June 05
:hello: how bout just the batch inf with the eula and product key popups hidden that be sweet cause a o instead of a 1 doesnt work and attach batch 98 inf here.plz

#22
ack-hh

ack-hh

    Newbie

  • Member
  • 43 posts
  • Joined 25-May 05

:hello: how bout just the batch inf with the eula and product key popups hidden that be sweet
cause a o instead of a 1 doesnt work and attach batch 98 inf here.plz

<{POST_SNAPBACK}>

It has already been posted in THIS thread. Read soporific's 1st article and have a look at the OPKInstall section ... :no:

#23
iWindoze

iWindoze

    Member

  • Member
  • PipPip
  • 122 posts
  • Joined 07-June 05

:hello: how bout just the batch inf with the eula and product key popups hidden that be sweet
cause a o instead of a 1 doesnt work and attach batch 98 inf here.plz

<{POST_SNAPBACK}>

It has already been posted in THIS thread. Read soporific's 1st article and have a look at the OPKInstall section ... :no:

<{POST_SNAPBACK}>



Yes, and as has been pointed out before its simply not ENOUGH information.

I'd rather he post a small zip file containing ALL his files (with edits at the points
where serial numbers would be, along with a more comprehensive directory
description than what has been provided, than the heaviliy edited listing we
have now. I have no issues with doing research or slagging through stuff to
find info; however like others I see no reason to play needle in a haysack
when someone stands by with the required information at hand. All that Timeless
has said is that (like others) he's not been able to get these instructions to work
and he included the obligatory no warez\serialz being asked for disclaimer.

I've no doubt that soporific will get around to posting more info once he's had a
chance, but don't see any point in putting people down just for asking for updates.

--iWindoze (who waits patiently despite checking in with this topic whenever
he's online...on the two and a half days a week he has internet access.)

#24
wizardofwindows

wizardofwindows

    Wizard of Windows

  • Member
  • PipPipPip
  • 443 posts
  • Joined 17-June 05
:hello: hey windose what i really want is the batch inf with just the eula and popup elimated i can do the rest i did a batch but the eula and prompt 4 key comes up if u could included the code into batch nothing else maybe no msn icon it would be great.thz in advance.

Edited by timeless, 28 July 2005 - 06:46 AM.


#25
soporific

soporific

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 705 posts
  • Joined 12-June 05
Welcome to version 2 of this project. I've only just finished it and I would normally take my time to compile a post due to the complexity of providing a lot of information, but it seems there's a few people hanging out for the solution, so here you go ... this post is a bit over the place, I'll fix it up tomorrow after some sleep - its the middle of the morning and quite freezing ---- most of you are going 'huh?'

What's different (briefly for now, more detail after some sleep):
* The installation files now get copied to the hard drive and are then used to perform the installation. The 2 reasons are: * to allow for unlimited choices of installation components and applications, * the bug in Windows 98 where the CD drive is unaccessible while a hardware installation is occurring thus preventing access to Windows setup files. This only happens rarely but it p***es me off when it happens and the way around it is to have the setup files on the hard disk.
- the downside of this is that for some reason, windows setup can't see the CD drive when MSBATCH.INF is running the application installs that are listed in the RUNONCESETUP section. So the workaround is to copy those files to the hard disk first as well. Does anyone know about this issue?

* I've included the core of the 98 to Me update. The files updated are: USER32.DLL, USER.EXE, and Explorer.exe

* My CD boot menu now offers the choice to install the updated Lite version with only the very basic extra apps (like the must must must have Firefox browser) or the full super duper version with all the apps. To achieve this easily, during the execution of AUTOEXEC.BAT I change the version I want to select (in my case @batch-a.inf or @batch-u.inf) and rename it to MSBATCH.INF. I have only provided the link for one of the boot images so you'll need to make your own 98ue.ima. You do this by duplicating 98ae.ima, extracting the autoexec.bat, and editing it at all instances of @batch-a.inf (change it to @batch-u.inf). If you don't want to do this, change your cdshell.ini file accordingly.

The rest of the differences are minor (I think, things are getting a bit hazY)

instructions:
1) Make sure you have or do all of the following:
* Windows 98 second edition operating system files with a product key that works. I don't know if this will work for the original edition.
* All the windows updates from Microsoft's Downloads page.
* These (A & B) downloads courtesy of mdgx which are the core of the 98 2 Me update
* SUFFICIENT drive space (2+ GB to be safe)
* Enable "Show Hidden Files & Folders", Disable "Hide extensions for known file types", Disable "Hide protected operating system files (Recommended)"
* WinImage 6.10
* Hex Workshop 4.23
* CDIMAGE 2.47
* CD Shell 2.0.16
* My boot image file
* My directory structure
* Highly recommended (but optional): - Daemon Tools 3.47 (virtual cd/dvd-rom emulator)
* Highly recommended (but optional): - VMware Workstation 4.0.5 or Virtual PC 2004
* A CD burning program like Nero.

2) Create the following directory structure starting at 98BootCD (the root folder):
Posted Image

3)
* Install WinImage and your hex editor.
* Extract the CD Shell files into your structure as thus:
Posted Image

This is my cdshell.ini
boot:clsprint "\n"print "\n"print "Press Enter to boot from CD ... \n"getkey 5 boot 0x80if $lastKey == key[enter]; then goto menuif $lastKey == key[esc]; then boot 0x80# When no key found...goto boot# Printing the Interfacemenu:set textColor= color[grey on black]set boldColor= color[cyan on black]clsprint c "\ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n"print c "\  Windows 98 Fully Updated & Unattended Installation Boot CD v1.0\n\n"print c "\          by soporific <a_good_soporific@hotmail.com> \n"print c "\ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n"set textColor= color[cyan on black]print "1)  Basic version of Windows 98 Fully Updated Edition \n"print "2)  Lite version of Windows 98 Fully Updated Edition \n"print "3)  Full version of Windows 98 Fully Updated Edition \n"print "\n"print "P)  Partition Magic 8 \n"set textColor= color[grey on black]print "Q)  Quit to Command Prompt \n"print "R)  Reboot \n"print "ESC) Boot 1st Harddisk \n"print c "\n"set textColor= color[cyan on black]print "The hard disk will automatically boot in 30 seconds ... \n"MainKey:getkey 30 boot 0x80if $lastKey == key[1]; then memdisk /98se.IMAif $lastKey == key[2]; then memdisk /98ue.IMAif $lastKey == key[3]; then memdisk /98ae.IMAif $lastKey == key[p]; then memdisk /pmagic8.IMAif $lastKey == key[q]; then endif $lastKey == key[r]; then rebootif $lastKey == key[F1]; then goto Helpif $lastKey == key[esc]; then boot 0x80end

As for where the rest of the stuff goes, the code is actually VERY explicit about this. Really, is a simple method of deductive reasoning to match up where to put which file into what directory. But, because I know its hard enough keeping sane from all the lies on TV ... here's a break from extra thinking:
Posted Image

and
Posted Image

4) Explanations for all the new code and method and everything else under the sun will be added when I've had some sleep. I'll write a short bit now, but more in depth reasoning in about 6 hours.



5) Here's some of the code ... I can't finish it all tonight, so here's what I've done so far, just grab this zip file for all the code files I use.

Config.sys
autoexec.bat
@ECHO OFFset EXPAND=YESSET DIRCMD=/O:Nclsset temp=c:\set tmp=c:\path=%CDROM%:\;a:\IF "%config%"=="G_DISK" goto GDISKMENUIF "%config%"=="SETUP_CD" goto AUTOSETUPIF "%config%"=="FOR_MAT" goto AUTOFORMATecho. Well that was weird. You shouldn't see this ... (error 1)goto QUIT:AUTOFORMATLH MSCDEX.EXE /D:mscd001 /L:%CDROM%set CDROM=FOO23FINDCD.EXEif "%CDROM%"=="FOO23" goto NOCDROM%CDROM%:echo.echo (Q)uick format, (F)ull format, or (S)top everythingecho.echo Quick format will default in 5 seconds ...echo.choice /c:qfs /n /t:q,5 > NULif errorlevel 4 goto ERRORif errorlevel 3 goto QUITDOSif errorlevel 2 goto FFORMATif errorlevel 1 goto QFORMATecho. Well that was weird. You shouldn't see this ... (error 2):QFORMATecho QUICK formating drive C: ...echo.%CDROM%:choice /c:d /n /t:d,1 > NULformat c: /q /autotest /ugoto CFORMAT:FFORMATecho FULL formating drive C: ...echo.%CDROM%:choice /c:d /n /t:d,1 > NULformat c: /autotest /u:CFORMATecho.echo format complete.goto STARTSETUP:AUTOSETUPLH MSCDEX.EXE /D:mscd001 /L:%CDROM%set CDROM=FOO23FINDCD.EXEif "%CDROM%"=="FOO23" goto NOCDROM%CDROM%:IF EXIST c:\setuptip.txt goto NODRIVE >NULIF NOT ERRORLEVEL 0 goto ERROR:STARTSETUPIF EXIST c:\Win98 goto KOPYFILESchoice /c:d /n /t:d,2 > NULecho.echo Now creating setup files directory ...echo.choice /c:d /n /t:d,3 > NULIF NOT EXIST C:\Win98\nul MD C:\Win98echo C:\Win98   has been createdchoice /c:d /n /t:d,1 > NULIF NOT EXIST C:\TempFile\nul MD C:\TempFileecho.echo C:\TempFile   has been createdchoice /c:d /n /t:d,1 > NULecho.echo ... All done.choice /c:d /n /t:d,3 > NUL:KOPYFILESecho.IF EXIST C:\TempFile\ACROBAT\ACROBAT5.EXE goto KGOINGecho.Now copying installation files to the hard drive ...echo.IF EXIST D:\setuptip.txt XCOPY32 D:\files c:\TempFile /E /YIF EXIST E:\setuptip.txt XCOPY32 E:\files c:\TempFile /E /YIF EXIST F:\setuptip.txt XCOPY32 F:\files c:\TempFile /E /YIF EXIST G:\setuptip.txt XCOPY32 G:\files c:\TempFile /E /YIF EXIST H:\setuptip.txt XCOPY32 H:\files c:\TempFile /E /YIF NOT EXIST C:\TempFile\ACROBAT\ACROBAT5.EXE goto NOFILESecho.echo All files under C:\TempFile will be automatically deleted at the very end of setup.echo.echo They can all be easily found on the CD if needed.choice /c:d /n /t:d,3 > NUL:KGOINGIF EXIST C:\Win98\Setup.exe goto RSTARTecho Now copying installation files to the hard drive ...echo.choice /c:d /n /t:d,3 > NULIF EXIST D:\setuptip.txt COPY D:\win98\*.* c:\Win98IF EXIST E:\setuptip.txt COPY E:\win98\*.* c:\Win98IF EXIST F:\setuptip.txt COPY F:\win98\*.* c:\Win98IF EXIST G:\setuptip.txt COPY G:\win98\*.* c:\Win98IF EXIST H:\setuptip.txt COPY H:\win98\*.* c:\Win98IF EXIST C:\Win98\Setup.exe goto RSTARTecho.echo uh oh, something went wrong again ... can't find the setup files. This means ...echo.choice /c:d /n /t:d,3 > NULecho Sorry, can't continue ... quitting to DOS. Good luck!!GOTO QUIT:RSTARTecho Setup files now exist on the hard drive in C:\Win98choice /c:d /n /t:d,1 > NULecho.echo Please keep them there for future application installationschoice /c:d /n /t:d,3 > NULecho.echo Renaming @batch-u.inf to msbatch.infchoice /c:d /n /t:d,3 > NULREN C:\Win98\@batch-u.inf msbatch.infecho.echo ...Done.choice /c:d /n /t:d,3 > NULIF NOT EXIST C:\Win98\msbatch.inf goto NOINFecho.echo.Now installing Windows 98 fully updated edition ...echo.C:\Win98\SETUP.EXE /ie /is /nf /nm /nrgoto QUIT:NOINFecho The rename didn't workgoto QUIT:NOFILESecho The extra application setup files didn't seem to copy ... wanna continue with Windows setup anyway?echo.echo. Y or N?  (No will default in 10 seconds)choice /c:ny /n /t:n,10 > NULif errorlevel 3 goto ERRORif errorlevel 2 goto KGOINGif errorlevel 1 goto QUITDOSecho. Well that was weird. You shouldn't see this ... (error 2)goto QUIT:NOCDROMecho.echo The Windows 98 Setup files were not found.echo The CD or CD Drive may be damaged or an unforseen issue has occurred - try rebooting at least onceecho You may be able to access the CD drive ... echo If so, run  setup.exe X:\msbatch.inf  (where 'X' is the letter of your cd drive)GOTO QUIT:NODRIVEecho.echo No disk partitions were found.echo.echo Either your hard drive(s) are not connected properly, or not yet partitioned.echo.goto MENUONLY:GDISKMENULH MSCDEX.EXE /D:mscd001 /L:%CDROM%set CDROM=FOO23FINDCD.EXEif "%CDROM%"=="FOO23" goto NOCDROM%CDROM%::MENUONLYecho.echo Please choose one of the following:echo.echo. ©reate & activate a primary partition using the entire 1st hard drive ... Cecho.    - this will reboot the computer afterwardsecho.echo. (D)isplay the computer's current physical hard drive(s) status .............Decho.    - only the first disk information will display. Use FDISK for othersecho.echo. (Q)uit to DOS with CD-ROM support ......................................... Qecho.echo. ®eboot the computer ..................................................... Recho.choice /c:qrdc /n " Please choose: " >NULif errorlevel 4 goto CREATEif errorlevel 3 goto DISPLAYif errorlevel 2 goto REEBOOTif errorlevel 1 goto QUITDOSecho. Well that was weird. You shouldn't see this ... (error 3)goto QUIT:CREATEecho.Choice /c:yn " Are you sure you want to continue? "if errorlevel 2 goto MENUONLYgdisk 1 /cre /pri /for /yecho.echo ... partition created and set active.choice /c:delay /n /t:d,5 > NULgoto REEBOOT:DISPLAY%CDROM%:echo.gdisk 1echo.PAUSEclsgoto MENUONLY:REEBOOTreboot.comgoto QUIT:QUITDOS%CDROM%::QUITSet CDROM=

** UPDATE **** UPDATE **** UPDATE **** UPDATE **** UPDATE **** UPDATE **

The @Update1.bat file included in the zip file is wrong - here is the correct code:

@echo off:INITIALISESET SC=Update Pack 1SET SN=Update Pack 2SET SD=@DoUpd2.regSET SE=@Update2.batSET TA=30SET TC=10SET WD=c:\win98FOR %%Z IN (D E F G H I J) DO IF EXIST %%Z:\setuptip.txt SET CDROM=%%Z::PRESETUPecho.echo. %SC% will automatically start in %TA% secondsREM | choice /c:delay /n /s /T:c,2 >NULecho.echo. As as July 24 2005 there are 26 critical and security updates to install ...echo.echo. These will be installed in 3 stages with the computerecho. rebooting after each one has finished. Please be patient ...REM | choice /c:delay /n /s /t:d,2 >NULecho.echo.echo. C to Continue now and start %SC%echo. Q to stop everythingecho.Choice /c:qc /n /t:c,%TC% >NULecho.IF ERRORLEVEL 3 GOTO ERRORIF ERRORLEVEL 2 GOTO SETUPIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:SETUPecho. Now installing %SC% ...REM | Choice /c:c /n /t:c,2 >NULecho.for %%P in (KB811630 KB896358 KB888113 KB891711 KB891781 KB823559 q329115 q323172 q323255 q259728 q245729 q313829 q256015 q238453) DO START /W %WD%\@Install.bat %%PIF NOT ERRORLEVEL 0 GOTO ERRORecho.echo. ... all done.REM | Choice /c:c /n /t:c,2 >NULecho.:QUITMENUecho. %SC% has ended. The system will automatically reboot in %TC% secondsecho.echo. C to Continue now echo. Q to Quit rebooting and stop everythingecho.Choice /c:qcb /n /t:c,%TC% >NULIF ERRORLEVEL 4 GOTO ERRORIF ERRORLEVEL 3 GOTO RBOOTIF ERRORLEVEL 2 GOTO CONTINUEIF ERRORLEVEL 1 GOTO CLEANUPgoto ERROR:CONTINUEecho.echo. Now adding %SD% to the registry ...REGEDIT /S %WD%\%SD%IF NOT ERRORLEVEL 0 GOTO ERRORecho.echo. ... done.REM | Choice /c:c /n /t:c,2 >NULecho.echo. %SE% will run on next boot ...echo.REM | Choice /c:c /n /t:c,2 >NULgoto RBOOT:BYPASSecho.echo. Now starting %SE% ...echo.SET SC=SET SN=SET SD=SET TA=SET TC=SET CDROM=START %WD%\%SE%SET SE=SET WD=clsexitgoto END:ERRORecho. An unexpected error has occurred ... aborting automatic installation.PAUSE:CLEANUPSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET WD=SET CDROM=:QUITclsexitgoto END:RBOOTSET SC=SET SN=SET SD=SET SE=SET TA=SET TC=SET CDROM=START %WD%\@Reboot.batSET WD=clsexit:END

Edited by soporific, 07 August 2005 - 01:55 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users