Setup Regedit views and settings
INTRODUCTION
There are a few tweaks that you can do with regedit. One is disable the last key viewed, and another is setting up the window metrics, settings, favorites, etc.
PROCEDURE
Default Regedit.exe settings:
1. Set regedit settings to how you want them.
2. Navigate to the following key: HKCU\Software\Microsoft\RegEdt32\Settings
3. Export the key to a filename. The settings are pretty much self explanitory.
4. Include this file in your setup CD/DVD.
Set Regedit.exe window metrics and favorites:
1. Setup the view in regedit.exe to the way that you want it. Because windows size, position, divider, and column spacing is included in the settings, I make it a smaller window in the top left hand corner of the screen so it will fit on monitors at lower resolutions.
2. Navigate to the following key: HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit
3. OPTIONAL: Remove the LastKey value, if present.
4. Export the key to a file.
5. OPTIONAL: Open the .reg file in a text editor and remove all entries relating to Favorites. Do this if you don't want your regedit favorites to be saved.
6. Include this file file in your setup CD/DVD
Prevent regedit.exe from saving the LastKey value:
1. Create a file with the following information. I called my file REGEDIT_PERMISSTIONS.ini
HKEY_CURRENT_USER software microsoft windows currentversion applets regedit [2 8 17]
2. Run this file with the following command line: regini.exe regedit_permissions.ini
NOTES
Remember, regini ALWAYS REPLACES permissions on registry objects. Keep that in mind when you use the tool.
The tool is found in the resource kit tools.
» Example Registry Tweak