Skip to content
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

Alert user if extract fails due to path length, and LongPathsEnabled != 1 #2204

Closed
rasa opened this issue Apr 17, 2018 · 3 comments · Fixed by #4594
Closed

Alert user if extract fails due to path length, and LongPathsEnabled != 1 #2204

rasa opened this issue Apr 17, 2018 · 3 comments · Fixed by #4594

Comments

@rasa
Copy link
Member

rasa commented Apr 17, 2018

Per ScoopInstaller/Extras#889 (comment) , let’s add a check to https://github.com/lukesampson/scoop/blob/master/libexec/scoop-checkup.ps1 that we are under Windows 10 Version 1607, or later, and if LongPathsEnabled in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem is not set to 1, alert the user.

@rasa rasa changed the title Alert the user if an extract fails due to the path length, and LongPathsEnabled is not 1 Alert user if extract fails due to path length, and LongPathsEnabled != 1 Apr 17, 2018
@se35710
Copy link
Contributor

se35710 commented Apr 22, 2018

Duplicate of #1523?

@rasa
Copy link
Member Author

rasa commented Apr 22, 2018

@se35710 They are certainly related.

@jfastnacht
Copy link
Contributor

While the LongPathsEnabled check was implemented it still lacks the checkup for Windows 10 v1607, since I came across this problem on Windows 8.1 Pro.

The release ID needed should be available with:

Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -ErrorAction SilentlyContinue -Name 'ReleaseId'

This path is not available on Windows 8.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants