You are here

Meaning of some entries in the registry

10 posts / 0 new
Last post
tapsklaps
Offline
Last seen: 5 years 6 months ago
Developer
Joined: 2010-10-17 08:11
Meaning of some entries in the registry

In connection with the analysis of the plugin Gravure for the program PhotoFiltre 7.0 I received with Regshot the following results: plugin Gravure. Especially in the rows 19-21 and 47-52 I detected in the hive HKCU some added and changed registry keys, which not occur in the section "Keys and values to ignore". How are these entries to be judged in terms of portability?

The above mentioned registry keys have at the beginning all the following shared part:

HKU\S-1-5-21-1960408961-1935655697-1957994488-1005\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs
John T. Haller
John T. Haller's picture
Online
Last seen: 34 min 56 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
HKCU

That whole HKU\S-1-5-21-1960408961-1935655697-1957994488-1005 is actually HKCU.

Recent docs is permissible. We will likely handle it at the platform level at some point.

Sometimes, the impossible can become possible, if you're awesome!

tapsklaps
Offline
Last seen: 5 years 6 months ago
Developer
Joined: 2010-10-17 08:11
History lists

Meanwhile I have found out the meaning of the the above mentioned registry entry. In the very profound Microsoft support article Tips for registry under Windows XP Home Edition (Part 4) (unfortunately this article is only available in german language) is described, that Microsoft maintains a lot of History lists, so you e.g. can quickly find your documents or can easily access to your website.

The above mentioned registry key is associated with the entry "My Recent Documents" on the right side of the Start menu. First, I have found that the changes of this registry key has not been caused by the plugin Gravure. Rather, by opening an image with the program PhotoFiltre 7.0, an entry in the list "My Recent Documents" in the Start menu will created. Furthermore a shortcut to that image will created in the folder "%Userprofile%\My Recent Documents". And finally is altered the registry key "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDogs".

According to the above explanations no portability is given with respect to the described points. Therefore the following entries in the file PhotoFiltrePortable.ini are necessary:

[RegistryKeys]
-=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDogs

[DirectoriesMoves]
-="%Userprofile%\My Recent Documents"

John T. Haller
John T. Haller's picture
Online
Last seen: 34 min 56 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Should Use

Except that every app uses those keys and directories, so handling them at the portable app level is a bad idea (unless the base app itself has a setting to disable it). That's why we'll be handling it at the platform level.

Sometimes, the impossible can become possible, if you're awesome!

tapsklaps
Offline
Last seen: 5 years 6 months ago
Developer
Joined: 2010-10-17 08:11
Confirmation

I fully share your view. But as long as no solution on the platform level is present, it seems to me, that my proposed interim solution on portable app level is the only way to ensure portability.

John T. Haller
John T. Haller's picture
Online
Last seen: 34 min 56 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Breaking Recent Files

Except if you run two portable apps, one then another, and then exit them in the same order, you've just wiped out the local PC's Recent Files list entirely.

Sometimes, the impossible can become possible, if you're awesome!

tapsklaps
Offline
Last seen: 5 years 6 months ago
Developer
Joined: 2010-10-17 08:11
partial solution

Unfortunately I can`t understand your argumantation completely.

Meanwhile I have tested my own proposed solution and it works partially. Especially with the code

[RegistryKeys]
-=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs

I have achieved, that no entry occurs in the list My Recent Documents on the right side of the start menu. Furthermore also the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs remains unaffected.

However I was not been able to find a solution, that also the folder "%USERPROFILE%\My Recent Documents" remains unchanged after the usage of the portable application. If I open e.G. an image with the program PhotoFiltre 7.0, then automatically a shortcut to this image is saved in the folder "%USERPROFILE%\My Recent Documents". Therefore it's necessary to remove such shortcuts. But the following code doesn't work:

[DirectoriesMoves]
-="%USERPROFILE%\My Recent Documents"

Has anyone an idea to solve this problem?

John T. Haller
John T. Haller's picture
Online
Last seen: 34 min 56 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Colliding Backups

If two apps use the same bit of the registry and back them up independently. Then you can wind up with one of the apps versions instead of the PCs original version when you exit them both, depending on the order you start and exit them.

Sometimes, the impossible can become possible, if you're awesome!

tapsklaps
Offline
Last seen: 5 years 6 months ago
Developer
Joined: 2010-10-17 08:11
%USERPROFILE%\Recent

Meanwhile I found out, that the correct notation must be "%USERPROFILE%\Recent". Accordingly the following code must been used:

[DirectoriesMove]
-=%USERPROFILE%\Recent

John T. Haller
John T. Haller's picture
Online
Last seen: 34 min 56 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Same Thing

The same thing will occur as with the registry collisions if two apps are backing it up.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments