Sign in to follow this  
Followers 0
el_rob3

make some changes in Win98 CD

24 posts in this topic

hi guys

here i want to make some changes in Win98 CD in order to change the logo.sys ,

logow.sys , logos,sys , put some files in startup directory & put some values in the registry. So when i install the new win98 CD i can get all that changes.

is it possible :blushing:

thnx

0

Share this post


Link to post
Share on other sites

i'm using a batch command to do this, AFTER installatiton.

just by copying logo.sys and win\logow.sys and win\logos.sys over with my modified ones.

but if there's a way to do it unattendedly! i would LOVE to know!

0

Share this post


Link to post
Share on other sites

Yes, unattended app-installs and commands is quite possible in win98 as well.

Its so do-able, that you can pick/choose your method.

You can modify the MSBATCH.INF to add entries to registry for running commands, for copying files, and such... And you can put your .BAT in the startup folder to make it run, or you can apply a .REG from MSBATCH.INF - its all do-able.

If you'd like to see a sample of how I do it, just post saying so, and I'll describe the whole process tonight.

0

Share this post


Link to post
Share on other sites

@prathapml

could you please post it.. the batch file i have i have to run it manually..

i didn't know u can add your own .reg and .bat's to the msbatch.inf.

pls post it and describe as u said u would. is there some other source that i can read that'll help me out too?

thanx.

0

Share this post


Link to post
Share on other sites

MSBATCH.INF

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

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

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

[Setup]
Express=1
InstallDir="c:\windows"
InstallType=3
ProductKey="YOUR PRODUCT KEY"
EBD=0
ShowEula=0
ChangeDir=0
OptionalComponents=1
Network=1
System=0
CCP=0
CleanBoot=0
Display=0
DevicePath=0
NoDirWarn=1
TimeZone="India"
Uninstall=5
NoPrompt2Boot=1

[System]
Locale=L0409
SelectedKeyboard=KEYBOARD_00000409

[NameAndOrg]
Name="0wner"
Org="0wn Inc."
Display=0

[Network]
ComputerName="Computer"
Workgroup="LAN"
Description="Microsoft Oldie"
Display=0
PrimaryLogon=VREDIR
Clients=VREDIR
Protocols=MSTCP
Security=SHARE

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

[OptionalComponents]
"Accessibility Options"=1
"Accessibility Tools"=1
"Briefcase"=0
"Calculator"=1
"Desktop Wallpaper"=1
"Document Templates"=1
"Classic Games"=1
"Plus! Games"=1
"Internet Games"=0
"Imaging"=1
"Mouse Pointers"=0
"Imaging"=0
"Paint"=1
"WordPad"=1
"Dial-Up Networking"=1
"Dial-Up Server"=0
"Direct Cable Connection"=1
"HyperTerminal"=1
"Microsoft NetMeeting"=0
"Phone Dialer"=1
"Virtual Private Networking"=0
"Web Publishing Wizard"=1
"Microsoft Outlook Express"=0
"Outlook Express"=0
"Address Book"=0
"MSN Messenger Service"=0
"NetMeeting"=0
"Audio Compression"=1
"CD Player"=1
"Macromedia Shockwave Director"=1
"Macromedia Shockwave Flash"=1
"Media Player"=1
"Multimedia Sound Schemes"=0
"Sample Sounds"=0
"Sound Recorder"=1
"Video Compression"=1
"Volume Control"=1
"America Online"=0
"AT&T WorldNet Service"=0
"CompuServe"=0
"EarthLink"=0
"Prodigy Internet"=0
"The Microsoft Network"=0
"Desktop Themes Support"=1
"Space"=1
"Windows Millennium"=1
"Additional Screen Savers"=1
"Flying Windows"=1
"OpenGL Screen Savers"=1
"Backup"=1
"Character Map"=1
"Clipboard Viewer"=1
"Compressed Folders"=1
"Disk compression tools"=1
"Drive Converter (FAT32)"=1
"Group policies"=1
"Net Watcher"=1
"System Monitor"=1
"System Resource Meter"=1

[Printers]

[InstallLocationsMRU]
"C:\windows\drivers"
"C:\temp"

[Install]
AddReg=RunOnce.BatchDelay,Run.Installed.Components,Skip.PCMCIA.Wizard,User.Profiles.Reg,User.Box.One
,User.Box.Two,Registry.WinUpdate,RegistrySettings
CopyFiles=regfile.copy,customTweaks.UserBranding

[regfile.copy]
settings.reg

[customTweaks.UserBranding]
instTime.bat
tweaks.bat
oemlogo.bmp
oeminfo.ini
tweaked.reg
regClean.exe
regclean.txt
MPSetup.exe
wrar.exe

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

