microsoft / microsoft/winget-cli

Define Download Directory

Open
#1,208 18 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Settings Issue-Feature Needs-Spec
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

  • our company has AppLocker enabled with an allow-list of directories that executables can be started
  • when installing a package (like Git.Git) it results in the following error (manually translated into english)

Installer-Hash successfully validated
Package installation is going to start...
Unexpected error during execution of command:
0x8007029c : An assert error has occured.

  • the applocker event log states

The execution from %OSDRIVE%\USERS\SOMEUSER\APPDATA\LOCAL\PACKAGES\MICROSOFT.DESKTOPAPPINSTALLER_8WEKYB3D8BBW E\TEMPSTATE\WINGET\GIT.GIT.2.32.0.EXE was blocked.

Expected behavior

We should be able to set the package directory where the packages are downloaded and executed.
A option within winget settings should be added to override the default location.

Actual behavior

With AppLocker enabled, we can not use winget, because executables cannot be run inside the users profile path.

Environment

Windows Package Manager v1.0.11451
Windows: Windows.Desktop v10.0.19042.1052
Paket: Microsoft.DesktopAppInstaller v1.11.11451.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the winget settings command and the package installation flow described in the issue. Trace where packages are downloaded and executed, then define what configuration and validation are needed so the selected directory is used and AppLocker can permit execution. Done means the download directory can be overridden through settings and package installation works from it.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.