C:>winget install -e --id zig.zig
Found Zig [zig.zig] Version 0.16.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive…
Successfully extracted archive
Starting package install…
An unexpected error occurred while executing the command:
copy_file: Access is denied.: “C:\Users\murra\AppData\Local\Temp\WinGet\zig.zig.0.16.0\extracted\zig-x86_64-windows-0.16.0”, “C:\Users\murra\AppData\Local\Microsoft\WinGet\Packages\zig.zig_Microsoft.Winget.Source_8wekyb3d8bbwe\zig-x86_64-windows-0.16.0”
Portable install failed; Cleaning up…
Environment is Windows 11 Professional 64-bit
FYI: I checked permissions on this folder, I have full permissions on all accounts for this directory.
Also what is the importance of a “portable” install, AFAIK I did not specifically request this, just a plain old standard install.
Is this a one-off, or every time?
Various antivirus can create inconsistent access denied errors during installs because they generate a heavy load on the virus checking.
I think portable only means the files are extracted in a folder, then the folder might be added to the path environment variable. It’s only a style of installer, there is no different “installed” version of zig, with an uninstall and a entry visible in appwiz.cpl, winget’s zig.zig is basically a tarball registered with winget. A mean one, because it seems to hit ziglang.org directly instead of a mirror.
It might not fix your issue, but it could be helpful: so far, the smoothest install experience I’ve had is through the ziglang.vscode-zig extension in vscode. It’s good at getting nightly build, caching it and fiddling with the environment variable.
I could not reproduce your issue though. I tried installing in an admin terminal because sometimes it break stuff when something tries to install in your user, but I didn’t have problem with that either.
Arguments: “update --id “zig.zig” --exact --source winget --accept-source-agreements --disable-interactivity --silent --include-unknown --accept-package-agreements --force”
Start Time: “4/15/2026 5:36:13 PM”
Found Zig [zig.zig] Version 0.16.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Extracting archive…
Successfully extracted archive
Starting package install…
An unexpected error occurred while executing the command:
weakly_canonical: The path cannot be traversed because it contains an untrusted mount point.: “C:\Users\murra\AppData\Local\Microsoft\WinGet\Links\zig.exe”
Installer failed with exit code: 0x8a150003 : Executing command failed
End Time: “4/15/2026 5:41:19 PM”
Process return value: “-1978335150” (0x8A150052)
Zig could not be updated
Someone should investigate and resolve this issue so that other users running zig will not have an update problem.
I‘m not sure anybody here knows how to help, since this is a WinGet error and not a Zig error.
Although since Getting Started ⚡ Zig Programming Language offers instructions for WinGet as one of the options, perhaps there is some implied responsibility there. If somebody does know how to get this sorted, it’d probably be valuable for more people than just you.
Since I don’t know how to debug WinGet, all I can offer is: have you tried one of the other methods of installing Zig? Scoop, chocolatey, or a direct download?