You are here

Registry wildcards

4 posts / 0 new
Last post
ztgasdf
Offline
Last seen: 2 years 10 months ago
Joined: 2021-05-10 19:46
Registry wildcards

Hello!

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.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 37 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Custom Code

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!

ztgasdf
Offline
Last seen: 2 years 10 months ago
Joined: 2021-05-10 19:46
Re: Custom Code

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?

Andhika24kd
Offline
Last seen: 1 year 2 months ago
Joined: 2018-06-28 07:13
Still need to use custom code

You need to use custom code, use the PostPrimary segment. Or launch the app launcher using batch/powershell file, wait and do something after it exit (if you prefer that way).

Log in or register to post comments