[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3446
  • Last Modified:

Silent Win95 Installation ProductID-Problem

Hello everybody

I know the question I am going to ask was asked before (last a couple of months ago here: http://www.experts-exchange.com/Operating_Systems/Win95_3x/Win95/Win95_Setup/Q_21136276.html), but all of them seem to have been closed by a page editor an not by the questioner, and the "accepted" answers did not solve my problem.

So here goes: I am doing an unattended installation of a Windows 95 OSR2 OEM from a harddisk. I start the setup with this command:

setup /IW /im /id /is C:\CAB\BSETUP.INF

The folder C:\CAB contains the content of the original Win95 CD-ROM.
In the  [Setup]-Section of the BSETUP.INF file there is this line:
ProductID="*****-OEM-*******-*****"

of course I use a valid OEM product ID. Venet though I give a valid product ID I get the error message:

The Certificate of Authenticity number you entered is not valid.

Number entered:        -OEM--

You cannot complete setup without it............


ANy help would be greatly appreciated
0
WebJoe
Asked:
WebJoe
  • 4
  • 3
1 Solution
 
trekie1Commented:
try this batch file..it generaly works for me..the product id listed are  just random numbers so change it..also leave out the OEM part,just use your id number...copy /paste and saveas msbatch.inf and place it in your setup cab files
note: if you want it to setup network ,fill in the info... name,workgroup,ect...


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

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

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

[Setup]
Express=1
InstallDir="C:\windows"
InstallType=3
ProductKey= 32096-0016511-32464
EBD=0
ShowEula=0
ChangeDir=0
OptionalComponents=1
Network=1
System=0
CCP=0
CleanBoot=0
Display=0
DevicePath=0
NoDirWarn=1
TimeZone="Central"
Uninstall=0
NoPrompt2Boot=0

[System]
Locale=L0409
SelectedKeyboard=KEYBOARD_00000409

[NameAndOrg]
Name=
Org=
Display=0

[Network]
ComputerName=
Workgroup=
Description=
Display=0
PrimaryLogon=Windows
Clients=VREDIR
Protocols=MSTCP
Services=VSERVER
Security=SHARE

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

[VREDIR]
LogonDomain="mshome"
ValidatedLogon=0

[VSERVER]
LMAnnounce=0
MaintainServerList=2

[OptionalComponents]
"Accessibility Options"=1
"Accessibility Tools"=1
"Briefcase"=0
"Calculator"=1
"Desktop Wallpaper"=0
"Document Templates"=1
"Games"=1
"Imaging"=1
"Mouse Pointers"=1
"Paint"=1
"Quick View"=1
"Windows Scripting Host"=1
"WordPad"=1
"Dial-Up Networking"=1
"Dial-Up Server"=0
"Direct Cable Connection"=0
"HyperTerminal"=1
"Microsoft Chat 2.1"=1
"Microsoft NetMeeting"=1
"Phone Dialer"=1
"Virtual Private Networking"=1
"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 95"=0
"Baltic"=0
"Central European"=0
"Cyrillic"=0
"Greek"=0
"Turkish"=0
"Audio Compression"=1
"CD Player"=1
"Media Player"=1
"Microsoft NetShow Player 2.0"=1
"Multimedia Sound Schemes"=1
"Sample Sounds"=0
"Sound Recorder"=1
"Video Compression"=1
"Volume Control"=1
"America Online"=0
"AT&T WorldNet Service"=0
"CompuServe"=0
"Prodigy Internet"=0
"The Microsoft Network"=0
"Additional Screen Savers"=0
"Flying Windows"=0
"OpenGL Screen Savers"=0
"Backup"=0
"Character Map"=1
"Clipboard Viewer"=1
"Disk compression tools"=0
"Drive Converter (FAT32)"=1
"Group policies"=1
"Net Watcher"=0
"System Monitor"=1
"System Resource Meter"=1
"Web TV for Windows"=0
"WaveTop Data Broadcasting"=0

[Printers]

[InstallLocationsMRU

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

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

[Run.Installed.Components]
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,,,">Batch 98 - General Settings"
HKLM,%KEY_INSTALLEDCOMPS%\>BatchSetupx,IsInstalled,1,01,00,00,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=Browser.Settings, Shell.Prep
BitReg=Shell.Settings

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

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

[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,1
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoWindowsUpdate,0x10001,1

[Browser.Settings]
HKCU,%KEY_IEXPLORERMAIN%,"Start Page",,"http://iwon.com"
HKCU,%KEY_IEXPLORERMAIN%,"First Home Page",,"http://home.microsoft.com/runonce.asp"
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
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]
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"



0
 
trekie1Commented:
forgot to mention..rename your setup.inf file  or cut it out  from cab files...dont need two batch files in there now do we :)
one more thing..I dont know anything about all those switchs you are useing....when I use this batch file I simply place it in the cab files and then use the command..example C:\windows/cabs/setup.exe    without switchs and the batch takes over ...must assume they are for takeing care of the enter thingy and exit from scandisk..not sure about that however it has always worked from that point on...try with the switchs first..it may do the whole setup without intervention
0
 
WebJoeAuthor Commented:
Thank you trekie1 for your attempt to help, but it still doesn't work. I used exactly what you posted (I changed the product key), but to no avail. I tried with and without the switches:
C:\CAB\setup.exe C:\CAB\BSETUP.INF
and
C:\CAB\setup /IW /im /id /is C:\CAB\BSETUP.INF

the result is the same. It even shows the EULA (the entry "ShowEula=0" in your post implies that the EULA is not shown)

As for the switches:
/IW - Bypasses needing to read the License screen. Needs to be upper case when run within Windows. Undocumented.
/im - Causes setup to ignore the conventional memory check. MS KB186111
/id - If you do not want Setup to check for the minimum disk space required to install Windows 95, use this switch. MS KB128400
/is - This switch causes Setup not to run ScanDisk. MS KB186111

To make sure we're on the same track: I'm using Windows 95 OSR2 OEM German.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
trekie1Commented:
may be the version difference not sure...95 is a bit tricky useing a batch file...lets give it another go..look on your 95 cd and if memory serves there is a folder named tools/reskit...browse around on the cd and see if you can find batch 95 setup...set this up on your machine and run it to make another batch file
also considering this is an OEM version look in the cab files and see if there may be some OEM .inf file that may be effecting the setup...depending on the cd it may say something like compaq.inf / ibm.inf  ect....thinking there shouldn't be any inf files other than layout.inf/layout1.inf/msinfo.inf....any other take it out of cab files

I know this batch 95 setup is on the original 95 cd's (upgrade version) but not sure on the osr2...a google search mite turn it up

Jim
0
 
WebJoeAuthor Commented:
Thank you again for your patience and effort to resolve my problem.

The tool is (at least with the German OEM version I use) in \Admin\Nettools\BSetup\
I used it in the first place, but there is no option where I can provide the Certificate of Authenticity number.

I browsed through the other folders in \Admin\, and found some example INF-files in \Admin\Reskit\Samples\Skripts\
There I found an example, where it said to provide the Certificate of Authenticity number in the [SETUP]-section with

ProductID=11111222222233333
No dashes, no OEM (well, the example does not use a OEM key)

I checked if the CAB-files contain any other INF-files. None found, which does not surprise me since the CD-ROM was bought with a custom made computer (so no vendor specific preload).

Still, the setup process seems to ignore that line in the BSETUP.INF

I did as you suggested and googled the topic some more (I already did before posting here). After a while I found this MS KB article:
http://support.microsoft.com/kb/q263281/

It states:
•      In OEM Windows 95: Setup is stopped and a message is displayed that indicates that the Product Key is incorrect. You must enter the Product Key again. When you enter the Product Key (even when this is the same Product Key), Setup continues.
[...]
This is behavior is by design and cannot be changed.


So, I guess there is no solution to my problem (except not using an OEM version of Windows 95)
0
 
trekie1Commented:
haven't ran across that before ??  thought my copy was OEM but may not be...thinking it came with a IBM machine I bought back in 96

look at this site and see if maybe something there may help ..some good tips anyway..   http://www.onecomputerguy.com/install/install.htm#infbatch

as stated before its been awhile sense I fooled with this but if memory serves it was a pain to get 95b to work correctly with a batch file..infact now that I think about it it seems as though I remember it had to be an older version of batch.exe to work.....thinking the program on the later version was simply named batch setup whereas the older version said 95batch.exe (may be wrong its been a long time)   if you have one look on an older win95 upgrade disk to see if it has this program..for some reason it made a difference...got to think theres a way around this :)

one last thought..in my copy of 95b there is a file named layout,layout1,msinfo.ini   and ofcourse the msbatch.ini  but thats it as far as ini files...are there any others in your copy? maybe something in there that may be taken out...not sure

0
 
WebJoeAuthor Commented:
Thanks for that link, very useful.

Unfortunately, this is the last and only copy of win95 I have left, must have thrown out the other in hope to never use them again ;)

The copy has indeed just the three INF-files you mentioned in its root directory (layout.inf, layout1.inf, msinfo.inf). other INF-files can be found in subdirectories, but they're mainly containing driver information.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now