When logged on to an administrator account in a Windows Vista or Windows 7 PC and attempt to merge a .REG file, you’ll see the User Account Control (UAC) prompt asking for your consent to allow the process to start. Regedit.exe uses the highestavailable execution level (as specified in its manifest) and thus it prompts for consent to launch with the highest available privilege.
The trick is to add a "Merge (as User)" option to the right-click menu for .REG files, which should run the console tool REG.EXE. Here is how to do that.
Add "Merge (as User)" Context Menu Option for .REG files
1. Launch Regedit.exe to open the Registry Editor2. Navigate to the following key:
HKEY_CLASSES_ROOT \ regfile \ shell
3. Create a subkey named open24. Under open2, create another subkey named command
5. Select command, and assign the following data for the (default) value:
reg.exe import "%1"
Note: If you need to see the output window every time, use the following data instead
cmd /k reg.exe import "%1"
6. Exit the Registry Editor.
Editor’s Note: If the .REG file has instructions to modify a system-wide branch (say, HKEY_LOCAL_MACHINE) the REG.EXE console tool (running as standard user) encounters an ACCESS DENIED error, but simply proceeds onto the next entry in the .REG file to carry out rest of the instructions. However, the output reads "ERROR: Error accessing the registry", indicating that one or more of the registry keys/values as specified in the .REG could not be updated.
0 Responses to How to Add “Merge (as User)” Right-Click Menu Option for REG Files