New Registry File - Add to Context Menu

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

   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
REG.jpg



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




 

Attachments

Last edited:
coooooooooooooooooool :party:
 

My Computer My Computer

At a glance

Windows 10 Home 64BitIntel Core i5 10400 @ 2.90GHz8.00GB Single-Channel Unknown @ 1329MHz (16-2...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self assembled
OS
Windows 10 Home 64Bit
CPU
Intel Core i5 10400 @ 2.90GHz
Motherboard
Intel Corporation DG41WV (PROCESSOR)
Memory
8.00GB Single-Channel Unknown @ 1329MHz (16-20-20-38)
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
DELL E170S
Screen Resolution
1280x1024 pixels
Hard Drives
931GB TOSHIBA DT01ACA100 (SATA)
238GB TEAM TM8PS7256G (SATA SSD)
Case
Nothing Fancy
Cooling
Fans
Keyboard
A4 Tech Co LTD
Mouse
A4 Tech Co Ltd/Logitech
Internet Speed
25 Mbps
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 Computer My Computer

At a glance

6.1x
Computer type
PC/Desktop
OS
6.1x
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 Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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 Computer My Computer

At a glance

6.1x
Computer type
PC/Desktop
OS
6.1x
I'm not sure either, but that does look like a possible idea though.
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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 Computer My Computer

At a glance

6.1x
Computer type
PC/Desktop
OS
6.1x
That should serve as a good workaround. Great job. :)
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top