Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows 98 batch file

Status
Not open for further replies.

hybridspyda

Technical User
May 23, 2005
20
0
0
GB
i have created a, what i thought to be, "perfect batch file"... i copy the win98 files and then copy the batch file from a floppy to the same folder so it reads it as it is in setup, unfortunatly, not so far into the setup a window pops up saying "the file 'sucatreg.exe' on windows 98 second edition cd-rom cannot be found" does this mean i would have to copy the whole cd to the hard drive to bypass this? or is there a different way i can avoid the error?
 
Sounds more like there is a problem in the setup file. It shouldn't be accessing the CD.
You could try putting the root files from the CD in the directory and the win subdirectory under it and see if the root setup will run correctly.
It does not require the whole CD.
Why a batch file? Once you have the install stuff on the hard drive you can run setup directly.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
If you are trying to run setup, simply xcopy the cab files to your hard disk, make sure the hard disk is bootable, then reboot off the hard drive and run setup.

Matt J.

Please always take the time to backup any and all data before performing any actions suggested for ANY problem, regardless of how minor a change it might seem. Also test the backup to make sure it is intact.
 
this is what i did to copy the files using the win98 cd:-
(at startup when laptop stops at c:/)
c:/md win98
c:/win98/d:
d:/cd win98
d:/win98/copy *.* c:
(then copies files over to c:)
then i then switch to my win98 boot disk where my batch.inf file is located...
a:/copy msbatch.inf c:
(this copies the batch file to my setup directory...)
then goto c: ...
c:/win98/setup
this runs setup, and because my batch file is located within the setup folder the setup locates this pre-configured information and 'should', if it was a 'perfect' batch file, be unattended and perfect... BUT i get this window that comes up and stops the installation... does that mean there is a problem with my batch file?
 
Luckily I found that it was a problem with my batch file that i had created... this is the batch file i now use...

; MSBATCH.INF
;
; Copyright (c) 1995-1998 Microsoft Corporation.
; All rights reserved.
;

[BatchSetup]
Version=3.0 (32-bit)
SaveDate=08/04/04

[Version]
Signature = "$CHICAGO$"
AdvancedINF=2.5
LayoutFile=layout.inf

[Setup]
Express=1
InstallDir="c:\windows"
InstallType=3
ProductKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
EBD=0
ShowEula=0
ChangeDir=0
OptionalComponents=1
Network=1
System=0
CCP=0
CleanBoot=0
Display=0
DevicePath=0
NoDirWarn=1
TimeZone="Greenwich Mean Time"
Uninstall=0
NoPrompt2Boot=1

[System]
Locale=L0409
SelectedKeyboard=KEYBOARD_00000409

[NameAndOrg]
Name="Bach"
Display=0

[Network]
ComputerName="P3500"
Workgroup="BACHNET"
Display=0
PrimaryLogon=Windows
Protocols=MSTCP
Security=SHARE

[MSTCP]
LMHOSTS=0
DHCP=1
DNS=0
WINS=D

[OptionalComponents]
"Accessibility Options"=0
"Accessibility Tools"=0
"Briefcase"=0
"Calculator"=0
"Desktop Wallpaper"=0
"Document Templates"=0
"Games"=0
"Imaging"=0
"Mouse Pointers"=0
"Paint"=0
"Quick View"=0
"Windows Scripting Host"=1
"WordPad"=0
"Address Book"=0
"Dial-Up ATM Support"=0
"Dial-Up Networking"=0
"Dial-Up Server"=0
"Direct Cable Connection"=0
"HyperTerminal"=0
"Microsoft Chat 2.5"=0
"NetMeeting"=0
"Phone Dialer"=0
"Virtual Private Networking"=0
"Baseball"=0
"Dangerous Creatures"=0
"Inside your Computer"=0
"Jungle"=0
"Leonardo da Vinci"=0
"More Windows"=0
"Mystery"=0
"Nature"=0
"Science"=0
"Space"=0
"Sports"=0
"The 60's USA"=0
"The Golden Era"=0
"Travel"=0
"Underwater"=0
"Windows 98"=0
"Desktop Themes Support"=0
"Internet Connection Sharing"=0
"Microsoft Wallet"=0
"Personal Web Server"=0
"Web Publishing Wizard"=0
"Web-Based Enterprise Mgmt"=0
"Microsoft Outlook Express"=0
"Baltic"=0
"Central European"=0
"Cyrillic"=0
"Greek"=0
"Turkish"=0
"Audio Compression"=1
"CD Player"=0
"Macromedia Shockwave Director"=0
"Macromedia Shockwave Flash"=0
"Multimedia Sound Schemes"=0
"Sample Sounds"=0
"Sound Recorder"=0
"Video Compression"=1
"Volume Control"=1
"America Online"=0
"AT&T WorldNet Service"=1
"CompuServe"=0
"Prodigy Internet"=0
"The Microsoft Network"=0
"Additional Screen Savers"=0
"Flying Windows"=0
"OpenGL Screen Savers"=0
"Backup"=0
"Character Map"=0
"Clipboard Viewer"=0
"Disk compression tools"=0
"Drive Converter (FAT32)"=0
"Group policies"=0
"Net Watcher"=0
"System Monitor"=0
"System Resource Meter"=0
"Web TV for Windows"=0
"WaveTop Data Broadcasting"=0

[Printers]

[InstallLocationsMRU]