[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%\>BatchAdvpack,,,">Batch 98 - Advanced Settings"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchAdvpack,StubPath,,"%25%\rundll32.exe advpack.dll,LaunchINFSection %10%\msbatch.inf,Installed.Components.Advanced"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,,,">Batch 98 - Windows Update"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,IsInstalled,1,01,00,00,00
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,Version,,"3,0,0,0"
HKLM,%KEY_INSTALLEDCOMPS%\>Batchwu,StubPath,,"wupdmgr.exe -shortcut"

[Installed.Components.General]
AddReg=Browser.Settings, Shell.Prep
BitReg=Shell.Settings

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

[Custom.Dest]
49070=DesktopLDIDSection,5

[Connect.Icon]
connec~1.lnk

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

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

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

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

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

[Delete.Welcome]
DelReg=Registry.Welcome

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

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

[Browser.Settings]
HKCU,%KEY_IEXPLORERMAIN%,"Start Page",,"about:blank"
HKCU,%KEY_IEXPLORERMAIN%,"First Home Page",,"about:blank"
HKCU,%KEY_IEXPLORERMAIN%,"Search Page",,"http://home.microsoft.com/search/search.asp"
HKLM,%KEY_IEXPLORERMAIN%,"Search Bar",,"http://home.microsoft.com/search/search.asp"
HKCU, "SOFTWARE\Microsoft\Internet Explorer\Help_Menu_URLs","Online_Support",,"http://support.microsoft.com/support"

[Shell.Prep]
HKCU,"Software\Microsoft\Internet Explorer\Desktop\Components\0",Flags,01,00,00,00

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

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

[User.Profiles.Reg]
HKLM,"Network\Logon",UserProfiles,1,1

[User.Box.One]
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",CentralFile,,"Desktop"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",DefaultDir,,"%10%\Desktop"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",LocalFile,,"Desktop"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%PrimaryRec%\Desktop",RegValue,,"Desktop"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",CentralFile,,"NetHood"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",DefaultDir,,"%10%\NetHood"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",LocalFile,,"NetHood"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%PrimaryRec%\NetHood",RegValue,,"NetHood"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",CentralFile,,"Recent"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",DefaultDir,,"%10%\Recent"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",LocalFile,,"Recent"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%PrimaryRec%\Recent",RegValue,,"Recent"

[User.Box.Two]
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",CentralFile,,"Start Menu"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",DefaultDir,,"%10%\Start Menu"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",LocalFile,,"Start Menu"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%PrimaryRec%\Start Menu",RegValue,,"Start Menu"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",CentralFile,,"Programs"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",DefaultDir,,"%10%\Start Menu\Programs"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",LocalFile,,"Start Menu\Programs"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",ParentKey,,"Start Menu"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%SecondaryRec%\Programs",RegValue,,"Programs"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",CentralFile,,"Startup"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",Default,1,01,00,00,00
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",DefaultDir,,"%10%\Start Menu\Programs\Startup"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",LocalFile,,"Start Menu\Programs\Startup"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",MustBeRelative,1,01,00,00,00
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",Name,,"*.lnk,*.pif"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",ParentKey,,"Start Menu"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",RegKey,,"%CurrentVersion%\Explorer\User Shell Folders"
HKCU,"%CurrentVersion%\%SecondaryRec%\Startup",RegValue,,"Startup"

[RegistrySettings]
HKLM,%KEY_RUNONCE%,BatchReg1,,"%25%\regedit.exe /s "%10%\settings.reg""

[DestinationDirs]
Connect.Icon=10,alluse~1\desktop
OLS.Icons=49070,Online~1
regfile.copy=10

[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"
CurrentVersion="Software\Microsoft\Windows\CurrentVersion"
PrimaryRec="ProfileReconciliation"
SecondaryRec="SecondaryProfileReconciliation"

All files mentioned in "customTweaks.UserBranding" and "regfile.copy" need to be placed in the Win98 cabs folder. It will get copied to C:\Windows folder (delete it afterwards through batch-files).

This is contents of instTime.bat

@ECHO off
CLS
ECHO.
ECHO please standby until the tweaks scheduled for applying are performed
ECHO Do not close this window until a message says so
ECHO.
ECHO Installing Windows Media Player 9
C:\Windows\mpsetup.exe /Q:A /R:N
ECHO Wait for 3 minutes (to allow installation to complete)
ECHO.
ECHO Installing WinRAR 3.20 Licensed Corporate Edition
C:\Windows\wrar.exe /s
ECHO finished
ECHO.
regedit /S C:\windows\tweaked.reg
ECHO Starting Branding operations
if exist "c:\windows\system\oeminfo.ini" del "c:\windows\system\oeminfo.ini"
move "c:\windows\oeminfo.ini" "c:\windows\system"
move "c:\windows\oemlogo.bmp" "c:\windows\system"
ECHO tweaks successful, Enjoy!
ECHO.
ECHO Deleting Temporary Installation Files...
if exist "c:\windows\settings.reg" del "c:\windows\settings.reg"
if exist "c:\windows\tweaked.reg" del "c:\windows\tweaked.reg"
ECHO.
ECHO IMPORTANT - You may close this window after 3 minutes
EXIT

This is Settings.reg

REGEDIT4

; make windows think it has been registered
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"RegDone"="1"

; get rid of the bloat called Scheduled Tasks
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices]
"SchedulingAgent"="-"

; execute this script at first-login (during end of last phase of setup)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"configure"="C:\\Temp\\install\\main.bat"
"tweaking"="C:\\Windows\\instTime.bat"

;

Tweaks.bat

@ECHO off
CLS
ECHO.
ECHO Deleting Temporary Installation Files...
if exist "c:\windows\mpsetup.exe" del "c:\windows\mpsetup.exe"
if exist "c:\windows\wrar.exe" del "c:\windows\wrar.exe"
ECHO.
if exist "c:\windows\instTime.bat" del "c:\windows\instTime.bat"
if exist "c:\windows\tweaks.bat" del "c:\windows\tweaks.bat"
ECHO You may now close this window
EXIT

tweaked.reg

REGEDIT4

; remove the below planned tweaks once completed
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"configure"=-
"tweaking"=-

With the above files, what I am doing is to make use of the RunOnce keys of registry to run custom setups with switches (and .bats or .regs). I hope the above is understandable. If you have any questions, just ask. :)

