Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: New Registry File - Add to Context Menu


New Registry File - Add to Context Menu

How to Add "New Registry File" to the Context Menu in Windows
Published by Brink
15 Dec 2011
Published by

How to Add "New Registry File" to the Context Menu in Windows

information   Information
This will show you how to add Registration Entries to the right click "New" context menu to make creating a new REG file easier for all users in Vista, Windows 7, and Windows 8.

You will need to be logged in as an administrator to be able to do the steps in this tutorial.


EXAMPLE: "New Registry File" in Context Menu
Name:  REG.jpg
Views: 3507
Size:  82.4 KB

Here's How:
1. To Add "Registration Entries" to "New" Context Menu
A) Click/tap on the Download button below to download the file below, and go to step 3 below.
Add_New_REG_to_Context_Menu.reg
download
2. To Remove "Registration Entries" from "New" Context Menu
NOTE: This is the default setting.
A) Click/tap on the Download button below to download the file below, and go to step 3 below.
Remove_New_REG_from_Context_Menu.reg
download
3. Save the .reg file to the desktop.

4. Double click/tap on the downloaded .reg file to merge it.

5.When prompted, click/tap on Run, Yes (UAC-Windows 7/8) or Continue (UAC-Vista), Yes, and OK to approve merging the .reg file.

6. Sometimes it may take a moment before this context menu item to actually be added or removed. If not, then restart the computer to apply.

7. You can now delete the downloaded .reg file if you like.
That's it,
Shawn




16 Dec 2011   #1
koolkat77

Microsoft Community Contributor Award Recipient

Windows 10 Home 64Bit
 
 

coooooooooooooooooool


My System SpecsSystem Spec
1 Week Ago   #2
mrk7frm

Windows 7 Ultimate 64bit
 
 

How to set the proper encoding for this new regfile ? (regfile should be UTF16-LE IIRC)
My default text files is custom set to UTF-8. Without sepcifying the proper encoding in this new reg file, i endup with a non-working reg file (with UTF-8 encoding)
My System SpecsSystem Spec
1 Week Ago   #3
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Hello mrk7frm,

It uses whatever format you have set as the default for Notepad, so the registry entries from the tutorial have no affect.
My System SpecsSystem Spec
.

1 Week Ago   #4
mrk7frm

Windows 7 Ultimate 64bit
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello mrk7frm,

It uses whatever format you have set as the default for Notepad, so the registry entries from the tutorial have no affect.
I'm searching for a solution. I'm sure there's a way .. Maybe changing the default PersistentHandler from {5E941D80-BF96-11CD-B579-08002B30BFEB} (plain text) to one that support UTF16-LE ... ?
My System SpecsSystem Spec
1 Week Ago   #5
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

I'm not sure either, but that does look like a possible idea though.
My System SpecsSystem Spec
1 Week Ago   #6
mrk7frm

Windows 7 Ultimate 64bit
 
 

Quote   Quote: Originally Posted by Brink View Post
I'm not sure either, but that does look like a possible idea though.
I decided to just store a template reg file in the %Systemroot%\ShellNew , then added the "FileName" subkey to [HKEY_CLASSES_ROOT\.reg\ShellNew]

I'm sure there's another way, but it seems undocumented.
Thanks

Looks like this:
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.reg]
@="regfile"

[HKEY_CLASSES_ROOT\.reg\PersistentHandler]
"OriginalPersistentHandler"="{5E941D80-BF96-11CD-B579-08002B30BFEB}"

[HKEY_CLASSES_ROOT\.reg\ShellNew]
"FileName"="NewRegFile.reg"
"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
  00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,\
  2d,00,34,00,37,00,30,00,00,00
My System SpecsSystem Spec
1 Week Ago   #7
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

That should serve as a good workaround. Great job.
My System SpecsSystem Spec
Comment

 New Registry File - Add to Context Menu




Tutorial Tools




Similar help and support threads
Windows 7 Tutorial Category
New VBScript File - Add to Context Menu
How to Add "New VBScript File" to the Context Menu in Windows This tutorial will show you how to add VBScript Script File to the right click "New" context menu to make creating a new VBS file easier for all users in Vista, Windows 7, and Windows 8. You will need to be logged in as...
Tutorials
New Batch File - Add to Context Menu
How to Add "New Batch File" to the Context Menu in Windows This will show you how to add Windows Batch File to the right click "New" context menu to make creating a new BAT file easier for all users in Vista, Windows 7, and Windows 8. You will need to be logged in as an administrator to be...
Tutorials
How to remove context menu entries (somewhere in registry I think?)
I installed a program called Folder Size which I am mostly happy with: Folder Size - Freeware. Check the directory sizes and folder sizes on your computer with this freeware tree size analysis tool. However, it added an entry to my right click context menu everywhere which is bothering me. I...
General Discussion
Run as administrator - Add to MSI File Context Menu
How to Add "Run as administrator" to Context Menu of MSI Files in Windows This will show you how to add Run as administrator to the context menu of all MSI files for all users in Vista, Windows 7 and Windows 8. You must be logged in as an administrator to be able to do this tutorial. ...
Tutorials
.inf file context menu
I want to right click on an inf-file and choose install. But i don't have it there. It's right after a fresh install of the Windows (because of other reasons). I remember that every time when i reinstall Windows this option is not available on the context menu but after i work on the Windows a...
General Discussion
Registry - Context Menu
The registry entries for the context menu seem to have got very complicated - does anyone understand them? I want to allow right clicking on a zip file to result in selecting something I've written which inteligently unzips a file. Any ideas?
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 08:08.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App