-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add docs for supporting multiple user install on windows #1072
base: master
Are you sure you want to change the base?
Conversation
On windows, we are multi user by default. They need to adjust the path globally and not per user. We do the PATH adjustment here:
So a global install could be supported by the powershell script trivially. |
Ok, but this didn't work smoothly if the ghcup is not installed at 'C:/'. It is possible to set the env var globally during install But if the |
That would appear to be a bug, no? |
Yeah, likely an issue with |
https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getenvironmentvariablew
|
Ok, after more debugging figured out the issue, the powershell needs to be restarted for all users after the install to load the new vars from global. |
I am doing a rewrite of this to be clearer |
I tried these instructions by creating multiple user accounts.
It seems that settings the
PATH
is sufficient for the standardC:\ghcup
installations.For non-standard installation
GHCUP_INSTALL_BASE_PREFIX
is necessary, to ensure that the ghcup exe does not create / write toC:\ghcup
I am not sure how the
GHCUP_MSYS2
+ cabal related instructions are to be tested.Fixes #1070