NOTE: Before running this example, you must first put a copy of the JPEPortable.exe in the RegEdit directory and rename it to editJPE.exe.
This example presents a simple way of using a portablized RegEdit to directly edit an application's JauntePE portable registry.
The Launch section
This section's settings are read by the JauntePE-built app launcher and each overrides its equivalent stored within the launcher executable file.
[Launch]
Path=%Windows%\regedit.exe
JPERuntime=..\..\Runtime\jauntePE\def\jauntePE.dll
JPERuntimeIni=.\editJPE_jauntePE.ini
ExeDir=0
The rest of this file's sections are all JauntePE runtime ini sections and are read by the JauntePE runtime dll and again, used to override equivalent settings stored within the launcher executable file.
The Redirection section
The only setting of note here is FillRegistry. This is a new setting that is used to temporarily "fill in" the missing pieces of a portable registry's hierarchy. A registry browsing application such as RegEdit can then be run and the portable registry will be treated as if it were the system registry. MemRegistry must be on in order to use FillRegistry.
[Redirection]
UseIcon=1
ModFrame=1
MemRegistry=1
FillRegistry=1
The Registry sections
Since the aim here is to edit a portable registry, the first thing to consider is the name of the portable .reg file. In this example the name used is the name of the launcher. So, for real world usage of this example, any portable .reg file you need to edit must be moved into this directory and then renamed to editJPE.reg.
The second thing to consider is what impact on the portable registry the registry browsing application may have. In RegEdit's case, it makes use of the Regedit Applets subkey. As can be seen below, this registry key has been set up to be ignored if it exists in the system registry. This ensures that you'll always be running RegEdit with its default settings rather than with the settings for a given computer. This may not be what you desire of course, so feel free to edit the RegistryIgnore entry as you wish.
In addition to ignoring the system key existence, the Regedit Applets key has also been set up to be "tempified." In other words, any modifcations made to that particular key will not be stored into the portable registry .reg file. They also are not stored into the system registry. They simply disappear when the application is ended.
And finally, The second PortableRegExclude key prevents the bulk of the Windows shell settings from being stored into the portable .reg file as well, just in case you happen to do some file system browsing via the shell's File->Open browser window. Keep in mind though, depending upon the contents of the portable registry .reg file you wish to edit, you might need to adjust the HKCU\Software\Microsoft\Windows entry if you are wanting to edit registry subkeys of that key.
[Registry]
Use=1
Data=.\editJPE.reg
[RegistryIgnore]
1=HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit
[PortableRegExclude]
1=HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit
2=HKEY_CURRENT_USER\Software\Microsoft\Windows
The Filesystem section
No file system redirection requirements are needed in this example since it is the portable registry .reg file itself that is being acted upon by the launched application.
[Filesystem]
Use=0