Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
SureKen

REGEDIT4 vs. Windows Registry Editor V. 5

14 posts in this topic

I've got a txt with some reg tweaks I wrote some time ago. The file starts with "REGEDIT4". While trying to merge it with a new reg file, I've noticed that the newer one says "Windows Registry Editor Version 5.00".

What's the difference between version 4 and 5?

Should I get rid of "REGEDIT4" and put all the keys in the other (newer) file?

Thanks.

0

Share this post


Link to post
Share on other sites

No!

REGEDIT4 is recognized in all versions including XP, the major difference between the two is that the Version 5.00 is in unicode format. Since the file you have will not be unicode there is no reason to alter it.

0

Share this post


Link to post
Share on other sites

Strange is there is only one difference (AFAIK)... Regedit4 support extended strings, e.g. using variables.

0

Share this post


Link to post
Share on other sites

Ok, I understand, but since I don't need unicode support, it doesn't really matter if I put the strings under "REGEDIT4" or "Windows Registry ... 5.0", does it?

thanks

0

Share this post


Link to post
Share on other sites

Let me explain this with an example.

This is the "REGEDIT4" file:

; Auto-Expand folders
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"FriendlyTree"=dword:00000001


; Disable "Encrypt/Decrypt" on folders' context menu
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"EncryptionContextMenu"=dword:00000000


; Internet Explorer
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main]
"IEWatsonDisabled"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"DisablePasswordCaching"=dword:00000001

and this is the new reg file:

; Disable 'Browse Web For Program' To Open Unknown Extensions
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"NoInternetOpenWith"=dword:00000001


; Remove Windows Alexa Spyware
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{c95fe080-8f5d-11d2-a20b-00aa003c157a}]


;Disable windows built in zip functionality
[-HKEY_CLASSES_ROOT\.zip\CompressedFolder]
[-HKEY_CLASSES_ROOT\CLSID\{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CompressedFolder]


;Remove WMP Right Click Options
[-HKEY_CLASSES_ROOT\CLSID\{F1B9284F-E9DC-4e68-9D7E-42362A59F0FD}]
[-HKEY_CLASSES_ROOT\CLSID\{8DD448E6-C188-4aed-AF92-44956194EB1F}]
[-HKEY_CLASSES_ROOT\CLSID\{CE3FB1D1-02AE-4a5f-A6E9-D9F1B4073E6C}]


; Enable Tahoma Font In Notepad
[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"lfFaceName"="Tahoma"


; Enable Word Wrap In Notepad
[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"fWrap"=dword:00000001

I need to merge them, that's why I asked about those two different versions of reg files. :)

0

Share this post


Link to post
Share on other sites

Just append the contents, (minus, the 'Windows Registry Editor Version 5.00'), of the 'new' reg to the end of the 'REGEDIT4' file then.

0

Share this post


Link to post
Share on other sites
Just append the contents, (minus, the 'Windows Registry Editor Version 5.00'), of the 'new' reg to the end of the 'REGEDIT4' file then.

Thanks, I'll do it. :)

Just out of curiosity, what would happen if I did the opposite (appending the old content to the new 'Windows Registry Editor Version 5.00' file)? It's just to check if I got it right, you know. ;)

0

Share this post


Link to post
Share on other sites

The chances are good that it would perform exactly the same.

Incidentally, please make sure that there is a blank line at the end of the appended file.

0

Share this post


Link to post
Share on other sites
The chances are good that it would perform exactly the same.

Incidentally, please make sure that there is a blank line at the end of the appended file.

A blank line at the end, ok.

Speaking of blank lines, I usually put one between an entry and the next one. Would it somehow "break" the reg file if I put more than one? I'm talking about pure blank lines, since the ones where I explain the meaning of an entry is commented with ";".

Thanks a lot.

0

Share this post


Link to post
Share on other sites

The important things are

  • 'REGEDIT4' or 'Windows Registry Editor version 5.00', must be followed by a blank line.
    The file must end with a blank line

Other than that, whatever makes it more readable for you.

0

Share this post


Link to post
Share on other sites
The important things are
  • 'REGEDIT4' or 'Windows Registry Editor version 5.00', must be followed by a blank line.
    The file must end with a blank line

Other than that, whatever makes it more readable for you.

Good, thank you very much for your help Yzöwl. :)

0

Share this post


Link to post
Share on other sites

Bear in mind that for Expandable Strings and Multistring data in hex, the formats are different between ANSI and Unicode (one and two bytes respectively).

0

Share this post


Link to post
Share on other sites

The best method for a short list like that. Add them to registry, then just export them out again, in the suitable format.

:)

Edited by MHz
0

Share this post


Link to post
Share on other sites

Safest bet, if you doing Xp is to use the Windows Registry Editor Version 5.00

I have applied a few things in the past and they did NOT import using REGEDIT4.

I cannot explain so a word to the wise.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.