Jump to content

[Help] Win95 Full Unattended


The008

Recommended Posts

I'm having problems to install Win95 unattended. I a batch file (msbatch.inf) to automate the setup process, but I can't get it full unattended. When the system reboots, it asks for network identification and computer name:

95networknr6.jpg

and I'm using this msbatch.inf:

[Setup]
EBD=0
Express=1
InstallType=1
PenWinWarning=0
ProductID=XXX-XXXXXXX
NoPrompt2Boot=1
Uninstall=0
VRC=1
CCP=0
[System]
DisplChar=16,800,600
[NameAndOrg]
Name=Black
Display=0
[Network]
ComputerName=BLCK
Workgroup=Group

Am I doing anything wrong ????

Thanks guys!

Link to comment
Share on other sites


this is mine from a Win98 install (the install routines are very similar):

; MSBATCH.INF
; Windows 98 Seven Years Later Edition
; By soporific ~ October 2005
; Ver 3.5.01

[BatchSetup]
Version=3.0 (32-bit)
SaveDate=06/14/05

[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="E. Australia"
Uninstall=0
NoPrompt2Boot=1

[System]
Locale=L0C09
SelectedKeyboard=KEYBOARD_00000409
DisplChar=16,800,600

[NameAndOrg]
Name="User"
Org="none"
Display=0

[Network]
ComputerName="Win98 User"
Workgroup="MSHOME"
Description="Windows 98 seven years later ed."
Display=0
PrimaryLogon=Windows
Clients=VREDIR
Protocols=MSTCP
Services=VSERVER
Security=SHARE

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

[VREDIR]
LogonDomain="Work"
ValidatedLogon=0

[VSERVER]
LMAnnounce=0
MaintainServerList=2

[OptionalComponents]
"Accessibility Options"=0
"Briefcase"=0
<<<< snip -- not important >>>>
"Web TV for Windows"=0

[Printers]

[InstallLocationsMRU]
"C:\Win98\"
"D:\win98\"
"E:\win98\"
"F:\win98\"
"G:\win98\"

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

[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,00
HKLM,%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,00
HKLM,%KEY_INSTCOMP%\BatchSetupx,Version,,"3,0,0,0"
HKLM,%KEY_INSTCOMP%\BatchSetupx,StubPath,,"%24%\progra~1\intern~1\connec~1\icwconn1 /restoredesktop
HKLM,%KEY_INSTCOMP%\>BatchAdvpack,,,">Batch 98 - Advanced Settings"
HKLM,%KEY_INSTCOMP%\>BatchAdvpack,IsInstalled,1,01,00,00,00
HKLM,%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,00
HKLM,%KEY_INSTCOMP%\>Batchwu,Version,,"3,0,0,0"
HKLM,%KEY_INSTCOMP%\>Batchwu,StubPath,,"wupdmgr.exe -shortcut"

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

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

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

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

[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_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,0
A,00,00,00
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
HKCU,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~1
QuickLaunch.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 stage
HKLM,%KEY_CURR_VER%,"ProductId",,"16305-OEM-0088921-12491"
HKLM,%KEY_CURR_VER%,"ProductKey",,"XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
HKLM,%KEY_CURR_VER%,"RegisteredOwner",,"User"
HKLM,%KEY_CURR_VER%,"RegisteredOrganization",,"none"
; This gets you past the password stage
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Network\Real Mode Net","autologon",1,00000000

[ExtraApps]
HKLM,%KEY_RUNONCESETUP%,"Applications from this millenium",,"C:\win98\@Launch.bat @DoMenu.bat"

[IE6]
; Installs IE 6 sp1 at the end of saving config settings
HKLM,%KEY_RUNONCE%,"Internet Explorer 6.0 SP1",,"C:\Win98\@Launch.bat @DoMenu.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.

Edited by soporific
Link to comment
Share on other sites

I tried changing the InstallType to 3, but didn't work either.

In Win98, there is a utility you can use to make your own msbatch.inf file, there maybe a similar one you can use for Win95. Its called batch98 and its in the resource developers pack. Hope this helps ...

Link to comment
Share on other sites

In my experience quotes or no quotes don't matter if there are no spaces after the equal sign.

But quotes do matter [crackers do matter ;) = nod to Farscape] if there are any spaces.

This is valid for all INF files.

Hope this helps.

Link to comment
Share on other sites

there are no spaces in the end of the lines, but tomorrow I'll try putting quotes and see what happens.

I created unattended installations for Windows 98 too, but I hadn't problems, and I'm not sure if I can make a FULL unattended installation for Win95. Anybody got a Full Unattended Win95 Setup? 'cause we can compare the MSBATCH's...

Thanks guys

Link to comment
Share on other sites

If quotes are only at the end of the line, SETUPX.DLL/ADVPACK.DLL will NOT correctly interpret them.

Quotes must be put both at the begining and at the end of the line.

Example:

[Version]

Signature=$CHICAGO$

[DefaultInstall]

AddReg=AR

[AR]

HKU,".Default\Software\Microsoft\Windows Script Host\Settings",DisplayLogo,0x00010001,0

HKLM,"Software\Microsoft\Windows\CurrentVersion\App Paths\EXPLORER.EXE",,,"%10%\EXPLORER.EXE"

HKLM,"Software\Microsoft\Windows\CurrentVersion\App Paths\EXPLORER.EXE",Path,,"%10%"

[sourceDisksNames]

1=,,0

Or this...

Correct:

[Network]

ComputerName="BLCK"

Workgroup="Group"

Correct:

[Network]

ComputerName=BLCK

Workgroup=Group

Incorrect:

[Network]

ComputerName=BLCK"

Workgroup="Group

HTH

Edited by MDGx
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...