Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

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

Merged
merged 3 commits into from
Sep 20, 2022
Merged

Conversation

Xaymar
Copy link
Owner

@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
Owner 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant