NOTE: Before running this example, you must first put a copy of the JPEPortable.exe in the Stealthier directory and rename it to notepad.exe.

This example presents ?

The ini itself...

The Launch section

This section's settings are read by the JPE-built app launcher and each overrides its equivalent stored within the launcher executable file.

[Launch]
Path=%System%\%appname%.exe
JPERuntime=..\Runtime\Def\jauntePE.dll
JPERuntimeIni=.\%appname%_jauntePE.ini
ExeDir=0

The rest of this file's sections are all JPE runtime ini sections and are read by the JPE runtime dll and again, used to override equivalent settings stored within the launcher executable file.

The Redirection section

Nothing new here.

[Redirection]
MemRegistry=2
UseIcon=1
ModFrame=1

The Registry sections

With registry redirection, by default ALL registry changes are redirected, so there is no need to have a [RegistryInclude] section list in this example.

Instead, a [RegistryExclude] section is used to prevent redirection of changes made to some very low level, system and hardward-related parts of the registry.

The [RegistryTemp] section works in conjunction with the in-memory portable registry feature to redirect any specified key's changes into the portable registry but to not have them stored into the portable registry .reg file. This section helps to make running the app "stealthier" without having to carry around non-portable registry data in the .reg file. In this example we "tempify" all of the Classes Root and Local Machine hives, plus several high level Microsoft keys used for Windows and IE-related data.

[Registry]
Use=1
Data=..\Data\%appname%.reg

[RegistryExclude]
1=HKEY_LOCAL_MACHINE\Hardware
2=HKEY_LOCAL_MACHINE\Security
3=HKEY_LOCAL_MACHINE\System

[RegistryTemp]
1=HKEY_CLASSES_ROOT
2=HKEY_LOCAL_MACHINE
3=HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
4=HKEY_CURRENT_USER\Software\Microsoft\Windows
5=HKEY_CURRENT_USER\Software\Microsoft\Windows NT

The Filesystem sections

In this example we're only interested in portablizing the current user's "My Documents" shell folder (as this is a good example of how to carry around your docs and still be able to get to them quickly) and the fonts folder (to show you how to make use of "portable" fonts) - changes to all other folders, such as the desktop or any of the "All Users" folders, will not be redirected.

Also note that you will only see the redirected "My Documents" contents while using the File->Open shell browser window - this is a shortcoming of JPE since it does not yet have the capability to give an app a system+portable merged list of files in a directory.

[Filesystem]
Use=1
Data=..\Data\Filesystem

[FilesystemExclude]
1=*

[FilesystemInclude]
1=5
2=20

[SpecialFolders]
5=Documents
20=Fonts

The ShellUsage section

This section is used to turn on the features that attempt to 1) prevent the app from telling the shell to add any used files to the shell's "most recently used" docs list, and 2) prevent files deleted by the app, or from within the running app, from being put into the recycle bin.

[ShellUsage]
Use=1
PreventMRU=1
PreventBinUse=1