Skip to content
New issue

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

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

Already on GitHub? # to your account

Don't show path selection for System & User mode #937

Merged
merged 3 commits into from
Sep 20, 2022
Merged

Conversation

Xaymar
Copy link
Contributor

@Xaymar Xaymar commented Sep 19, 2022

Explain the Pull Request

The directory selection for System & User mode only serves to confuse end users, as the default is already correct in every possible case. We rely on Windows-managed paths, which are nearly impossible to change after Windows has been installed, so this directory choice should only be offered for Portable users.

Additionally, we should use the built in RegWriteExpandStringValue instead of a custom call.

Completion Checklist

  • I have added myself to the Copyright and License headers and files.
  • I will maintain this code in the future and have added myself to CODEOWNERS.
  • I have tested this change on the following platforms:
    • MacOS 10.15
    • MacOS 11
    • MacOS 12
    • Ubuntu 20.04
    • Ubuntu 22.04
    • Windows 10
    • Windows 11

…User mode

The location for System-wide and User-only installation depend on Windows-managed locations, which means that they will never require a user to select the correct location. Therefore it is best to hide the page in all modes except for Portable, which should still offer a path to extract to.
@Xaymar
Copy link
Contributor Author

Xaymar commented Sep 20, 2022

Seems like this can still be adjusted with /DIR=, so functionality as expected. Normal users will never end up with CLI usage anyway

@Xaymar Xaymar merged commit 56d7100 into master Sep 20, 2022
@Xaymar Xaymar deleted the patch/windows-bundle branch September 20, 2022 00:33
@Xaymar Xaymar added this to the 0.12 milestone Mar 18, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant