Windows Registry Editor Version 5.00
; Folder Open With
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Open With]
@="{09799AFB-AD67-11d1-ABCD-00C04FC30936}"
Add "Open With..." To Folder Context Menu - MSFN Forums
Add "Open With..." To Folder Context Menu - MSFN Forums
Update Switches
Update Switches
- /? : Display the list of installation switches.
- /u : Use Unattended mode.
- /f : Force other programs to quit when the computer shuts down.
- /n : Do not back up files for removal.
- /o : Overwrite OEM files without prompting.
- /z : Do not restart when the installation is complete.
- /q : Use Quiet mode (no user interaction).
- /l : List installed patches.
- /x : Extract the files without running Setup.
Using Dirids
Using Dirids
Dirid values from 16384 through 32767 are reserved for special shell folders. The following table shows dirid values for these folders.
Value | Destination Directory |
---|---|
01 | SourceDrive:\pathname (the directory from which the INF file was installed) |
10 | Windows directory %windir%. |
11 | System directory %windir%\system32 |
12 | Drivers directory %windir%\system32\drivers |
17 | INF file directory |
18 | Help directory |
20 | Fonts directory |
21 | Viewers directory |
23 | Color directory (ICM) (not used for installing printer drivers) |
24 | Root directory of the system disk. This is the root directory of the disk on which Windows files are installed. For example, if dirid 10 is "C:\winnt", then dirid 24 is "C:\". |
25 | Shared directory |
30 | Root directory of the boot disk, also known as "ARC system partition," for NT-based systems. (This might or might not be the same directory as the one represented by dirid 24.) |
50 | System directory for NT-based operating systems %windir%\system |
51 | Spool directory (not used for installing printer drivers − see Printer Dirids) |
52 | Spool drivers directory (not used for installing printer drivers) |
53 | User profile directory |
54 | Directory where ntldr.exe and osloader.exe are located (NT-based systems only) |
55 | Print processors directory (not used for installing printer drivers) |
-1 | Absolute path |
Dirid values from 16384 through 32767 are reserved for special shell folders. The following table shows dirid values for these folders.
Value | Shell Special Folder |
---|---|
16406 | All Users\Start Menu |
16407 | All Users\Start Menu\Programs |
16408 | All Users\Start Menu\Programs\Startup |
16409 | All Users\Desktop |
16415 | All Users\Favorites |
16419 | All Users\Application Data |
16422 | Program Files |
16425 | %WinDir%\System32 (valid for Microsoft Win32 user-mode applications running under Windows on Windows (WOW64)) |
16426 | Program Files (valid for Win32 user-mode applications running under WOW64) |
16427 | Program Files\Common |
16428 | Program Files\Common (valid for Win32 user-mode applications running under WOW64) |
16429 | All Users\Templates |
16430 | All Users\Documents |
Junction Link Magic
Junction Link Magic (734 kB - Windows 2000/XP/2003/Vista/2008/Windows 7) is a utility that lets you create junction points with Windows 2000, XP, 2003, Vista, Windows Server 2008 and Windows 7.
Junction Link Magic automatically lists existing junction points, and it offers an easy interface to add, modify or remove junction points.
Junction Link MagicDescription of the RunOnceEx Registry Key
Description of the RunOnceEx Registry Key
RunOnceEx has the following features:
RunOnceEx has the following features:
- Status: A dialog box is displayed while the items contained in the registry key are being processed. The entries to be processed are grouped into sections and the dialog box highlights the current section being processed. You can disable the status dialog box feature.
- Performance: The majority of the commands contained in the Run and RunOnce registry keys create separate processes, which is inefficient. The RunOnceEx registry key does not create a separate process. The RunOnceEx registry key also supports a dependency list of DLLs that remain loaded while either all the sections or some of the sections are being processed.
- Error Handling: If an exception occurs while calling a function in a DLL, the exception is caught and an error dialog box is displayed to the user. You can suppress this error dialog box by using a flag in the RunOnceEx registry key. You can also set a flag to enable log errors and run the RunOnceEx registry key.
- Deterministic: The RunOnceEx registry key sorts the entries and sections alphabetically to force a deterministic order.
Cleanup tool for .NET Framework
Aaron Stebner's WebLog : Automated cleanup tool to remove the .NET Framework 1.0, 1.1, 2.0, 3.0 and 3.5
This .NET Framework cleanup tool is designed to automatically perform a set of steps to remove selected versions of the .NET Framework from a computer. It will remove files, directories, registry keys and values and Windows Installer product registration information for the .NET Framework. The tool is intended primarily to return your system to a known (relatively clean) state in case you are encountering .NET Framework installation, uninstallation, repair or patching errors so that you can try to install again.
Change Logon Background - Windows 7
Windows Registry Editor Version 5.00
1. Import reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background]
"OEMBackground"=dword:00000001
2. Create folders info and backgrounds
%windir%\system32\oobe\info\backgrounds
3. Add image to backgrounds folder.
Name: backgroundDefault.jpg
Max Size: 256KB
1. Import reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background]
"OEMBackground"=dword:00000001
2. Create folders info and backgrounds
%windir%\system32\oobe\info\backgrounds
3. Add image to backgrounds folder.
Name: backgroundDefault.jpg
Max Size: 256KB
Autologon Windows
control userpasswords2
Uncheck users must enter a user name and password to use this computer.
Uncheck users must enter a user name and password to use this computer.
Windows Setup Function Keys
Textmode - When the F6 prompt appears:
"Setup is loading files (Kernel Security Provider)..."
"Setup is loading files (FAT file system)..."
"Setup is loading files (Windows NT file system (NTFS))..."
"Setup is starting Windows"
Textmode - When the F2 prompt appears (F2 appears immediately after F6):
During GUI:
- F5 - For computer type or hardware abstraction layer (HAL) selection
- F6 - To install third-party SCSI and host controller drivers
- F7 - To run Setup without Advanced Configuration and Power Interface (ACPI) No visual clues given. Presume it works.
- F10 - To bypass the menu screens and to load the Recovery Console
"Setup is loading files (Kernel Security Provider)..."
"Setup is loading files (FAT file system)..."
"Setup is loading files (Windows NT file system (NTFS))..."
"Setup is starting Windows"
Textmode - When the F2 prompt appears (F2 appears immediately after F6):
- F2 - To automatically start the Automated System Recovery (ASR) process
- F10 or R - To load the Recovery Console
During GUI:
- SHIFT+F10 - To enable access to a command prompt during GUI-Mode Setup
- SHIFT+F11 - To display "old-style" wizards that give more detail
Other Components Install/Remove
LaunchINFSectionEx Function
Launches a section of an information (INF) file.
rundll32 advpack.dll,LaunchINFSection [file] , [section]
Ex: rundll32 advpack.dll,LaunchINFSection blah.inf,Uninstall
rundll32 advpack.dll,LaunchINFSectionEx nLite.inf,C,,4,N
nLite.inf, the information file
C, the section of the INF file to launch,
, the fully qualified path of the cabinet file (CAB) that contains the INF file
4, a flag value that specifies the installation mode (4 Quiet mode, no UI)
N An optional fifth field specifies whether to reboot upon completion. If not present, the installer will reboot only if necessary (smart reboot).
InstallHinfSection Function
EX: rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\Inf\ie.inf
Launches a section of an information (INF) file.
rundll32 advpack.dll,LaunchINFSection [file] , [section]
Ex: rundll32 advpack.dll,LaunchINFSection blah.inf,Uninstall
rundll32 advpack.dll,LaunchINFSectionEx nLite.inf,C,,4,N
nLite.inf, the information file
C, the section of the INF file to launch,
, the fully qualified path of the cabinet file (CAB) that contains the INF file
4, a flag value that specifies the installation mode (4 Quiet mode, no UI)
N An optional fifth field specifies whether to reboot upon completion. If not present, the installer will reboot only if necessary (smart reboot).
InstallHinfSection Function
EX: rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\Inf\ie.inf
Optional Components Install/Remove
sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:[path to text file] /q
Example text file contents...
Remove:
------------------
[components]
pinball = off
------------------
Install:
------------------
[components]
pinball = on
------------------
Available switches

Example text file contents...
Remove:
------------------
[components]
pinball = off
------------------
Install:
------------------
[components]
pinball = on
------------------
Available switches
Entry | Description |
---|---|
AccessOpt | Specifies whether to install the Accessibility wizard. |
Calc | Specifies whether to install the Calculator feature. |
charmap | Specifies whether to install the Character Map feature that inserts symbols and characters into documents. |
chat | Specifies whether to install the Chat feature. |
clipbook | Specifies whether to install the clipboard viewer. |
complusnetwork | Specifies whether to enable network COM+ access. |
deskpaper | Specifies whether to install a desktop background on the computer desktop. |
dialer | Specifies whether to install the Phone Dialer feature. |
dtcnetwork | Specifies whether to enable Microsoft Distributed Transaction Coordinator (DTC) network access. |
fax | Specifies whether to install the Fax feature. |
fp_extensions | Specifies whether to install Microsoft FrontPage® server extensions. |
freecell | Specifies whether to install the Freecell game. |
hearts | Specifies whether to install the Hearts game. |
hypertrm | Specifies whether to install the HyperTerminal feature. |
IEAccess | Specifies whether to install visible entry points to Internet Explorer. |
media_clips | Specifies whether to install sample sound clips on the computer. |
media_utopia | Specifies whether to install the Utopia Sound Scheme on the computer. |
minesweeper | Specifies whether to install the Minesweeper game on the computer. |
mousepoint | Specifies whether to install all the available mouse pointers distributed with Windows XP or Windows Server 2003 family. |
msnexplr | Specifies whether to install MSN Explorer. |
mswordpad | Specifies whether to install the WordPad feature on the computer. |
netoc | Specifies whether to install additional optional networking components. |
objectpkg | Specifies whether to install the Object Packager feature (packager.exe) on the computer. |
OEAccess | Specifies whether to install visible entry points to Outlook Express. |
paint | Specifies whether to install the Microsoft Paint feature on the computer. |
pinball | Specifies whether to install the Pinball game on the computer. |
rec | Specifies whether to install the Sound Recorder feature on the computer. |
rootautoupdate | Specifies whether to turn on the Optional Components Manager (OCM) Update Root Certificates. |
solitaire | Specifies whether to install the Solitaire game on the computer. |
spider | Specifies whether to install the Spider Solitaire game on the computer. |
templates | Specifies whether to install Document Templates on the computer. |
vol | Specifies whether to install the Volume Control feature on the computer. |
WMAccess | Specifies whether to install visible entry points to Windows Messenger. |
WMPOCM | Specifies whether to install visible entry points to Windows Media Player. |
zonegames | Specifies whether to install the Microsoft Gaming Zone Internet games on the computer. |
Remove Deny File Permissions from Flash
%WinDir%\System32\Macromed\Flash\FlashUtil10b.exe -uninstallUnlock %WinDir%\System32\Macromed\Flash\Flash10b.ocx
Minimum needed in WINNT.SIF to insert key - XP SP3
Minimum needed in WINNT.SIF to insert key - XP SP3
[Data]
MsDosInitiated=0
UnattendedInstall="Yes"
[Unattended]
UnattendMode=ProvideDefault
[UserData]
ProductKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
ProductKey and UnattendedInstall can be with or without quotes.
[Data]
MsDosInitiated=0
UnattendedInstall="Yes"
[Unattended]
UnattendMode=ProvideDefault
[UserData]
ProductKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
ProductKey and UnattendedInstall can be with or without quotes.
Classic Setup In XP
Delete winntbbu.dll and remove the entry from DOSNET.INF, HIVESYS.INF, and TXTSETUP.SIF.
DCOM Server Process Launcher
Disabling DCOM Server Process Launcher Service causes Installshield to fail and defrag to not run.
Hide Context Menu Items Until Shift Is Pressed
Add "extended"="" to item
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\ITEM]
@="Item"
"extended"=""
Remove Attributes Reg File
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\Shell\RemoveAllAttributes]
@="&RemoveAllAttributes"
[HKEY_CLASSES_ROOT\*\Shell\RemoveAllAttributes\Command]
@="attrib -H -R -S -A %1"
TweakUI Bug
Drive Letters section is mixed up as follows:
- Show all drive letters before the label is in fact Show network drive letters before the label, and show local drive letters after the label
- Show network drive letters before the label, and show local drive letters after the label is in fact Never show drive letters
- Never show drive letters is in fact Show all drive letters before the label *
IE Search Fix
Believe this fix only affected Win2K
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\URLSearchHooks]
"{CFBFAE00-17A6-11D0-99CB-00C04FD64497}"=""
Subscribe to:
Posts (Atom)