Add "Open With..." To Folder Context Menu - MSFN Forums

Add "Open With..." To Folder Context Menu - MSFN Forums


Windows Registry Editor Version 5.00

; Folder Open With

[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Open With]
@="{09799AFB-AD67-11d1-ABCD-00C04FC30936}"

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


ValueDestination Directory
01SourceDrive:\pathname (the directory from which the INF file was installed)
10Windows directory %windir%.
11System directory %windir%\system32
12Drivers directory %windir%\system32\drivers
17INF file directory
18Help directory
20Fonts directory
21Viewers directory
23Color directory (ICM) (not used for installing printer drivers)
24Root 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:\".
25Shared directory
30Root 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.)
50System directory for NT-based operating systems %windir%\system
51Spool directory (not used for installing printer drivers − see Printer Dirids)
52Spool drivers directory (not used for installing printer drivers)
53User profile directory
54Directory where ntldr.exe and osloader.exe are located (NT-based systems only)
55Print processors directory (not used for installing printer drivers)
-1Absolute path

Dirid values from 16384 through 32767 are reserved for special shell folders. The following table shows dirid values for these folders.


ValueShell Special Folder
16406All Users\Start Menu
16407All Users\Start Menu\Programs
16408All Users\Start Menu\Programs\Startup
16409All Users\Desktop
16415All Users\Favorites
16419All Users\Application Data
16422Program Files
16425%WinDir%\System32 (valid for Microsoft Win32 user-mode applications running under Windows on Windows (WOW64))
16426Program Files (valid for Win32 user-mode applications running under WOW64)
16427Program Files\Common
16428Program Files\Common (valid for Win32 user-mode applications running under WOW64)
16429All Users\Templates
16430All Users\Documents

Windows SteadyState

Allows you to restrict users and revert system back to a previous state.

Windows SteadyState

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 Magic

Moving a Windows Installation to Different Hardware

Moving a Windows Installation to Different Hardware

Description of the RunOnceEx Registry Key

Description of the RunOnceEx Registry Key

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.

Service Pack 3 for Windows Fundamentals for Legacy PCs

http://support.microsoft.com/?kbid=958255

https://www.microsoft.com/downloads/details.aspx?familyid=b0aacb27-707d-4ed1-8bd9-25a821096281

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

Autologon Windows

control userpasswords2

Uncheck users must enter a user name and password to use this computer.

Disable Hibernate - Windows 7

powercfg -h off

Windows Setup Function Keys

Textmode - When the F6 prompt appears:
  • 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
Recovery Console loads right after...
"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 
Textmode - When the "Welcome to Setup" screen is displayed, the following function keys can be used:
  • F10 or R - To load the Recovery Console
Welcome to Setup only appears if using a non-unattended CD


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
Note: Microsoft's page is wrong - http://support.microsoft.com/kb/295116

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

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
sysoc.png



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.

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}"=""