Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slippi protocol not registering when installing for current user #328

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

vinceau
Copy link
Member

@vinceau vinceau commented Jul 19, 2022

This PR fixes #327.

After extensive googling, it turns out we can actually register custom URL scheme protocols without Admin as long as we use HKCU\Software\Classes instead of using HKCR.

The only thing left was to figure out how to conditionally write the registry based on which install mode was currently in use -- current user or all users. After having no luck with $MultiUser.InstallMode, this comment revealed that we can simply use $installMode for the conditional.

@vinceau vinceau requested a review from NikhilNarayana July 19, 2022 08:57
@vinceau vinceau merged commit e8ee022 into main Jul 19, 2022
@vinceau vinceau deleted the fix/slippi-protocol-current-user branch July 19, 2022 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

slippi:// protocol only works if installer is ran in admin mode
2 participants