[x] I have added a description of my changes and why I'd like them included in the section below
Description of Changes
Discord app registration was broken on at Win 11 (unclear if it worked on previous versions) due to the verbatim prefix (\\?\) that was added to the exe path. Apparently this isn't supported when the path with the prefix is saved in the registry as the shell open command. It would simply fail to open the registered app.
I also compared to some other games I had registered and tweaked the DefaultIcon location (+ path to strip the prefix) as well as some other register key values to more closely mimic how the "official" registration is done. Code for the official version can be found here.
Tested on Win 11 and could confirm the app launched correctly
Checklist
Description of Changes
Discord app registration was broken on at Win 11 (unclear if it worked on previous versions) due to the verbatim prefix (
\\?\
) that was added to the exe path. Apparently this isn't supported when the path with the prefix is saved in the registry as the shell open command. It would simply fail to open the registered app.I also compared to some other games I had registered and tweaked the
DefaultIcon
location (+ path to strip the prefix) as well as some other register key values to more closely mimic how the "official" registration is done. Code for the official version can be found here.Tested on Win 11 and could confirm the app launched correctly