0

Share this post


Link to post
Share on other sites

[user.Box.One] and two..

i don't understand wot that does.. i'm guessing create two users? but i don't see the user name or anything there.. so that can't be right..

one's about the desktop and two's about the start menu... wot does that do?

and also.. is there anyway of replacing the original logo.sys, logos and logow in the windows installation files instead of me making a batch file to do it?

0

Share this post


Link to post
Share on other sites

What does it do?

It just creates appropriate entries in the registry according to the settings you chose in Batch98. You can make your own, if you so desire.

The above code is some stuff, posted to get one started. Using it, one can be able to automate the entire process for win98/ME to be as good as unattended win2k/XP. It is made for the purpose of:

1. Enabling you to just boot from the CD and start setup and walk away.

2. It will run through the entire setup silently

3. Then apply the .REG silently

4. Install specified programs silently.

5. reboot and stop at the logon screen.

0

Share this post


Link to post
Share on other sites

@prathapml

I see ur location as "India" and that is not on the selection list of the time zones.. options for india are delhi, madhras etc.. cities only.

should i change mine to a country name?

i'm sure BATCH98 put that in for me...i'm using "Nairobi".. i explain below...

I'm getting stoped to be asked what time zone i'd like to set..

i'm not sure why this is...

i'm using:

....
CleanBoot=0
Display=0
DevicePath=0
NoDirWarn=0
TimeZone="Nairobi"
Uninstall=0
NoPrompt2Boot=1

My BIOS and location at the moment is NOT "Nairobi" but USA. Is this why? shouldn't it jjust accept it even if it's not right?

or anything else comes to mind thaht i could check on?

I so glad 98 doesn't take soooo long! i'm trying to get ur instTime.bat running at startup.. probaby some syntax thingi.. workin on it.

0

Share this post


Link to post
Share on other sites

how can placed files in "customTweaks.UserBranding" and "regfile.copy" to win98 cabs?

0

Share this post


Link to post
Share on other sites

thnx prathapml

but i have some questions,,

i want to make multiple-machine-name (diffrent IP & name & networkname)

the msbatch98 was made 14 files for me (the No. of my clients) and i want to know how it may work?

how to change logo.sys & logow.sys & logos.sys with with this batch?

can i setup many programs with your "instTime.bat" (such as realOnePlayer , MSN , Yahoo ,......)

thnx for your help :hello:

0

Share this post


Link to post
Share on other sites

@cyberthug

Windows 98 drivers are easy to slipstream as the windows install cd comes with a program called Infinst.exe which does just that, simply extract your drivers from the compressed exe files (if they are compressed) then tell the program where they are one driver at a time. The program will copy all the driver files which are relevant to the Windows install folder on the hard drive and update the relevant ini files etc.

@everybody

What I want is a program to replace original files inside the cabinet files, winrar and winzip can read the files but not write them for some reason. anyone any Ideas on how this can be done?

0

Share this post


Link to post
Share on other sites
i'm sure BATCH98 put that in for me...i'm using "Nairobi".. i explain below...
In case this is a bug, it'll never be fixed. So here is a workaround that probably works :

Set the Time Zone on your machine. Right click on the taskbar and choose Adjust Date/Time as you probably know. If you want a finer TimeZone setup you'll need to use the Time Zone Editor that is on your your 98SE CD at \tools\reskit\config\tzedit.exe. Once this is done, export the values from the registry by runing the following batch file :

@echo off
regedit /e TimeZone.reg "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation"

Copy and paste in Notepad and save as whatever.bat. Run it.

For your setup keep default US timezone and add Timezone.reg to your Batch Setup through the Advanced Options tab.

What I want is a program to replace original files inside the cabinet files, winrar and winzip can read the files but not write them for some reason. anyone any Ideas on how this can be done?

You can't do this with MS cab archives I think. But what you can probably do is extract the cab, replace the file and recompress a new cab of the same name to replace the old one.

I do not know if the new cab will be suitable for a Windows setup but I can say that I have recompressed my Win ME cabs this way with IzArc to be able to use the Win98 System File Checker on Win ME.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

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

Create an account

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


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.