The buzz on hives
As so many of my blog posts tend to do this one will also deal with ways to tweak your image without having to use Target Designer to rebuild, in order to save some time. This post discusses how to change registry settings after your image has already been built but has not been deployed yet, by loading and unloading the registry hives.
The Steps:
- On your development machine open the Registry Editor (Run > regedit)
- Click on the same hive in your development machine as the hive you want to tweak e.g. HKEY_LOCAL_MACHINE, then on the "File" menu and select "Load hive"
- Navigate to the relevant hive file in your image folders - the hive files are under \WINDOWS\system32\config. You may see a .LOG and .SAV file for each hive file- you should not select these, but rather click on the hive file and select "Open"
- A dialog box will open called "Load Hive" and you will be prompted to enter a name for the Key- give it any name you want, but make sure it is not the same as the hive file name e.g. Xpe_system
- You will now see this keys and all its sub-keys are created in your registry. Navigate to the keys you an to tweak and make the necessary changes.
- To unload the hive click on the Key you loaded, and choose "Unload Hive" from the "File" menu and confirm your choice.
- You can now continue on as before and new registry changes you made will be propagated to your runtime during FBA.
Settings that people change in this way are things like backgrounds, display resolutions, firewall settings, home pages etc. or other settings that are not available in the configuration settings of Target Designer. It is also an extremely useful tool during testing- you can load hives from images that have been deployed, but you may require a reboot for the changes to be applied.
As with any task you do in Register Editor be very careful to not change any of the settings on your development machine's hives or you could seriously affect your machine's functionality.
- Lynda