aws / aws/session-manager-plugin
Windows installation without admin privs
- Dominant language
- Go
- Stars
- 320
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
Can you please update the Windows installer to be able to change the installation directory if not being installed by administrator?
https://github.com/aws/session-manager-plugin/blob/930a08e65d3a378eeeebb7f1bcf67eae7d860ae0/Tools/src/update/windows/install.bat#L5
The install dir could be %LocalAppData%\programs\Amazon\SessionManagerPlugin (`set InstallingFolder=%LocalAppData%\Amazon\SessionManagerPlugin`), or in %ProgramFiles% if a system install is requested.
Also, it would be nice if the [winget installer](https://github.com/microsoft/winget-pkgs/blob/master/manifests/a/Amazon/SessionManagerPlugin/1.2.835.0/Amazon.SessionManagerPlugin.installer.yaml) had support for the `--scope user` flag to trigger the %LocalAppData% installation path.
Contributor guide
Research direction
Start with Tools/src/update/windows/install.bat at the linked line, then inspect the linked winget installer manifest. Verify how user and system installation paths are selected and how winget's --scope user request maps to the LocalAppData path; done means both installation modes work without administrator privileges.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell, yaml
- Domain
- devops, release
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100