microsoft / microsoft/winget-pkgs
[Package Issue]: Microsoft.DotNet.SDK.7 Fails with MSI Error 87
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 376
Description
Please confirm these before moving forward
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Installation issue.
Brief description of your issue
Installation fails when installing from Windows Sandbox. Other winget applications install successfully and the .NET 7 SDK installer succeeds if run it manually. Issue appears to be caused by an MSI logging error with Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest_7.0.100.7.0.3_x64.msi.
Steps to reproduce
Run the following command from within Windows Sandbox (after also installing Winget)
winget install --id Microsoft.DotNet.SDK.7 --silent --source winget --accept-package-agreements --accept-source-agreements
Actual behavior
Installation fails with exit code 87. One of the installation parameters is invalid.
Found Microsoft .NET SDK 7.0 [Microsoft.DotNet.SDK.7] Version 7.0.200
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.200/dotnet-sdk-7.0.200-win-x64.exe
██████████████████████████████ 202 MB / 202 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 87
Installer log is available at: C:\Users\WDAGUtilityAccount\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.DotNet.SDK.7.7.0.200-2023-02-21-10-02-43.948.log
One of the installation parameters is invalid. The package installation log may have additional details.
Expected behavior
Application installs successfully without any errors.
Environment
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19041.2486
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Screenshots and Logs
[04CC:040C][2023-02-21T10:02:44]i001: Burn v3.14.0.5722, Windows v10.0 (Build 19041: Service Pack 0), path: C:\Windows\Temp\{185BA801-ABA7-4EE3-A252-DBC00C094FBD}\.cr\dotnet-sdk-7.0.200-win-x64.exe
[04CC:040C][2023-02-21T10:02:44]i000: Initializing string variable 'DOTNETHOME' to value '[DOTNETHOME_X64]'
[04CC:040C][2023-02-21T10:02:44]i000: Initializing string variable 'BUNDLEMONIKER' to value 'Microsoft .NET SDK 7.0.200'
[04CC:040C][2023-02-21T10:02:44]i000: Initializing string variable 'DOTNETSDKVERSION' to value '7.0.200'
[04CC:040C][2023-02-21T10:02:44]i000: Initializing string variable 'DOTNETRUNTIMEVERSION' to value '7.0.3'
[04CC:040C][2023-02-21T10:02:44]i000: Initializing string variable 'ASPNETCOREVERSION' to value '7.0.3'
[04CC:040C][2023-02-21T10:02:44]i000: Initializing string variable 'WINFORMSANDWPFVERSION' to value '7.0.3'
[04CC:040C][2023-02-21T10:02:44]i000: Initializing string variable 'DOTNETHOMESIMILARITYCHECKOVERRIDE' to value ''
[04CC:040C][2023-02-21T10:02:44]i009: Command Line: '-burn.clean.room=C:\Users\WDAGUtilityAccount\AppData\Local\Temp\WinGet\Microsoft.DotNet.SDK.7.7.0.200\dotnet-sdk-7.0.200-win-x64.exe -burn.filehandle.attached=560 -burn.filehandle.self=556 /quiet /log C:\Users\WDAGUtilityAccount\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.DotNet.SDK.7.7.0.200-2023-02-21-10-02-43.948.log /norestart'
[0A20:1038][2023-02-21T10:03:03]e000: Error 0x80070057: Failed to enable logging for package: Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest_7.0.100.7.0.3_x64.msi to: C:\Users\WDAGUtilityAccount\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.DotNet.SDK.7.7.0.200-2023-02-21-10-02-43.948_019_Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest_7.0.100.7.0.3_x64.msi.log
[0A20:1038][2023-02-21T10:03:03]e000: Error 0x80070057: Failed to execute MSI package.
[04CC:040C][2023-02-21T10:03:03]e000: Error 0x80070057: Failed to configure per-machine MSI package.
[04CC:040C][2023-02-21T10:03:03]i319: Applied execute package: Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest_7.0.100.7.0.3_x64.msi, result: 0x80070057, restart: None
[04CC:040C][2023-02-21T10:03:03]e000: Error 0x80070057: Failed to execute MSI package.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure in Windows Sandbox with the documented winget install command, then inspect the installer log under the listed DiagOutputDir path. Focus on the MSI logging error for Microsoft.NET.Workload.Mono.ToolChain.net6.Manifest_7.0.100.7.0.3_x64.msi; done means the .NET SDK installs successfully without exit code 87.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100