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

The installer should be able to install without administrative privileges on Windows #4633

Open
RobCannon opened this issue Nov 8, 2019 · 20 comments
Labels
feature-request A feature should be added or improved. installation p2 This is a standard priority issue windows

Comments

@RobCannon
Copy link

Our corporate environment does not give users admin rights on their computers. This installer should be able to install without requiring an administrator.

@kdaily kdaily added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 31, 2020
@kdaily kdaily added installation and removed needs-triage This issue or PR still needs to be triaged. labels Oct 7, 2020
@kdaily
Copy link
Member

kdaily commented Oct 7, 2020

Hi, agreed @RobCannon. Also see #4789, opened after this one.

@timschoeneberg
Copy link

Any idea if and when this will be finished? It is really painful for corporate users.

@willsheldon
Copy link

Workaround as found here

download the .msi file from Amazon website: https://awscli.amazonaws.com/AWSCLIV2.msi
use msiexec in command line to extract application from msi package:
msiexec /a %USERPROFILE%/Downloads/AWSCLIV2.msi /qb TARGETDIR=%USERPROFILE%\awscli
Now you can use awscli version 2 using the following command:

>%USERPROFILE%\awscliv2\Amazon\AWSCLIV2\aws --version
aws-cli/2.1.39 Python/3.8.8 Windows/10 exe/AMD64 prompt/off

@sanjib-basu
Copy link

Thanks @willsheldon ! this worked.

@bjethwan
Copy link

bjethwan commented Aug 6, 2021

@willsheldon
msiexec /a %USERPROFILE%/Downloads/AWSCLIV2.msi /qb TARGETDIR=%USERPROFILE%\awscli
image

@willsheldon
Copy link

Oh, right, windows uses backslash:
msiexec /a %USERPROFILE%\Downloads\AWSCLIV2.msi /qb TARGETDIR=%USERPROFILE%\awscli

@dan-petty
Copy link

Gotta love having to edit your PATH to get this working simply because AWS refused to do a pip release. 👎

@fdaugan
Copy link

fdaugan commented Feb 24, 2022

Single command installation workaround:

msiexec /a https://awscli.amazonaws.com/AWSCLIV2.msi /qb TARGETDIR=%USERPROFILE%\awscli

Then run it without touching environment variable:

doskey aws=%USERPROFILE%\awscli\Amazon\AWSCLIV2\aws.exe $* 
aws --version

@timblaktu
Copy link

@fdaugan's workaround, telling the installer to use a target dir in the user's home dir, works around the issue for me. Thanks!

@veeramaninatarajanmca
Copy link

Thanks @willsheldon for sharing this workaround...Very much useful and it's working in windows without admin privileges :)

There was a minor typo error in second command, which i updated. We are extracting the application to folder 'awscli' using command 1, but referencing 'AWSCLIV2' folder in the second command, which causes error.

Command 1:
msiexec /a %USERPROFILE%\Downloads\AWSCLIV2.msi /qb TARGETDIR=%USERPROFILE%\awscli

command 2:
%USERPROFILE%\awscli\Amazon\AWSCLIV2\aws --version

@RobCannon
Copy link
Author

Unfortunately, the workaround doesn't let you just "winget install Amazon.AWSCLI" without needed admin. This really needs to be fixed in the installer.

@tim-finnigan tim-finnigan added windows p2 This is a standard priority issue labels Nov 11, 2022
@lakshayarora476
Copy link

Instead of running command:2 again and again (which is a bit lengthy), set the env path in windows using...

setx PATH ^%PATH^%;"C:\Users<<your_username>>\awscli\Amazon\AWSCLIV2"

@dan-petty
Copy link

Again, just put it in pip already. This is unnecessarily difficult.

@x0rld
Copy link

x0rld commented Mar 20, 2023

that could be nice to add the pip command to the aws doc
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

@blakeduffey
Copy link

blakeduffey commented Mar 24, 2023

Unfortunately, the workaround doesn't let you just "winget install Amazon.AWSCLI" without needed admin. This really needs to be fixed in the installer.

This is the correct solution. All winget packages should default to 'install without admin if that is possible'. That is both the more secure fashion and would encourage additional adoption of winget.

@jnorment-alight
Copy link

Wow.. this is almost ... 4? years old, now?

@dan-petty
Copy link

Wow, still not fixed, and let some other project take the pip awcliv2 package and get it working...
https://pypi.org/project/awscliv2/

@PeterBaker0
Copy link

Still... causing issues for us as clients often work in locked down corporate environments without admin permissions.

@Huntbiss5
Copy link

So what are you guys doing instead? You just have someone RDP to their computer and update it for them every time? This is absurd.

@MarcoXM
Copy link

MarcoXM commented Apr 11, 2024

Wow.. this is almost ... 4? years old, now?

now it is 5 years

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. installation p2 This is a standard priority issue windows
Projects
None yet
Development

No branches or pull requests