Automated Installs of Windows98
|
|
One of the new capabilities of Windows9x is its ability to install many of it's options and configurations automatically.This is accomplished through the use of INF files. These can be created beforehand and used during an installation. If you are installing many computers with basically the same configuration, it is much easier to use these pre-defined INF files. All the Windows95 applications, network settings, printers etc. can be defined ahead of time and installed with little user intervention. |
If you are doing a large amount on installations over a network, I recommend you use the NETSETUP utility that is the \ADMIN\NETTOOLS\NETSETUP directory on the CD.This expands all the files to approximately 130 megs on to a network server. You can then keep these files up to date as well as have the most flexibility when modifying INF files. |
There are three basic programs you can use to create INF files. |
|
1. |
The main program available to create INF files is BATCH.EXE .
Version 1 can be found on the CD in the \ADMIN\NETTOOLS\NETSETUP (for
the original Win95) or in the \ADMIN\NETTOOLS\BSETUP directory
for OEM SR2.
|
2. |
The second program you can use to create INF files is INFINST , also in the \ADMIN\NETTOOLS\NETSETUP directory.This will allow you to use existing INF files, such as OEMSETUP.INF, and add their information to your MSBATCH.INF. For example, this will allow you to add additional programs or protocols to your installation automatically. |
3. |
The third program is INF Gen , available from Microsoft.This allows you to further customize things such as removing the INBOX, MSN icon, adding remote Registry, installing Chat etc. |
The basic syntax for using a particular INF file is:
|
The following instructions will show how to create and use basic INF
files.
|
Additional Installation Configuration Options |
|
You can add these lines to your setup MSBATCH.INF file |
|
| No Network Neighborhood | This allows you to not show the Network Neighborhood
without using System Policies
[Install] [system.config] |
| Remove Find from Start Menu | This allows you to Remove the Find command without
using System Policies
[Install] [system.config] |
| Hide Drives in My Computer | This allows you to hide the drive when you double
click on My Computer without using System Policies
[Install] [system.config] |
| No Items on the Desktop | This allows you hide all the icons on the desktop
without using System Policies
[Install] [system.config] |
| Enabling User Profiles | [Install] Addreg=system.config [system.config] |
| Enabling System Policies - Manual Update from Server | [Install] Addreg=system.config [system.config] |
| Setting Minimum Password Length | [Install] Addreg=system.config [system.config] |
| Disable Print Sharing | [Install] Addreg=system.config [system.config] |
| Disable File Sharing | [Install] Addreg=system.config [system.config] |
| Disable Dial-In Server - For secure environments | [Install] Addreg=system.config [system.config] |
| No MSN Inbox | [Install] UpdateINIs= msn.remove [msn.remove] [strings] |
| No Exchange IN box | [Install] DelReg=NoInbox_Icon [NoInbox_Icon] |
| No Welcome Screen | [Install] Addreg=remove.welcome [remove.welcome] |
| Configure for Multi-Boot | [Install] UpdateINIs=Multi.Boot [Multi.Boot] |
| Running a program once, automatically, after Windows95 is Installed | [Install] Addreg=system.config [system.config] You can have multiples of these so you can automatically install
other software at then end of your Windows95 installation. start /w program1.exe The /w causes the programs to wait before the next one is started. Also, keep the ones that need a reboot towards the end. |
| Running a program automatically after
Windows95 is Installed. This is a great way to hide it from the user. |
[Install] Addreg=system.config [system.config] |
| Automatically modifying your AUTOEXEC.BAT file | [Install] UpdateAutoBat=autobat [autobat] For example: |
| Automatically modifying your CONFIG.SYS file | [Install] UpdateCfgSys=configsys [configsys] For example: |
| Disabling the Right-Click on the Start Button | Normally, when you right button click on the Start
button, it allows you to open your programs folder, the Explorer and
run Find. In situations where you don't want to allow users to be able to do this in order to secure your computer. [Install] [disablestartbutton] Note: - Disabling these also turns off the ability to get to
them with the Microsoft keyboard shortcut keys of Window-E (for
Explorer) or Window-F (for Find) |
| Disabling Opening My Computer | In areas where you
are trying to restrict what users can do on the comptuer, it might be
beneficial to disable the abiltiy to click on My Computer and have
access to the drives, control panel etc.
[Install] [disablemycomputer] To see how to make the registry changes on existing computers, see the Registry section. |
| Having the Recycle Bin set to delete
files automatically Use this in conjunction with having Documents on the Start Menu set to be in the Recycle Bin |
[Install] Addreg=autodel [autodel] |
| Changing Client for Microsoft Networking to "Logon and Restore Network Connections" | [install] Addreg=No.Quick.Logon [No.Quick.Logon] urrentControlSet\Services\MSNP32\NetworkProvider,LogonDisconnected,1,00,00,00,00 Submitted by J P Morgan |
| NOTE: When calling multiple
sections, you need to have them all on the same line, separated by
commas. For example: Addreg=system.control, remove.welcome in the above examples. |
|
Copying Additional Files during the Installation |
|
While installing Windows95, you have the ability to copy in
additional files.
|
|
There are five basic steps you need to
go through when editing the MSBATCH.INF.
|
|
| 1. | In the [Install] section, add Copyfiles=file-list-section The file-list-section should reference the one in #2. The format is: |
| 2. | Create a [file-list-section] using the same name you
did in step #1. This is simply a list of all the files you want to copy,
one file per line.
The format is: |
| 3. | The next step is to define where you want the files
to be copied. You need to create or add to the [DestinationDirs]
section.
The format is: where ldid is the Local Disk Identifier Common ones would be: A feature is the ability to copy to any directory of your choice, as
long as it is created before you start the installation. |
| 4. | The next step is to specify a Source Disk Name. This
is simply in preparation for the next step.
The format is: The disk-number must match the one in #5 |
| 5. | The last step is to identify each of the source disk
files and location. These can be from a current windows directory or a
new one you created.
The format is: For example, if you have a new directory under your current source
called MYFILES , you would use: [SourceDisksFiles] |
| The following example would copy the
files listed under [MyFiles] to the Windows directory and the files
listed under [NewFiles] to a C:\TEST directory.
The files for MyFiles would be in a MyFiles directory below
the main Windows95 source files. The files for NewFiles would be in a
directory NewFiles directory below the main Windows95 source
files. [MyFiles] [NewFiles] [DestinationDirs] [SourceDisksNames] [SourceDisksFiles] |
|
[Install]
UpdateINIs=msn.remove, Multi.Boot, WIN.INI
DelReg=NoInbox_Icon
Addreg=remove.welcome,config.system
[WIN.INI]
win.ini,ports,,"lpt1.dos="
[strings]
Setup_MSN_DESC = "Set Up The Microsoft Network"
[msn.remove]
setup.ini,desktop,,%Setup_MSN_DESC%,MSNEXCH.EXE %Setup_MSN_DESC%
[NoInbox_Icon]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\"{00020D76-0000-0000-C000-000000000046}"
[Multi.Boot]
msdos.sys,Options,,"BootMulti=1"
[remove.welcome]
HKU,.default\software\microsoft\windows\currentversion\explorer\tips,show,1,00
[config.system]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Network,"MinPwdLen",1,6,0,0,0
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Network,"NoDialIn",1,1,0,0,0
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Network,"NoFileSharing",2,1
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Network,"NoPrintSharing",2,1
HKLM,Network\Logon,"UserProfiles",2,1
[BatchSetup]
Version=1.0
SaveDate=11/06/95
[Setup]
Express=1
EBD=0
ChangeDir=0
OptionalComponents=1
Network=1
System=0
CCP=0
CleanBoot=0
Display=0
PenWinWarning=0
InstallType=3
DevicePath=1
TimeZone="Pacific"
VRC=0
Uninstall=0
InstallDir=C:\windows
[System]
DisplChar=4,640,480
[NameAndOrg]
Name=""
Org=""
Display=0
[Network]
ComputerName=""
Workgroup=""
Description=""
Display=0
Clients=VREDIR
Protocols=MSTCP
Services=VSERVER
IgnoreDetectedNetCards=0
;Security=share
[NWLINK]
FrameType=4
NetBIOS=0
[MSTCP]
DHCP=1
DNS=0
WINS=DHCP
Hostname=e000001
[NWREDIR]
FirstNetDrive=F:
ProcessLoginScript=1
[VREDIR]
ValidatedLogon=0
[VServer]
LMAnnouce=0
[OptionalComponents]
"Accessibility Options"=1
"Briefcase"=0
"Calculator"=1
"Character Map"=0
"Clipboard Viewer"=1
"Desktop Wallpaper"=0
"Document Templates"=1
"Games"=0
"Mouse Pointers"=1
"Net Watcher"=0
"Object Packager"=0
"Online User's Guide"=1
"Paint"=1
"Quick View"=1
"System Monitor"=1
"System Resource Meter"=1
"Windows 95 Tour"=1
"WordPad"=1
"Dial-Up Networking"=0
"Direct Cable Connection"=0
"HyperTerminal"=0
"Phone Dialer"=0
"Backup"=1
"Defrag"=1
"Disk compression tools"=0
"CompuServe Mail Services"=0
"Microsoft Exchange"=0
"Microsoft Mail Services"=0
"Microsoft Fax"=0
"Microsoft Fax Services"=0
"Microsoft Fax Viewer"=0
"Central European language support"=0
"Cyrillic language support"=0
"Greek Language support"=0
"Audio Compression"=1
"CD Player"=1
"Jungle Sound Scheme"=0
"Media Player"=1
"Musica Sound Scheme"=0
"Robotz Sound Scheme"=0
"Sample Sounds"=0
"Sound Recorder"=0
"Utopia Sound Scheme"=0
"Video Compression"=1
"Volume Control"=1
"Blank Screen"=0
"Curves and Colors"=1
"Flying Through Space"=0
"Flying Windows"=0
"Mystify Your Mind"=0
"Scrolling Marquee"=0
"The Microsoft Network"=0
[Printers]
Your QMS Printer=QMS-PS 810,LPT1
HP III=HP LaserJet III,LPT2
This site is copyrighted. No portion may be reproduced without my written permission.