-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Provide non-admin mode from the Windows installer #1740
Comments
Sorry, I just found out that there's a zip release in the releases page. Thanks :) |
Thanks for letting us know! In the future, we might try to allow a non-admin install. Protip: you can also install over package managers such as Chocolatey or Scoop 👍 |
It would be nice if the zip install were mentioned in the install notes and linked to from the download page. For those in an enterprise environment, admin privileges or package managers are usually not options. |
IMHO, the installer should ask whether to install for all users (admin) or only for current user (appdata local). |
Thanks for the additional context; reopening this as a feature request to tweak the Windows installer. 👍 |
This shouldn't affect |
@itsme-alan Could you elaborate? |
|
@itsme-alan That's a good point. I'm not familiar with how tools like Winget or Chocolatey run an MSI installer from a script. MSIs in graphical mode can ask the user to select an installation directory, for example. Does a headless run of an MSI just pick all the default options? Would a default option also be picked for user vs. admin install? |
Normally you provide the switches in the install file, e.g., this manifest of 7zip for winget. So it makes sense to provide a switch to target either all users or only the current user. If you can't decide on a reasonable default it is also acceptable to make it a required switch and fail if it started in non-interactive mode without the switch for the target. |
You can pass arguments to the installer directly using winget cli. |
Wow, there are a lot of 🚀s on the issue. 🤔 |
+1 for an easy way to get Git on the commandline in a restricted corporate environment. i.e. %APPDATA%. There are thousands of developers who only understand Git by using a "3rd party GUI interface". As a result they are lacking some fundamental understandings of how Git works. Git commands get LOCALIZED in these GUIs!?! With a solid way to install a CLI client one could start writing tutorials. |
+1 for this too. Especially as the git-scm cli is there, as is Visual Studio Code and Python! |
I've found some Wix documentation that sounds like it might address making a single MSI that covers both per-machine and per-user installation, but I have no experience with this. If someone wants to take a stab, our current Wix setup is here https://github.com/cli/cli/blob/trunk/build/windows/gh.wxs |
yup for winget it should align w the https://learn.microsoft.com/en-us/windows/package-manager/winget/settings#scope setting. |
Ironically came up again today and finally looked at the wix. Not only is it hard coded to Program Files which you can override with INSTALLDIR, but then it assumes it can write to HKLM so needs admin even if the install path isn't protected. May need to dust off my wix skills and see if I can make a control script that handles the User vs machine wide (+UI) and then still persist to the proper registry location. |
It would be great if this could be fixed since the default way most Windows users are going to install this is via winget. |
+1 also. Downloading the |
Hey there,
I'm trying to install github cli, but it seems like it needs admin privileges on windows. Is there a way to get a non-admin installer or a portable version?
Thanks!
The text was updated successfully, but these errors were encountered: