Jump to content

Windows 95C OSR 2.5 MSBATCH.INF


LoneCrusader

Recommended Posts

Thanks jaclaz, that second link was extremely helpful. :thumbup

I ended up starting completely over with this. I took one of the sample scripts from the Windows 95 Resource Kit and renamed it MSBATCH.INF, and it worked, so I went from there. Apparently Windows 95 does not recognize MSBATCH.INF properly if there are any sections like [batchSetup] or [Version] above [sETUP] in the script.

So now I have a (for the most part) working MSBATCH.INF.

Now it gets even more crazy. The thing works perfectly except for the [OPTIONALCOMPONENTS] section.

There are 4 items in the Optional Components section that are never checked during Setup, even if I place a 1 after their name in MSBATCH.INF. I took this section directly from SETUPLOG.TXT on a previous install, and I have checked and rechecked the syntax & spelling of their names.

Ill post my file here, maybe someone will see something that I don't.

; MSBATCH.INF
; Copyright © 1995-1998 Microsoft Corporation.
; All rights reserved.
;

[SETUP]
Express=0
InstallType=3
EBD=0
InstallDir=C:\WINDOWS
ChangeDir=0
NoDirWarn=1
Uninstall=0
ShowEula=0
ProductID=xxxxxxxxxxxxxxxxxxxxxxx
TimeZone="Eastern"

[SYSTEM]
Locale=L0409
SelectedKeyboard=KEYBOARD_00000409

[NAMEANDORG]
Name="LoneCrusader"
Display=0

[NETWORK]
Display=1
Clients=VREDIR
Protocols=NWLINK, NETBEUI, MSTCP
ComputerName=CHANGEME!!!
Description=CHANGEME!!!
Security=SHARE

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

[NWLINK]
Frame_Type=4

[VREDIR]
ValidatedLogon=0

[OPTIONALCOMPONENTS]
"Accessibility Options"=0
"Accessories"=1
"Audio Compression"=1
"Backup"=1
"Blank Screen"=1
"Briefcase"=0
"Calculator"=1
"CD Player"=1
"Character Map"=1
"Clipboard Viewer"=1
"Communications"=1
"Curves and Colors"=1
"Defrag"=1
"Desktop Wallpaper"=1
"Dial-Up Networking"=1
"Direct Cable Connection"=1
"Disk compression tools"=1
"Disk Tools"=1
"Document Templates"=1
"Flying Through Space"=1
"Games"=1
"HyperTerminal"=0
"Jungle Sound Scheme"=1
"Media Player"=1
"Microsoft Exchange"=0
"Microsoft Fax"=0
"Microsoft Fax Services"=0
"Microsoft Fax Viewer"=0
"Microsoft Mail Services"=0
"Mouse Pointers"=1
"Multimedia"=1
"Musica Sound Scheme"=1
"Mystify Your Mind"=1
"Net Watcher"=1
"Object Packager"=1
"Online User's Guide"=1
"Paint"=1
"Phone Dialer"=0
"Quick View"=1
"Robotz Sound Scheme"=1
"Sample Sounds"=1
"Screen Savers"=1
"Scrolling Marquee"=1
"Sound Recorder"=1
"System Monitor"=1
"System Resource Meter"=1
"The Microsoft Network"=0
"Utopia Sound Scheme"=1
"Video Compression"=1
"Volume Control"=1
"Windows 95 Tour"=1
"WordPad"=1
"Flying Windows"=1
"OpenGL Screen Savers"=1
"Additional Screen Savers"=1
"Desktop Management"=1
"Imaging"=1
"Windows Messaging"=0
"Multimedia Sound Schemes"=1
"Microsoft NetMeeting"=0

[PRINTERS]

Any more suggestions?

Link to comment
Share on other sites


I got no experience with Win 95 MSBATCH.INF. All my experience is from 98+, but here're my two wild guesses about what may make a difference, and yet be invisible in plain view. Bear in mind they're just guesses.

There are no blank lines either before or after every section title. Are you sure these blank lines are irrelevant?

The section titles in your file are all fully uppercase... Are you sure the MSBATCH.INF processor is case insensitive?

Link to comment
Share on other sites

There are no blank lines either before or after every section title. Are you sure these blank lines are irrelevant?

The section titles in your file are all fully uppercase... Are you sure the MSBATCH.INF processor is case insensitive?

There are blank lines before each section, it should show up that way in the code box, it does on my Firefox?? :unsure:

