You are here

[RegistryValueWrite] question/issue

4 posts / 0 new
Last post
Last seen: 3 months 3 weeks ago
Joined: 2017-12-28 16:54
[RegistryValueWrite] question/issue

I am trying to portablize PotPlayer (a freeware audio & video player similar to AIMP: ) and am having some success with it except for one issue. It writes a registry entry into HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION where there is already an existing key/value.

I have tried using a [RegistryKeys] entry, but it removes/replaces the existing entry for as long as I am running the app, so the pre-existing value is unavailable until I exit, potentially breaking the other application.

I have tried using a [RegistryValueWrite] entry, and while it will successfully add the correct entry into the correct location without disturbing the existing entry, it doesn't get removed when I close the program. I don't know if this is by design, or if it's user error on my part.

I have searched the forums and found Pot Player in development ( but the person developing it has yet to address/include any registry movement. i.e. the current version in development leaves registry entries in:
>>HKCU\Software\Microsoft\Internet Explorer\LowRegistry\Audio\PolicyConfig\PropertyStore
>>HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
>>HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_ENABLE_CLIPCHILDREN_OPTIMIZATION
I'd like to avoid that if possible.

I am running:
-Win10 Pro x64 (the issue occurs in both 32 and 64 bit versions of Pot Player as it writes to the same key in both versions) Application Template v3.4.1 Launcher v2.2.1

The entry I am attempting to get to work:
HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION\PotPlayerMini=REG_DWORD:2AF8

Existing Key Value I would like to keep while running the app:
HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION\OneDrive.exe=REG_DWORD:2AF8

TL/DR: Is there a way, using the Launcher, to add (on launch) and remove (on close) a key value into an existing registry key without disturbing any of the existing values?

Thanks in advance, and sorry for the long post. I just wanted to tell people what I've already done so we don't cover ground that's already been covered.

John T. Haller
John T. Haller's picture
Last seen: 2 hours 8 sec ago
Joined: 2005-11-28 22:21

RegistryValueBackupDelete will backup the current value and restore it on exit. You can pair that with RegistryValueWrite to set something for the portable app to use while running.

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

Last seen: 3 months 3 weeks ago
Joined: 2017-12-28 16:54
John, John, John...

You beautiful man! Thank you for saving what little hair I have left from being ripped out in frustration.

I had tried RegistryValueBackupDelete with no success earlier and after reading up on it at your suggestion realized my error: I was entering the registry Key name, not the registry Value name, specifically,
HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
instead of
HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION\PotPlayerMini.exe
I mistakenly thought it would delete the entire registry key and replace it with the backup, not just the individual value. Now it works flawlessly.

Thank you again for your response!

rdd's picture
Last seen: 5 days 6 hours ago
Joined: 2013-03-22 06:59
PotPlayer Portable

PotPlayer Portable is here: in active developing

please, excuse my bad english

Log in or register to post comments