I've been trying my hardest to make a portable version of Discord for my personal uses, and I have been able to portabalize all of the folders, but not all of the registry entries.
You see, when running a game that utilizes Discord's Rich Presence (referred as RP in this post), it also has it's own application ID along with it. Discord appears to create registry entries upon detection of a game with RP in "HKCU/Software/Classes/discord-(18ch long numeric)". I would like to use [RegistryCleanupForce] to just wipe out all entries, as they're not really needed for function on Discord and tens of these entries can be made if you play a lot of games that have RP functionality, however it seems that wildcards like "1=HKCU\Software\discord-*" do not work.
I know that in the documentation, wildcards are only mentioned for the Files section in launcher.ini, but I am curious if there is such a thing for the registry as well. If it isn't a feature, I would think that's understandable, as one wrong "*" could destroy your system...
Thank you for your time.
Unfortunately, there's no existing process in the PA.c Launcher to accomplish this outside of you manually adding all the games you use in the launcher INI, so you'd need to write custom code.
Sometimes, the impossible can become possible, if you're awesome!
I understand. I might have found a way to do it using Powershell, so I guess another question arises: Is there a way to make a program/script run directly after the portable app closes, or is there no direct function that does that?
You need to use custom code, use the
PostPrimarysegment. Or launch the app launcher using batch/powershell file, wait and do something after it exit (if you prefer that way).