Skip to content

Is it possible to disable environment variable tweaking at install time? #5612

Discussion options

You must be logged in to vote

You always facing this problem, when a certain number of manifests are installed.

  • Scoop already minimize PATH by shim as much as possible.
  • Scoop suggests enabling Long Paths to solve this problem. scoop checkup

Scoop/lib/diagnostic.ps1

Lines 40 to 55 in f930280

function check_long_paths {
if ([System.Environment]::OSVersion.Version.Major -lt 10 -or [System.Environment]::OSVersion.Version.Build -lt 1607) {
warn 'This version of Windows does not support configuration of LongPaths.'
return $false
}
$key = Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -ErrorAction SilentlyContinue -Name 'LongPathsEnabled'
if (!$key -or ($key.L…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rashil2000
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pedoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants