Friday, February 22, 2008

Additional Installation Configuration Options

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]
Addreg=system.config

[system.config]
HKCU,Software\Microsoft\Windows\Current Version\Policies\Explorer,"NoNetHood",3,00000001

Remove Find from Start Menu This allows you to Remove the Find command without using System Policies

[Install]
Addreg=system.config

[system.config]
HKCU,Software\Microsoft\Windows\Current Version\Policies\Explorer,"NoFind",3,00000001

Hide Drives in My Computer This allows you to hide the drive when you double click on My Computer without using System Policies

[Install]
Addreg=system.config

[system.config]
HKCU,Software\Microsoft\Windows\Current Version\Policies\Explorer,"NoDrives",3,3ffffff

No Items on the Desktop This allows you hide all the icons on the desktop without using System Policies

[Install]
Addreg=system.config

[system.config]
HKCU,Software\Microsoft\Windows\Current Version\Policies\Explorer,"NoDesktop",3,00000001

Enabling User Profiles [Install]
Addreg=system.config

[system.config]
HKLM,Network\Logon,"UserProfiles",2,1

Enabling System Policies - Manual Update from Server [Install]
Addreg=system.config

[system.config]
te,"NetworkPath",,"\\server_name\share_name\policy_name.pol"
HKLM,System\CurrentControlSet\control\Update,"UpdateMode",1,2,0,0,0

Setting Minimum Password Length [Install]
Addreg=system.config

[system.config]
HKLM\Microsoft\Windows\CurrentVersion\Policies\Network,"MinPwdLen",1,6,0,0,0
The above example sets it to 6 characters

Disable Print Sharing [Install]
Addreg=system.config

[system.config]
Microsoft\Windows\CurrentVersion\Policies\Network,"NoPrintSharing",2,1

Disable File Sharing [Install]
Addreg=system.config

[system.config]
\Microsoft\Windows\CurrentVersion\Policies\Network,"NoFileSharing",2,1

Disable Dial-In Server - For secure environments [Install]
Addreg=system.config

[system.config]
Microsoft\Windows\CurrentVersion\Policies\Network,"NoDialIn",1,1,0,0,0

No MSN Inbox [Install]
UpdateINIs= msn.remove

[msn.remove]
setup.ini,desktop,,%Setup_MSN_DESC%,MSNEXCH.EXE %Setup_MSN_DESC%

[strings]
Setup_MSN_DESC="Set Up The Microsoft Network"

No Exchange IN box [Install]
DelReg=NoInbox_Icon

[NoInbox_Icon]
on\explorer\Desktop\NameSpace\"{00020D76-0000-0000-C000-000000000046}"

No Welcome Screen [Install]
Addreg=remove.welcome

[remove.welcome]
HKU,.default\software\microsoft\windows\currentversion\explorer\tips,show,1,00

Configure for Multi-Boot [Install]
UpdateINIs=Multi.Boot

[Multi.Boot]
msdos.sys,Options,,"BootMulti=1"

Running a program once, automatically, after Windows95 is Installed [Install]
Addreg=system.config

[system.config]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce,"Program To Run Once",," Your Program "

You can have multiples of these so you can automatically install other software at then end of your Windows95 installation.
Occassionaly with many Run Once commands, some can be executing at the same time.
To get around this problem, have the Run Once point to a batch file. This batch file can have all the applications you want to install
but run with a start command. The syntax would be something like:

start /w program1.exe
start /w program2.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]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,"Program to Run Every Time",," Your Program "

Automatically modifying your AUTOEXEC.BAT file [Install]
UpdateAutoBat=autobat

[autobat]
CmdAdd=command-name[,command-parameters]
CmdDelete=command-name

For example:
CmdAdd=set, "Variable=Value"
CmdAdd=doskey, /insert
CmdDelete= old_program

Automatically modifying your CONFIG.SYS file [Install]
UpdateCfgSys=configsys

[configsys]
DevAddDev=driver-name,configkeyword[,flag][,param-string]
DevDelete=driver-name

For example:
DevAddDev=emm386.exe,device,,NOEMS
DevDelete=qem386.exe

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]
DelReg=disablestartbutton

[disablestartbutton]
HKCR,Directory/Shell/Find
HKCR,Folder/Shell/Explore
HKCR,Folder/Shell/Open

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)
To see how to make the registry changes on existing computers, see the Registry Tips section.

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]
DelReg=disablemycomputer

[disablemycomputer]
HKCR,CLSID\"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"

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]
TWARE\Microsoft\Windows\CurrentVersion\explorer\BitBucket,"PurgeInfo",
0,00,01,00,00,00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,
00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,00,0a,00,00,00,00,08,64,7c,01,00

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.

No comments: