Windows install fails due to WDAC
bug
### Solution to issue cannot be found in the documentation.
- [x] I checked the documentation.
### Issue
I ran into the error `::error:: Failed to extract packages` during the installation. This happened using winget or the downloaded installer. Both were tryinig to install v26.1.1-3.
This error is caused by Windows Defender Application Control (WDAC) preventing the installer from unpacking an unsigned DLL (the python DLL) to `%LOCALDATA%\Temp\...`. The WDAC is managed by my organization.
I was able to work around the issue by stringing together a set of pwsh commands that makes use of winget. This works by temporarily changing the TEMP directory.
The full text of the command sis given below as an example of how to get around the issue.
`$oldTemp = $env:TEMP ; $oldTmp = $env:TMP ; mkdir "$env:USERPROFILE\temp" ; $env:TEMP = "$env:USERPROFILE\temp" ; $env:TMP = "$env:USERPROFILE\temp" ; winget install CondaForge.Miniforge3 --source winget ; $env:TEMP = $oldTemp ; $env:TMP = $oldTmp ; Remove-Item -Path "$env:USERPROFILE\temp" -Recurse -Force`
### Installed packages
```shell
This is about the installer failing, so a `conda list` does not make sense here.
```
### Environment info
```shell
This is about the installer failing, so a `conda info` does not make sense here.
```
0 条评论