[Install]
AddReg=OPKInstall,RunOnce.BatchDelay,Run.Installed.Components,Skip.PCMCIA.Wizard,Registry.WinUpdate,Apps.Install

[RunOnce.BatchDelay]
HKLM,%KEY_RUNONCE%,BatchRun1,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.Nethood.Icon 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun2,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.MSN.Icon 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun3,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.Welcome 4 %10%\msbatch.inf"
HKLM,%KEY_RUNONCE%,BatchRun4,,"%25%\rundll.exe setupx.dll,InstallHinfSection Delete.Regwiz 4 %10%\msbatch.inf"

[Run.Installed.Components]
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,,,">Batch 98 - General Settings"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,StubPath,,"%25%\rundll.exe setupx.dll,InstallHinfSection Installed.Components.General 4 %10%\msbatch.inf"
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,,,"ICW"
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\BatchSetupx,StubPath,,"%24%\progra~1\intern~1\connec~1\icwconn1 /restoredesktop
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,,,">Batch 98 - Advanced Settings"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,StubPath,,"%25%\rundll32.exe advpack.dll,LaunchINFSection %10%\msbatch.inf,Installed.Components.Advanced"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,,,">Batch 98 - Windows Update"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,StubPath,,"wupdmgr.exe -shortcut"

[Installed.Components.General]
AddReg=Mydocs.Icon, Nethood.Icon, Browser.Settings, Shell.Prep
BitReg=Shell.Settings
UpdateInis=DelIEQuick.Links

[DelIEQuick.Links]
setup.ini, progman.groups,, "IE_WEBVIEW=..\..\Applic~1\Micros~1\Intern~1\Quickl~1"
setup.ini, IE_WEBVIEW,, """Launch Internet Explorer Browser"""

[DelOEdesktop]
setup.ini, progman.groups,, "groupOE=..\..\desktop"
setup.ini, groupOE,, """Outlook Express""" ;deletes icon

[Installed.Components.Advanced]
DelFiles=Connect.Icon, OLS.Icons, QuickLaunch.Icons
CustomDestination=Custom.Dest
RunPostSetupCommands=DirCleanup

[Custom.Dest]
49070=DesktopLDIDSection,5
49050=QuickLinksLDIDSection,5

[Mydocs.Icon]
HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\Documents,HideMyDocsFolder,,

[Connect.Icon]
connec~1.lnk

[Delete.Nethood.Icon]
AddReg=Nethood.Icon

[Nethood.Icon]
HKCU,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoNetHood,1,01,00,00,00

[Delete.MSN.Icon]
DelReg=MSN.Icon

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

[DesktopLDIDSection]
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",Desktop,OLSFolder,"%25%\Desktop"

[OLS.Icons]
americ~1.lnk
at&two~1.lnk
compus~1.lnk
prodig~1.lnk
themic~1.lnk
aboutt~1.lnk
abouto~1.txt
services.txt

[DirCleanup]
rundll32.exe advpack.dll,DelNodeRunDLL32 %49070%\%OnlineLong%

[Delete.Welcome]
DelReg=Registry.Welcome

[Registry.Welcome]
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,Welcome,,

[Delete.Regwiz]
AddReg=Registry.Regwiz

[Registry.Regwiz]
HKLM,Software\Microsoft\Windows\CurrentVersion\Welcome\Regwiz,@,1,01,00,00,00
HKLM,Software\Microsoft\Windows\CurrentVersion,RegDone,1,01,00,00,00

[Registry.WinUpdate]
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDevMgrUpdate,0x10001,0
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoWindowsUpdate,0x10001,0

[Browser.Settings]
HKCU,%KEY_IEXPLORERMAIN%,"Start Page",,"HKCU,%KEY_IEXPLORERMAIN%,"First Home Page",,"HKCU,%KEY_IEXPLORERMAIN%,"Search Page",,"HKLM,%KEY_IEXPLORERMAIN%,"Search Bar",,"HKCU, "SOFTWARE\Microsoft\Internet Explorer\Help_Menu_URLs","Online_Support",,"
[Shell.Prep]
HKCU,"Software\Microsoft\Internet Explorer\Desktop\Components\0",Flags,01,00,00,00
HKCU,"Software\Microsoft\Internet Explorer\main",Show_ChannelBand,0,"no"

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

[QuickLinksLDIDSection]
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",AppData,QuickLaunch,"%25%\Application Data"

[QuickLaunch.Icons]
showde~1.scf
viewch~1.scf

[Skip.PCMCIA.Wizard]
HKLM,System\CurrentControlSet\Services\Class\PCMCIA,SkipWizardForBatchSetup,,1

[DestinationDirs]
Connect.Icon=10,alluse~1\desktop
OLS.Icons=49070,Online~1
QuickLaunch.Icons=49050,Micros~1\Intern~1\QuickL~1

[Strings]
KEY_RUNONCE="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
KEY_INSTALLEDCOMPS="SOFTWARE\Microsoft\Active Setup\Installed Components"
OnlineLong="Online Services"
KEY_IEXPLORERMAIN="Software\Microsoft\Internet Explorer\Main"

[OPKInstall]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductId",,12345-OEM-1234567-12345
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion","ProductKey",,"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
HKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOwner",,User
HKLM,"Software\Microsoft\Windows\CurrentVersion","RegisteredOrganization",,none

[Apps.Install]
HKLM,%KEY_RUNONCE%,AppsInstall,,"%10%\Install.bat"

thank you to all those who posted =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top