I am trying to portablize PotPlayer (a freeware audio & video player similar to AIMP: https://daumpotplayer.com/ ) 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 (https://portableapps.com/node/27285) but the person developing it has yet to address/include any registry movement. i.e. the current version in development leaves registry entries in:
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)
-PortableApps.com Application Template v3.4.1
-PortableApps.com Launcher v2.2.1
The entry I am attempting to get to work:
Existing Key Value I would like to keep while running the app:
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.
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!
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,
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!
PotPlayer Portable is here: https://portableapps.com/node/41287 in active developing