As for a blank line after, the scripts created by both the 95 and 98 batch tools did not put a blank line there. The scripts I created for 98 and ME worked flawlessly, and this one works now except for these 4 "Optional Components" - all the other optional components work properly. :blink:

I changed all of the section titles to uppercase because the sample 95 scripts used all uppercase section names.

I dunno, at this point I'm willing to try anything :crazy:

** EDIT 1-30-2010 4AM **

Tried adding OptionalComponents=1 to the [sYSTEM] section.

Tried copying and pasting the OptionalComponents section out of SETUPLOG.TXT again.

Tried putting the [OptionalComponents] section in mixed case instead of all uppercase.

Tried all these things together. Still Nothing. This is maddening!

Edited by LoneCrusader
Link to comment
Share on other sites

@ LoneCrusader

I have this, tested only win95 b (4.00.950)

[setup]

ProductID=XXXXX-OEM-XXXXXXX-XXXXX

CCP=0

ProductType=1

I have not tried other features, you can copy the functions MSBATCH.INF win98?

Edited by BeatZero
Link to comment
Share on other sites

@ LoneCrusader

I have this, tested only win95 b (4.00.950)

[setup]

ProductID=XXXXX-OEM-XXXXXXX-XXXXX

CCP=0

ProductType=1

I have not tried other features, you can copy the functions MSBATCH.INF win98?

Sure, here's a copy of my 98SE MSBATCH.INF

; MSBATCH.INF
;
; Copyright © 1995-1998 Microsoft Corporation.
; All rights reserved.
;

[BatchSetup]
Version=3.0 (32-bit)
SaveDate=01/17/10

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

[Setup]
Express=0
InstallDir="C:\WINDOWS"
NoDirWarn=1
InstallType=3
OptionalComponents=1
ShowEula=0
ProductKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
EBD=0
Uninstall=0
TimeZone="Eastern"

[System]
Locale=L0409
SelectedKeyboard=KEYBOARD_00000409

[NameAndOrg]
Name="LoneCrusader"
Display=0

[Network]
ComputerName=CHANGEME!!!
Description=CHANGEME!!!
Clients=VREDIR
Protocols=NWLINK, MSTCP
Security=SHARE

[NWLINK]
Frame_Type=4

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

[VREDIR]
ValidatedLogon=0

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

The Locale and Selected Keyboard values in there are set for the US, and of course so is the TimeZone.

Link to comment
Share on other sites

@ Lonecrusader, just a curiosity, its intention to create a msbatsch for windows 95, would be to add to the project win95 CPU limit? http://www.msfn.org/board/index.php?showtopic=141402

I created a slipstreamer for this ;-)

Actually the MSBATCH is mainly for my own use, I'm building myself a Multiple-Windows Installation DVD.

I saw your post about the slipstreamer, I hope to get a chance to experiment with it soon. Slipstreaming is way above my head, at least for now. If you can do things like this I might have to give you some other things to slipstream :P haha

Link to comment
Share on other sites

I saw your post about the slipstreamer, I hope to get a chance to experiment with it soon. Slipstreaming is way above my head, at least for now. If you can do things like this I might have to give you some other things to slipstream :P haha

ok

give me some feedback ;)

can test some things with the msbatch ... I post here if I have any success

OOPS! 03:32 AM... ZzZzZZzz

Good Night

Link to comment
Share on other sites

I saw your post about the slipstreamer, I hope to get a chance to experiment with it soon. Slipstreaming is way above my head, at least for now. If you can do things like this I might have to give you some other things to slipstream :P haha

ok

give me some feedback ;)

can test some things with the msbatch ... I post here if I have any success

OOPS! 03:32 AM... ZzZzZZzz

Good Night

Good Luck, and Good Night

Link to comment
Share on other sites

Now it gets even more crazy. The thing works perfectly except for the [OPTIONALCOMPONENTS] section.

There are 4 items in the Optional Components section that are never checked during Setup, even if I place a 1 after their name in MSBATCH.INF. I took this section directly from SETUPLOG.TXT on a previous install, and I have checked and rechecked the syntax & spelling of their names.

This may be part of the problem (specifically names 4 components, which BTW, you didn't specify). Chances are, last time you installed (SETUPLOG.TXT) you didn't use MSBATCH.INF and it worked out ok...
Link to comment
Share on other sites

This may be part of the problem (specifically names 4 components, which BTW, you didn't specify). Chances are, last time you installed (SETUPLOG.TXT) you didn't use MSBATCH.INF and it worked out ok...

Eureka! You have found it. :thumbup

Thanks for finding this, it was driving me crazy. The four Optional Components that would not install are:

Audio Compression

Sample Sounds

Sound Recorder

Volume Control

That article suggests a solution, but I don't think it will work for me. It looks like I will have to manually check them during each install, as I always disable or remove the sound card (and NIC, Modem, USB, etc) whenever I install Windows so that I can re-enable or install them one at a time with the correct drivers.

Edited by LoneCrusader
Link to comment
Share on other sites

This may be part of the problem (specifically names 4 components, which BTW, you didn't specify). Chances are, last time you installed (SETUPLOG.TXT) you didn't use MSBATCH.INF and it worked out ok...

Eureka! You have found it. :thumbup

Thanks for finding this, it was driving me crazy.

Wow! :blink: Great catch, submix8c! Way to go! :thumbup

Link to comment
Share on other sites

  • 1 year later...

sorry for resurrecting this old thread, but I face the same prob as the OP... I created an MSBATCH.INF with the BATCH.EXE program on the win95 OEM OSR2.5 cd , but the bugger won't load!!! Running SETUP.EXE MSBATCH.INF makes no difference, the arguments do not pass on... I even tried LoneCrusader's .inf and it did not load...

here is my inf:

[Setup]
Express=1
InstallDir="C:\WINDOWS"
EBD=0
ChangeDir=0
OptionalComponents=1
Network=1
System=0
ProductID=xxxxx-OEM-xxxxxxx-xxxxx
CCP=0
CleanBoot=0
Display=0
PenWinWarning=0
InstallType=3
DevicePath=0
TimeZone="GFT"
Uninstall=0
VRC=0
NoPrompt2Boot=0

[NameAndOrg]
Name="xxx"
Org="zzz"
Display=0

[Network]
Workgroup="WORKGROUP"
Display=1
PrimaryLogon=VREDIR
Clients=VREDIR
Protocols=NETBEUI, NWLINK, MSTCP
Services=VSERVER
IgnoreDetectedNetCards=0
ValidateNetCardResources=1
Security=SHARE

[NWLINK]
Frame_Type=4
NetBIOS=0

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

[VREDIR]
LogonDomain="WORKGROUP"
ValidatedLogon=1

[VSERVER]
LMAnnounce=1
MaintainServerList=2

[OptionalComponents]
"Accessibility Options"=0
"Briefcase"=0
"Calculator"=1
"Character Map"=1
"Clipboard Viewer"=1
"Desktop Wallpaper"=1
"DMI Mgmt Service Layer"=0
"Document Templates"=0
"Games"=1
"Imaging"=1
"Mouse Pointers"=1
"Net Watcher"=0
"Object Packager"=1
"Online User's Guide"=0
"Paint"=1
"Quick View"=0
"System Mgmt Infrastructure"=0
"System Monitor"=0
"System Resource Meter"=0
"TWAIN 1.6"=1
"Windows 95 Tour"=0
"WordPad"=1
"Dial-Up Networking"=0
"Direct Cable Connection"=0
"HyperTerminal"=1
"Microsoft NetMeeting"=0
"Phone Dialer"=0
"Backup"=0
"Defrag"=1
"Disk compression tools"=0
"Microsoft Fax Services"=0
"Microsoft Fax Viewer"=0
"Audio Compression"=1
"CD Player"=1
"Media Player"=1
"Multimedia Sound Schemes"=0
"Sample Sounds"=0
"Sound Recorder"=1
"Video Compression"=1
"Volume Control"=1
"Additional Screen Savers"=1
"Flying Windows"=1
"OpenGL Screen Savers"=1
"The Microsoft Network"=0
"Internet Mail Services"=0
"Windows Messaging"=0
"Microsoft Mail Services"=0

[Printers]

any ideas what is wrong?

EDIT:

please disregard this, I ended up loading a ms example script, customize it with BATCH and it works fine...

Edited by keropi666
Link to comment
Share on other sites

  • 11 years later...

Lucky you, you resurrected this topic 1.5 years after the last post, I'm resurrecting it 11 years later ;) I could create a new topic, but the answers in this one were very helpful and my questions continue where LoneCrusader left off, but he never solved his last problem, just worked around it.

The subject is basically the same as the original poster, I'm making an All In One ISO with one O.S. of each flavour, and I want Windows 95 OSR2, Windows 98 SE OEM and Windows Millennium OEM to have unattended installations. For Windows 98 SE and Windows Me, I have a working menu in the boot floppies with 5 installation options: manual (same as original), manual with no key required (MSBATCHK.INF), unattended/typical (MSBATCHT.INF), unattended/portable (MSBATCHP.INF), unattended/compact (MSBATCHC.INF), unattended/minimal (MSBATCHM.INF) and unattended/full (MSBATCHKF.INF). I'm using VirtualBox as the test bench.

Windows 95 OSR2 unattended, on the other hand, is a pain in the butt to get it right...

1st problem (solved): when setup reboots from 1st stage to 2nd stage, Windows 95 no longer sees the CD/ISO, probably because it uses (if at all) outdated CD-ROM drivers, so the solution was to add a section in MSBATCH.INF that copies the (Windows 98) drivers from the floppy to the HDD and adds the correspondent lines to AUTOEXEC.BAT and CONFIG.SYS, so setup sees the CD/ISO and continues the installation.
2nd problem (solved): Since I have all MSBATCH*.INF in the boot floppy, it MUST have a MSBATCH.INF with at least [SETUP] ProductType=1 in the WIN95 CD folder to skip the CD-KEY which I want to do in unattended mode, this line won't work from any INF file in any other location.
3rd problem (solved): Since Windows 95 won't run on CPUs faster than 2.1Ghz, I'm using FIX95CPU and MSBATCH.INF to install an AMD patch that solves this issue, but 2nd stage setup was stopping due to an older NDIS.VXD being copied over a newer version, so all I needed was to copy this new file from FIX95CPU to the WIN95 CD folder so setup copies this file instead of the one in the CABs. I'll probably move FIX95CPU to the boot floppy at a later stage and install it from there.

4th problem (unsolved but not important): 2nd stage setup stops and aks me to configure Microsoft Exchange's Incoming folder when this component is installed. The FULL installation option includes this component, so I wonder if there is a way to skip the configuration by adding something to MSBATCH.INF. Even if there isn't, I might just disable it in the FULL installation, since it's not selected in the 3 default configurations (Tipical/Portable/Compact).
5th problem (unsolved for now): 1st stage setup can't find LEIA-ME.TXT (aka README.TXT in English versions), if I skip it everything else copies OK, but the file is there, and it copies fine when using the original CD/ISO, so it's probably just a question of using the correct cdimage parameters, I'll figure that one out eventually.

6th problem (unsolved): some components aren't installed when the soundcard isn't detected, specifically "Audio Compression", "Sample Sounds", "Volume Control" and "Sound Recorder". It's the same problem LoneCrusader was having, and the problem is described in this article, but adding "/p c-" to disable safe class detection will make install crash on Virtualbox, and possibly some real computers too. If I do a manual installation I can select a check box for sound cards and network cards, which will find the Soundblaster 16 and install the 4 missing components. Is there an equivalent option to this checkbox for MSBATCH.INF?

I don't mind posting my MSBATCH*.INF files, CONFIG.SYS and AUTOEXEC.BAT when they're 100% working and fully translated to English, if anyone is interested.

Edited by johnyept
Link to comment
Share on other sites

  • 3 weeks later...
On 12/16/2022 at 5:48 AM, johnyept said:

...where LoneCrusader left off, but he never solved his last problem, just worked around it.

6th problem (unsolved): some components aren't installed when the soundcard isn't detected, specifically "Audio Compression", "Sample Sounds", "Volume Control" and "Sound Recorder". It's the same problem LoneCrusader was having, and the problem is described in this article, but adding "/p c-" to disable safe class detection will make install crash on Virtualbox, and possibly some real computers too.

Well, I finally solved it about a year ago in one of those rare instances when I actually manage to find time to work on my long-suffering never-completed projects.

You can stop the process that "deselects" these components by editing their respective .INF files and commenting out the "ValidateProc" line in each of their sections.

Extract MOTOWN.INF and MMOPT.INF from precopy2.cab if they don't already exist in the main \WIN95 folder.
Find the sections [media_acm], [Rec], [Vol], [media_clips], and [CDPlayer]**.
Comment out (place a semicolon at the beginning of) the line in each section that begins with ValidateProc. (i.e. ;ValidateProc)
Save changes.

This should solve the problem.

** = I don't remember anything offhand about the [CDplayer] section; or whether or not this is required. I may not have looked into it further at the time, but just handled it similarly to the others once I figured out how to prevent them from being deselected.

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...