How to create registry keys
There is a special language used for .reg - windows Registry Editor Files.
Below is the workflow of a simple script.
Firstly, you need to specify in which Registry Editor must be use to change registry data.
Then, show the path
Specify the Registry key.
Specify the new Value.
First, enter the Registry Editor version using the syntax below.
Windows Registry Editor Version
Then, place a space and type the version (we recommend to use 5.00 for Windows XP)
"Windows Registry editor 5.00"
Then, specify which path should be used using brackets - [and].
[]
Then, specify the Registry Key within inverted commas. (""); type an equation mark a space, and word "Dword”, a colon and new value in decimal format.
If you are going to modify the key with a word phase, do not add the syntax, Dword.
(Please view examples)
Note that the Beginning of Path field must be without spaces & it must according to following examples.
HKey_Local_machine\Software....
HKey_Current_user\...
HKey_Classes...
After the "HKey_...” phase you can use spaces as needed.
In the data field, add the word Dword if the data type is a number.
The number must consist with 8 digits (if the data is 1, it must be as 00000001)
If the data field is consist of letters, add inverted commas as in examples.
Below are complete examples....
A registry key with a number as the key data.
---------------------
Windows registry editor version 5.00
[HKey_Local_Machine\software\Microsoft\Windows NT\currentversion\winlogon]
"LogonType"=Dword:00000000
---------------------
Here is an example to modify a registry key with a string field.
---------------------
Windows registry editor version 5.00
[hkey_local_machine\software\Microsoft\windows nt\currentversion\winlogon]
"Logonmsg"="Ayesh is the best"
---------------------
In addition , you can modify more data fields in the same registry key.
Just specify the data field in the next line.
Example :
---------------------
Windows registry editor version 5.00
[hkey_local_machine\software\Microsoft\windows nt\currentversion\winlogon]
"Logonmsg"="Ayesh is the best"
"LogonType"=Dword:00000000
---------------------
Also, you can specify more paths and data to be changed in the same .reg file.
Follow the example below.
---------------------
Windows registry editor version 5.00
[hkey_local_machine\software\Microsoft\windows nt\currentversion\winlogon]
"Logonmsg"="Ayesh is the best"
"LogonType"=Dword:00000000
[hkey_classes\.3gp\open with]
"Open with eS"=Dword:00000001
---------------------
Note that you should leave a blank line between changes of Path.
Do not leave a blank line between path and data.
Semi colons in the file will be ignored.
(";by Ayesh" - will be skipped)
Let’s compile the file.
In Notepad,
File > Save as...
Then choose where to install and file type as Any File(or All Files)
Enter the file name as "Registry.reg" WITH Inverted Commas.
Use the same method to revert changes -- undo to the last data.
Compile it..
Instant Registry Tweaks have been cooked!
You can rename registry keys you created without changing its extension - .reg. To merge registry key, just double click and click Yes.
If it is too difficult to make your own .reg script , you can Extract and edit registry tweaks.
Click here to know how to extract Registry data.
To enable Registry editor, please go here.
- Login to post comments
