2 Ways to Convert REG to EXE, BAT, VBS & AU3
A lot of Windows and even third party software settings are stored in the registry. Editing the registry is mostly performed by advanced users rather than beginners because wrongly deleting or changing an important registry value can result in an unbootable Windows. This is why it is always good to backup the whole branch of the registry that you want to edit by using the Export function. The exported registry file will be saved as a .reg extension. Importing back the exported .reg file is as easy as running it and clicking the Yes button on the scary warning window that says “Adding information can unintentionally change or delete values and cause components to stop working.”
Since registry editing is not really meant for computer beginners, there is a DisableRegistryTools setting in the registry that prevents the user from launching regedit and the command line reg.exe tool. This will also effectively block the ability to import a .reg file. This restriction is useful in a corporate environment to prevent users from messing up their computers but malware also uses this method to prevent the not-so-advanced user from attempting to disable the malware from the registry startup locations.
A simple way to bypass this restriction is to convert the .reg file to other file format such as .exe and .vbs. Here we have 2 freeware tools that can assist in converting .reg file to various formats including batch (.bat) and AutoIt script (AU3).
1. Reg2exeReg2exe is a free and open source program that can easily convert a .reg file to an executable .exe file. To use Reg2exe, run the program (Reg2exe.exe) as administrator and click the Register button. The Register button will turn to “Unregister” to show that you’ve successfully registered the command into right click context menu.
To convert a .reg file to .exe, simply right click on the .reg file and select “Convert to .exe” which will create an executable file with the same path and file name as the original .reg file.
Do take note that it is necessary to run the EXE file that was converted from the registry file as administrator, unless User Account Control is disabled. There is a bug in Reg2exe where you cannot unregister the “Convert to exe” command in right click context menu. You can manually delete it in the registry by going to the path below and deleting the whole Reg2exe key.
HKEY_CLASSES_ROOT\regfile\shell\Reg2exe
Alternatively you can download this pre-made .reg file and run it to remove the “Convert to exe” from your right click context menu.
2. Reg Converter
Reg Converter is also freeware and it is able to convert a .reg file into .BAT, .VBS and .AU3 format. After running Reg Converter, first of all select the output format, then browse for the .reg file that you want to convert. Click the Convert button and the registry file content will be converted to the selected output code. You can make changes in the code if you want to and finally click the Save button to create the output file based on the .reg file.
If you find yourself converting .reg files quite often, the context menu options found in the Menu button will be very useful to add commands to right click.
Additional Notes: Basically the converted file will do exact same thing as the .reg file except it is just a different format and method. From what we’ve tested, a converted .reg file to .EXE, .VBS and .AU3 (with AutoIt installed) will work even if the DisableRegistryTools is enabled. However the .bat format will not work since it uses the command line based reg.exe tool which is blocked when the DisableRegistryTools is enabled. Another possible problem with the converted .EXE is some antivirus such as Comodo, McAfee and Symantec will flag it as infected.
Thank you raymond Here is the new version of The Reg Converter
Reg Converter v1.1 – What’s New – (Friday , 18. August 2017)
1. [ Fixed ] – Reg_Dword is not fully supported
2. [ Fixed ] – Comments at the end of the Registry Key or values are not supported
3. [ Fixed ] – Minor BUGS and some code weakness
4. [ Added ] – Language Support
5. [ Added ] – open Registry key with regedit feature
6. [ Added ] – Jump to Registry key feature
sordum.org/8478/reg-converter-v1-1/
nice
This program may be useful for beginners and people who have malware and can’t get rid of it somehow and needs to urgently merge some registry scripts into the registry.
One can easily bypass this restriction by using a vbscript file (Wscript.Shell object has a method called RegWrite, in which you can edit the registry under the Wscript.exe program. Other programs can instantiate activex such as IE, Windows Explorer, mshta, HTML Help, etc because they utilize the IE web browser control.
Also it is possible to edit the registry using an INF file. This type of script has among other features the ability to write to the windows registry under Rundll32.exe.
You can use the command line registry editor too, the command line tool reg.exe, that comes on Windows 2000 and above.
Nice Hack! Thanks for the Excellent Idea!
Thanks Raymond very useful for me. I’m a software developer. Many thanks again
Another Nice tool Raymond :-)
With more and more programs mucking with permissions, this is a nice tool.
great tip.
Sometimes when clicking on the reg the reg key is not imported and this tiny soft can come to help. Good soft did it again. Thanks.
Another great and useful tip, thanks mate, cheers!
very nice ray! xD
Nice info.