-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running into Windows path length limits for installer log files #2036
Comments
This looks like a dotnet installer bug. We send it the log path:
As seen above in the winget output. This is 185 characters. That exe then appears to add its own sub filename part before the extension for the MSI installation that it invokes (presumed):
Which is 77 characters long and takes it over the I'm not sure exactly which project this should be moved to though, or if one can even move it across organizations if |
Faced with this issue too - the same error happens while trying to install .NET 7 via
|
As mentioned here #97379 You can use the Eg.
|
The workaround doesn't seem accessible if you're using a winget |
Brief description of your issue
This is somewhat related to #1808 but for installer log files. Because winget sets the log location to an already deep path, the log files that get created by the installer can more easily run into the 260 path length limit of Windows.
In the repro below, the installer attempts to create a log with the path of
C:\Users\WDAGUtilityAccount\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.dotnet.6.1.322.12413-2022-03-22-14-16-07.487_013_Microsoft.NET.Sdk.Android.Manifest_6.0.100.31.0.101_preview.9.16_x64.msi.log
which is over the path length limit.Steps to reproduce
git clone https://github.com/microsoft/winget-pkgs.git
cd winget-pkgs
git checkout 5e9640f
.\Tools\SandboxTest.ps1 manifests\m\Microsoft\DotNet\6.1.322.12413
Expected behavior
.NET SDK should be successfully installed in Windows Sandbox environment.
Actual behavior
Install fails.
Output:
Relevant output from the installer log file:
Environment
The text was updated successfully, but these errors were encountered: