Open tordenflesk opened 6 months ago
DEBUG: 387+ function appdir($app, $global) >>>> { "$(appsdir $global)\$app" }
DEBUG: ! CALL function 'appdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 387+ function appdir($app, $global) { >>>> "$(appsdir $global)\$app" }
DEBUG: 387+ function appdir($app, $global) { "$( >>>> appsdir $global)\$app" }
DEBUG: 384+ function appsdir($global) >>>> { "$(basedir $global)\apps" }
DEBUG: ! CALL function 'appsdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 384+ function appsdir($global) { >>>> "$(basedir $global)\apps" }
DEBUG: 384+ function appsdir($global) { "$( >>>> basedir $global)\apps" }
DEBUG: 383+ function basedir($global) >>>> { if($global) { return $globaldir } $scoopdir }
DEBUG: ! CALL function 'basedir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 383+ function basedir($global) { if( >>>> $global) { return $globaldir } $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } >>>> $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } $scoopdir >>>> }
DEBUG: 384+ function appsdir($global) { "$(basedir $global)\apps" >>>> }
DEBUG: 387+ function appdir($app, $global) { "$(appsdir $global)\$app" >>>> }
DEBUG: 388+ function versiondir($app, $version, $global) { "$(appdir $app $global)\$version" >>>> }
DEBUG: 639+ function ensure($dir) >>>> {
DEBUG: ! CALL function 'ensure' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 640+ if ( >>>> !(Test-Path -Path $dir)) {
DEBUG: 641+ >>>> New-Item -Path $dir -ItemType Directory | Out-Null
DEBUG: 643+ >>>> Convert-Path -Path $dir
DEBUG: 644+ >>>> }
DEBUG: ! SET $dir = 'C:\Users\Tordenflesk\scoop\apps\7zip\24.05'.
DEBUG: 49+ >>>> $original_dir = $dir # keep reference to real (not linked) directory
DEBUG: ! SET $original_dir = 'C:\Users\Tordenflesk\scoop\apps\7zip\24.05'.
DEBUG: 50+ >>>> $persist_dir = persistdir $app $global
DEBUG: 399+ function persistdir($app, $global) >>>> { "$(basedir $global)\persist\$app" }
DEBUG: ! CALL function 'persistdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 399+ function persistdir($app, $global) { >>>> "$(basedir $global)\persist\$app" }
DEBUG: 399+ function persistdir($app, $global) { "$( >>>> basedir $global)\persist\$app" }
DEBUG: 383+ function basedir($global) >>>> { if($global) { return $globaldir } $scoopdir }
DEBUG: ! CALL function 'basedir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 383+ function basedir($global) { if( >>>> $global) { return $globaldir } $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } >>>> $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } $scoopdir >>>> }
DEBUG: 399+ function persistdir($app, $global) { "$(basedir $global)\persist\$app" >>>> }
DEBUG: ! SET $persist_dir = 'C:\Users\Tordenflesk\scoop\persist\7zip'.
DEBUG: 52+ >>>> $fname = Invoke-ScoopDownload $app $version $manifest $bucket $architecture $dir $use_cache $check_hash
DEBUG: 538+ function Invoke-ScoopDownload ($app, $version, $manifest, $bucket, $architecture, $dir, $use_cache = $true, $check_hash = $true) >>>> {
DEBUG: ! CALL function 'Invoke-ScoopDownload' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\install.ps1')
DEBUG: 540+ if ( >>>> !$use_cache) { warn 'Cache is being ignored.' }
DEBUG: 544+ >>>> $urls = @(script:url $manifest $architecture)
DEBUG: 544+ $urls = @( >>>> script:url $manifest $architecture)
DEBUG: 155+ function url($manifest, $arch) >>>> { arch_specific 'url' $manifest $arch }
DEBUG: ! CALL function 'url' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 155+ function url($manifest, $arch) { >>>> arch_specific 'url' $manifest $arch }
DEBUG: 104+ function arch_specific($prop, $manifest, $architecture) >>>> {
DEBUG: ! CALL function 'arch_specific' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 105+ if ( >>>> $manifest.architecture) {
DEBUG: 106+ >>>> $val = $manifest.architecture.$architecture.$prop
DEBUG: ! SET $val = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 107+ if ( >>>> $val) { return $val } # else fallback to generic prop
DEBUG: 107+ if ($val) { return >>>> $val } # else fallback to generic prop
DEBUG: 111+ >>>> }
DEBUG: 155+ function url($manifest, $arch) { arch_specific 'url' $manifest $arch >>>> }
DEBUG: ! SET $urls = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 547+ >>>> $cookies = $manifest.cookie
DEBUG: ! SET $cookies = ''.
DEBUG: 549+ >>>> $fname = $null
DEBUG: ! SET $fname = ''.
DEBUG: 553+ >>>> $extract_dirs = @(extract_dir $manifest $architecture)
DEBUG: 553+ $extract_dirs = @( >>>> extract_dir $manifest $architecture)
DEBUG: 159+ function extract_dir($manifest, $arch) >>>> { arch_specific 'extract_dir' $manifest $arch}
DEBUG: ! CALL function 'extract_dir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 159+ function extract_dir($manifest, $arch) { >>>> arch_specific 'extract_dir' $manifest $arch}
DEBUG: 104+ function arch_specific($prop, $manifest, $architecture) >>>> {
DEBUG: ! CALL function 'arch_specific' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 105+ if ( >>>> $manifest.architecture) {
DEBUG: 106+ >>>> $val = $manifest.architecture.$architecture.$prop
DEBUG: ! SET $val = 'Files\7-Zip'.
DEBUG: 107+ if ( >>>> $val) { return $val } # else fallback to generic prop
DEBUG: 107+ if ($val) { return >>>> $val } # else fallback to generic prop
DEBUG: 111+ >>>> }
DEBUG: 159+ function extract_dir($manifest, $arch) { arch_specific 'extract_dir' $manifest $arch >>>> }
DEBUG: ! SET $extract_dirs = 'Files\7-Zip'.
DEBUG: 554+ >>>> $extract_tos = @(extract_to $manifest $architecture)
DEBUG: 554+ $extract_tos = @( >>>> extract_to $manifest $architecture)
DEBUG: 160+ function extract_to($manifest, $arch) >>>> { arch_specific 'extract_to' $manifest $arch}
DEBUG: ! CALL function 'extract_to' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 160+ function extract_to($manifest, $arch) { >>>> arch_specific 'extract_to' $manifest $arch}
DEBUG: 104+ function arch_specific($prop, $manifest, $architecture) >>>> {
DEBUG: ! CALL function 'arch_specific' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 105+ if ( >>>> $manifest.architecture) {
DEBUG: 106+ >>>> $val = $manifest.architecture.$architecture.$prop
DEBUG: ! SET $val = ''.
DEBUG: 107+ if ( >>>> $val) { return $val } # else fallback to generic prop
DEBUG: 110+ if ( >>>> $manifest.$prop) { return $manifest.$prop }
DEBUG: 111+ >>>> }
DEBUG: 160+ function extract_to($manifest, $arch) { arch_specific 'extract_to' $manifest $arch >>>> }
DEBUG: ! SET $extract_tos = ''.
DEBUG: 555+ >>>> $extracted = 0
DEBUG: ! SET $extracted = '0'.
DEBUG: 558+ if ( >>>> Test-Aria2Enabled) {
DEBUG: 558+ if ( >>>> Test-Aria2Enabled) {
DEBUG: 562+ function Test-Aria2Enabled >>>> {
DEBUG: ! CALL function 'Test-Aria2Enabled' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 563+ return >>>> (Test-HelperInstalled -Helper Aria2) -and (get_config 'aria2-enabled' $true)
DEBUG: 550+ function Test-HelperInstalled >>>> {
DEBUG: ! CALL function 'Test-HelperInstalled' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 559+ return >>>> ![String]::IsNullOrWhiteSpace((Get-HelperPath -Helper $Helper))
DEBUG: 484+ begin >>>> {
DEBUG: ! CALL function 'Get-HelperPath<Begin>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 485+ >>>> $HelperPath = $null
DEBUG: ! SET $HelperPath = ''.
DEBUG: 486+ >>>> }
DEBUG: 487+ process >>>> {
DEBUG: ! CALL function 'Get-HelperPath<Process>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: ! SET $switch = 'IEnumerator'.
DEBUG: 488+ switch ( >>>> $Helper) {
DEBUG: 489+ >>>> 'Git' {
DEBUG: 497+ >>>> '7zip' { $HelperPath = Get-AppFilePath '7zip' '7z.exe' }
DEBUG: 498+ >>>> 'Lessmsi' { $HelperPath = Get-AppFilePath 'lessmsi' 'lessmsi.exe' }
DEBUG: 499+ >>>> 'Innounp' { $HelperPath = Get-AppFilePath 'innounp' 'innounp.exe' }
DEBUG: 500+ >>>> 'Dark' {
DEBUG: 506+ >>>> 'Aria2' { $HelperPath = Get-AppFilePath 'aria2' 'aria2c.exe' }
DEBUG: 506+ 'Aria2' { >>>> $HelperPath = Get-AppFilePath 'aria2' 'aria2c.exe' }
DEBUG: 436+ function Get-AppFilePath >>>> {
DEBUG: ! CALL function 'Get-AppFilePath' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 449+ >>>> $Path = "$(currentdir $App $false)\$File"
DEBUG: 449+ $Path = "$( >>>> currentdir $App $false)\$File"
DEBUG: 390+ function currentdir($app, $global) >>>> {
DEBUG: ! CALL function 'currentdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 391+ if ( >>>> get_config NO_JUNCTION) {
DEBUG: 391+ if ( >>>> get_config NO_JUNCTION) {
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'no_junction'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 114+ return >>>> $scoopConfig.$name
DEBUG: 115+ >>>> }
DEBUG: 394+ >>>> $version = 'current'
DEBUG: ! SET $version = 'current'.
DEBUG: 396+ >>>> "$(appdir $app $global)\$version"
DEBUG: 396+ "$( >>>> appdir $app $global)\$version"
DEBUG: 387+ function appdir($app, $global) >>>> { "$(appsdir $global)\$app" }
DEBUG: ! CALL function 'appdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 387+ function appdir($app, $global) { >>>> "$(appsdir $global)\$app" }
DEBUG: 387+ function appdir($app, $global) { "$( >>>> appsdir $global)\$app" }
DEBUG: 384+ function appsdir($global) >>>> { "$(basedir $global)\apps" }
DEBUG: ! CALL function 'appsdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 384+ function appsdir($global) { >>>> "$(basedir $global)\apps" }
DEBUG: 384+ function appsdir($global) { "$( >>>> basedir $global)\apps" }
DEBUG: 383+ function basedir($global) >>>> { if($global) { return $globaldir } $scoopdir }
DEBUG: ! CALL function 'basedir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 383+ function basedir($global) { if( >>>> $global) { return $globaldir } $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } >>>> $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } $scoopdir >>>> }
DEBUG: 384+ function appsdir($global) { "$(basedir $global)\apps" >>>> }
DEBUG: 387+ function appdir($app, $global) { "$(appsdir $global)\$app" >>>> }
DEBUG: 397+ >>>> }
DEBUG: ! SET $Path = 'C:\Users\Tordenflesk\scoop\apps\aria2\current\aria2c.exe'.
DEBUG: 450+ if ( >>>> Test-Path $Path) {
DEBUG: 450+ if ( >>>> Test-Path $Path) {
DEBUG: 451+ return >>>> $Path
DEBUG: 462+ >>>> }
DEBUG: ! SET $HelperPath = 'C:\Users\Tordenflesk\scoop\apps\aria2\current\aria...'.
DEBUG: 507+ >>>> 'Zstd' { $HelperPath = Get-AppFilePath 'zstd' 'zstd.exe' }
DEBUG: 488+ switch ( >>>> $Helper) {
DEBUG: ! SET $switch = ''.
DEBUG: 510+ return >>>> $HelperPath
DEBUG: 511+ >>>> }
DEBUG: 560+ >>>> }
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'aria2-enabled'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 112+ return >>>> $default
DEBUG: 115+ >>>> }
DEBUG: 564+ >>>> }
DEBUG: 559+ >>>> Invoke-CachedAria2Download $app $version $manifest $architecture $dir $cookies $use_cache $check_hash
DEBUG: 185+ function Invoke-CachedAria2Download ($app, $version, $manifest, $architecture, $dir, $cookies = $null, $use_cache = $true, $check_hash = $true) >>>> {
DEBUG: ! CALL function 'Invoke-CachedAria2Download' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\install.ps1')
DEBUG: 186+ >>>> $data = @{}
DEBUG: ! SET $data = 'System.Collections.Hashtable'.
DEBUG: 187+ >>>> $urls = @(script:url $manifest $architecture)
DEBUG: 187+ $urls = @( >>>> script:url $manifest $architecture)
DEBUG: 155+ function url($manifest, $arch) >>>> { arch_specific 'url' $manifest $arch }
DEBUG: ! CALL function 'url' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 155+ function url($manifest, $arch) { >>>> arch_specific 'url' $manifest $arch }
DEBUG: 104+ function arch_specific($prop, $manifest, $architecture) >>>> {
DEBUG: ! CALL function 'arch_specific' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 105+ if ( >>>> $manifest.architecture) {
DEBUG: 106+ >>>> $val = $manifest.architecture.$architecture.$prop
DEBUG: ! SET $val = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 107+ if ( >>>> $val) { return $val } # else fallback to generic prop
DEBUG: 107+ if ($val) { return >>>> $val } # else fallback to generic prop
DEBUG: 111+ >>>> }
DEBUG: 155+ function url($manifest, $arch) { arch_specific 'url' $manifest $arch >>>> }
DEBUG: ! SET $urls = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 190+ >>>> $urlstxt = Join-Path $cachedir "$app.txt"
DEBUG: ! SET $urlstxt = 'C:\Users\Tordenflesk\scoop\cache\7zip.txt'.
DEBUG: 191+ >>>> $urlstxt_content = ''
DEBUG: ! SET $urlstxt_content = ''.
DEBUG: 192+ >>>> $download_finished = $true
DEBUG: ! SET $download_finished = 'True'.
DEBUG: 195+ >>>> $options = @(
DEBUG: 196+ >>>> "--input-file='$urlstxt'"
DEBUG: 197+ >>>> "--user-agent='$(Get-UserAgent)'"
DEBUG: 197+ "--user-agent='$( >>>> Get-UserAgent)'"
DEBUG: 74+ function Get-UserAgent() >>>> {
DEBUG: ! CALL function 'Get-UserAgent' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 75+ return >>>> "Scoop/1.0 (+http://scoop.sh/) PowerShell/$($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor) (Windows NT $([System.Environment]::OSVersion.Version.Major).$([System.Environment]::OSVersion.Version.Minor); $(if(${env:ProgramFiles(Arm)}){'ARM64;
'}elseif($env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){'Win64; x64; '})$(if($env:PROCESSOR_ARCHITEW6432 -in 'AMD64','ARM64'){'WOW64; '})$PSEdition)"
DEBUG: 75+ return "Scoop/1.0 (+http://scoop.sh/) PowerShell/$( >>>> $PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor) (Windows NT $([System.Environment]::OSVersion.Version.Major).$([System.Environment]::OSVersion.Version.Minor); $(if(${env:ProgramFiles(Arm)}){'ARM64;
'}elseif($env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){'Win64; x64; '})$(if($env:PROCESSOR_ARCHITEW6432 -in 'AMD64','ARM64'){'WOW64; '})$PSEdition)"
DEBUG: 75+ return "Scoop/1.0 (+http://scoop.sh/) PowerShell/$($PSVersionTable.PSVersion.Major).$( >>>> $PSVersionTable.PSVersion.Minor) (Windows NT $([System.Environment]::OSVersion.Version.Major).$([System.Environment]::OSVersion.Version.Minor); $(if(${env:ProgramFiles(Arm)}){'ARM64;
'}elseif($env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){'Win64; x64; '})$(if($env:PROCESSOR_ARCHITEW6432 -in 'AMD64','ARM64'){'WOW64; '})$PSEdition)"
DEBUG: 75+ return "Scoop/1.0 (+http://scoop.sh/) PowerShell/$($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor) (Windows NT $( >>>> [System.Environment]::OSVersion.Version.Major).$([System.Environment]::OSVersion.Version.Minor); $(if(${env:ProgramFiles(Arm)}){'ARM64;
'}elseif($env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){'Win64; x64; '})$(if($env:PROCESSOR_ARCHITEW6432 -in 'AMD64','ARM64'){'WOW64; '})$PSEdition)"
DEBUG: 75+ return "Scoop/1.0 (+http://scoop.sh/) PowerShell/$($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor) (Windows NT $([System.Environment]::OSVersion.Version.Major).$( >>>> [System.Environment]::OSVersion.Version.Minor); $(if(${env:ProgramFiles(Arm)}){'ARM64;
'}elseif($env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){'Win64; x64; '})$(if($env:PROCESSOR_ARCHITEW6432 -in 'AMD64','ARM64'){'WOW64; '})$PSEdition)"
DEBUG: 75+ return "Scoop/1.0 (+http://scoop.sh/) PowerShell/$($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor) (Windows NT $([System.Environment]::OSVersion.Version.Major).$([System.Environment]::OSVersion.Version.Minor); $(if( >>>> ${env:ProgramFiles(Arm)}){'ARM64;
'}elseif($env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){'Win64; x64; '})$(if($env:PROCESSOR_ARCHITEW6432 -in 'AMD64','ARM64'){'WOW64; '})$PSEdition)"
DEBUG: 75+ return "Scoop/1.0 (+http://scoop.sh/) PowerShell/$($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor) (Windows NT $([System.Environment]::OSVersion.Version.Major).$([System.Environment]::OSVersion.Version.Minor); $(if(${env:ProgramFiles(Arm)}){'ARM64; '}elseif( >>>>
$env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){'Win64; x64; '})$(if($env:PROCESSOR_ARCHITEW6432 -in 'AMD64','ARM64'){'WOW64; '})$PSEdition)"
DEBUG: 75+ return "Scoop/1.0 (+http://scoop.sh/) PowerShell/$($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor) (Windows NT $([System.Environment]::OSVersion.Version.Major).$([System.Environment]::OSVersion.Version.Minor); $(if(${env:ProgramFiles(Arm)}){'ARM64;
'}elseif($env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){ >>>> 'Win64; x64; '})$(if($env:PROCESSOR_ARCHITEW6432 -in 'AMD64','ARM64'){'WOW64; '})$PSEdition)"
DEBUG: 75+ return "Scoop/1.0 (+http://scoop.sh/) PowerShell/$($PSVersionTable.PSVersion.Major).$($PSVersionTable.PSVersion.Minor) (Windows NT $([System.Environment]::OSVersion.Version.Major).$([System.Environment]::OSVersion.Version.Minor); $(if(${env:ProgramFiles(Arm)}){'ARM64;
'}elseif($env:PROCESSOR_ARCHITECTURE -eq 'AMD64'){'Win64; x64; '})$(if( >>>> $env:PROCESSOR_ARCHITEW6432 -in 'AMD64','ARM64'){'WOW64; '})$PSEdition)"
DEBUG: 76+ >>>> }
DEBUG: 198+ >>>> '--allow-overwrite=true'
DEBUG: 199+ >>>> '--auto-file-renaming=false'
DEBUG: 200+ >>>> "--retry-wait=$(get_config 'aria2-retry-wait' 2)"
DEBUG: 200+ "--retry-wait=$( >>>> get_config 'aria2-retry-wait' 2)"
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'aria2-retry-wait'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 112+ return >>>> $default
DEBUG: 115+ >>>> }
DEBUG: 201+ >>>> "--split=$(get_config 'aria2-split' 5)"
DEBUG: 201+ "--split=$( >>>> get_config 'aria2-split' 5)"
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'aria2-split'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 112+ return >>>> $default
DEBUG: 115+ >>>> }
DEBUG: 202+ >>>> "--max-connection-per-server=$(get_config 'aria2-max-connection-per-server' 5)"
DEBUG: 202+ "--max-connection-per-server=$( >>>> get_config 'aria2-max-connection-per-server' 5)"
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'aria2-max-connection-per-server'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 112+ return >>>> $default
DEBUG: 115+ >>>> }
DEBUG: 203+ >>>> "--min-split-size=$(get_config 'aria2-min-split-size' '5M')"
DEBUG: 203+ "--min-split-size=$( >>>> get_config 'aria2-min-split-size' '5M')"
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'aria2-min-split-size'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 112+ return >>>> $default
DEBUG: 115+ >>>> }
DEBUG: 204+ >>>> '--console-log-level=warn'
DEBUG: 205+ >>>> '--enable-color=false'
DEBUG: 206+ >>>> '--no-conf=true'
DEBUG: 207+ >>>> '--follow-metalink=true'
DEBUG: 208+ >>>> '--metalink-preferred-protocol=https'
DEBUG: 209+ >>>> '--min-tls-version=TLSv1.2'
DEBUG: 210+ >>>> "--stop-with-process=$PID"
DEBUG: 211+ >>>> '--continue'
DEBUG: 212+ >>>> '--summary-interval=0'
DEBUG: 213+ >>>> '--auto-save-interval=1'
DEBUG: ! SET $options = '--input-file='C:\Users\Tordenflesk\scoop\cache\7zip.t...'.
DEBUG: 216+ if ( >>>> $cookies) {
DEBUG: 220+ >>>> $proxy = get_config PROXY
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'proxy'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 114+ return >>>> $scoopConfig.$name
DEBUG: 115+ >>>> }
DEBUG: ! SET $proxy = ''.
DEBUG: 221+ if ( >>>> $proxy -ne 'none') {
DEBUG: 222+ if ( >>>> [Net.Webrequest]::DefaultWebProxy.Address) {
DEBUG: 225+ if ( >>>> [Net.Webrequest]::DefaultWebProxy.Credentials.UserName) {
DEBUG: 228+ if ( >>>> [Net.Webrequest]::DefaultWebProxy.Credentials.Password) {
DEBUG: 233+ >>>> $more_options = get_config 'aria2-options'
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'aria2-options'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 114+ return >>>> $scoopConfig.$name
DEBUG: 115+ >>>> }
DEBUG: ! SET $more_options = ''.
DEBUG: 234+ if ( >>>> $more_options) {
DEBUG: 238+ foreach ($url in >>>> $urls) {
DEBUG: ! SET $foreach = 'IEnumerator'.
DEBUG: 238+ foreach ( >>>> $url in $urls) {
DEBUG: ! SET $url = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 239+ >>>> $data.$url = @{
DEBUG: 240+ 'target' = "$dir\$( >>>> url_filename $url)"
DEBUG: 618+ function url_filename($url) >>>> {
DEBUG: ! CALL function 'url_filename' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 619+ >>>> (split-path $url -leaf).split('?') | Select-Object -First 1
DEBUG: 620+ >>>> }
DEBUG: 241+ 'cachename' = >>>> fname (cache_path $app $version $url)
DEBUG: 402+ function cache_path($app, $version, $url) >>>> { "$cachedir\$app#$version#$($url -replace '[^\w\.\-]+', '_')" }
DEBUG: ! CALL function 'cache_path' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 402+ function cache_path($app, $version, $url) { >>>> "$cachedir\$app#$version#$($url -replace '[^\w\.\-]+', '_')" }
DEBUG: 402+ function cache_path($app, $version, $url) { "$cachedir\$app#$version#$( >>>> $url -replace '[^\w\.\-]+', '_')" }
DEBUG: 402+ function cache_path($app, $version, $url) { "$cachedir\$app#$version#$($url -replace '[^\w\.\-]+', '_')" >>>> }
DEBUG: 613+ function fname($path) >>>> { split-path $path -leaf }
DEBUG: ! CALL function 'fname' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 613+ function fname($path) { >>>> split-path $path -leaf }
DEBUG: 613+ function fname($path) { split-path $path -leaf >>>> }
DEBUG: 242+ 'source' = >>>> cache_path $app $version $url
DEBUG: 402+ function cache_path($app, $version, $url) >>>> { "$cachedir\$app#$version#$($url -replace '[^\w\.\-]+', '_')" }
DEBUG: ! CALL function 'cache_path' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 402+ function cache_path($app, $version, $url) { >>>> "$cachedir\$app#$version#$($url -replace '[^\w\.\-]+', '_')" }
DEBUG: 402+ function cache_path($app, $version, $url) { "$cachedir\$app#$version#$( >>>> $url -replace '[^\w\.\-]+', '_')" }
DEBUG: 402+ function cache_path($app, $version, $url) { "$cachedir\$app#$version#$($url -replace '[^\w\.\-]+', '_')" >>>> }
DEBUG: 245+ if ( >>>> (Test-Path $data.$url.source) -and -not((Test-Path "$($data.$url.source).aria2") -or (Test-Path $urlstxt)) -and $use_cache) {
DEBUG: 245+ if ((Test-Path $data.$url.source) -and -not((Test-Path "$( >>>> $data.$url.source).aria2") -or (Test-Path $urlstxt)) -and $use_cache) {
DEBUG: 246+ >>>> Write-Host 'Loading ' -NoNewline
Loading DEBUG: 247+ >>>> Write-Host $(url_remote_filename $url) -f Cyan -NoNewline
DEBUG: 247+ Write-Host $( >>>> url_remote_filename $url) -f Cyan -NoNewline
DEBUG: 624+ function url_remote_filename($url) >>>> {
DEBUG: ! CALL function 'url_remote_filename' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 625+ >>>> $uri = (New-Object URI $url)
DEBUG: ! SET $uri = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 626+ >>>> $basename = Split-Path $uri.PathAndQuery -Leaf
DEBUG: ! SET $basename = '7z2405-x64.msi'.
DEBUG: 627+ If ( >>>> $basename -match ".*[?=]+([\w._-]+)") {
DEBUG: 630+ If ( >>>> ($basename -notlike "*.*") -or ($basename -match "^[v.\d]+$")) {
DEBUG: 633+ If ( >>>> ($basename -notlike "*.*") -and ($uri.Fragment -ne "")) {
DEBUG: 636+ return >>>> $basename
DEBUG: 637+ >>>> }
7z2405-x64.msiDEBUG: 248+ >>>> Write-Host ' from cache.'
from cache.
DEBUG: 238+ foreach ( >>>> $url in $urls) {
DEBUG: ! SET $foreach = ''.
DEBUG: 268+ if ( >>>> -not($download_finished)) {
DEBUG: 326+ foreach ($url in >>>> $urls) {
DEBUG: ! SET $foreach = 'IEnumerator'.
DEBUG: 326+ foreach ( >>>> $url in $urls) {
DEBUG: ! SET $url = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 328+ >>>> $metalink_filename = get_filename_from_metalink $data.$url.source
DEBUG: 160+ function get_filename_from_metalink($file) >>>> {
DEBUG: ! CALL function 'get_filename_from_metalink' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\install.ps1')
DEBUG: 161+ >>>> $bytes = get_magic_bytes_pretty $file ''
DEBUG: 1349+ function get_magic_bytes_pretty($file, $glue = ' ') >>>> {
DEBUG: ! CALL function 'get_magic_bytes_pretty' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1350+ if( >>>> !(Test-Path $file)) {
DEBUG: 1354+ return >>>> (get_magic_bytes $file | ForEach-Object { $_.ToString('x2') }) -join $glue
DEBUG: 1335+ function get_magic_bytes($file) >>>> {
DEBUG: ! CALL function 'get_magic_bytes' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1336+ if( >>>> !(Test-Path $file)) {
DEBUG: 1340+ if( >>>> (Get-Command Get-Content).parameters.ContainsKey('AsByteStream')) {
DEBUG: 1345+ return >>>> Get-Content $file -Encoding byte -TotalCount 8
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object >>>> { $_.ToString('x2') }) -join $glue
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { >>>> $_.ToString('x2') }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { $_.ToString('x2') >>>> }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object >>>> { $_.ToString('x2') }) -join $glue
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { >>>> $_.ToString('x2') }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { $_.ToString('x2') >>>> }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object >>>> { $_.ToString('x2') }) -join $glue
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { >>>> $_.ToString('x2') }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { $_.ToString('x2') >>>> }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object >>>> { $_.ToString('x2') }) -join $glue
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { >>>> $_.ToString('x2') }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { $_.ToString('x2') >>>> }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object >>>> { $_.ToString('x2') }) -join $glue
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { >>>> $_.ToString('x2') }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { $_.ToString('x2') >>>> }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object >>>> { $_.ToString('x2') }) -join $glue
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { >>>> $_.ToString('x2') }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { $_.ToString('x2') >>>> }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object >>>> { $_.ToString('x2') }) -join $glue
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { >>>> $_.ToString('x2') }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { $_.ToString('x2') >>>> }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object >>>> { $_.ToString('x2') }) -join $glue
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { >>>> $_.ToString('x2') }) -join $glue
DEBUG: 1354+ return (get_magic_bytes $file | ForEach-Object { $_.ToString('x2') >>>> }) -join $glue
DEBUG: 1347+ >>>> }
DEBUG: 1355+ >>>> }
DEBUG: ! SET $bytes = 'd0cf11e0a1b11ae1'.
DEBUG: 163+ if ( >>>> !($bytes.StartsWith('3c3f786d6c'))) {
DEBUG: 164+ return >>>> $null
DEBUG: 183+ >>>> }
DEBUG: ! SET $metalink_filename = ''.
DEBUG: 329+ if ( >>>> $metalink_filename) {
DEBUG: 335+ if ( >>>> $check_hash) {
DEBUG: 336+ >>>> $manifest_hash = hash_for_url $manifest $url $architecture
DEBUG: 651+ function hash_for_url($manifest, $url, $arch) >>>> {
DEBUG: ! CALL function 'hash_for_url' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\install.ps1')
DEBUG: 652+ >>>> $hashes = @(hash $manifest $arch) | Where-Object { $_ -ne $null }
DEBUG: 652+ $hashes = @( >>>> hash $manifest $arch) | Where-Object { $_ -ne $null }
DEBUG: 158+ function hash($manifest, $arch) >>>> { arch_specific 'hash' $manifest $arch }
DEBUG: ! CALL function 'hash' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 158+ function hash($manifest, $arch) { >>>> arch_specific 'hash' $manifest $arch }
DEBUG: 104+ function arch_specific($prop, $manifest, $architecture) >>>> {
DEBUG: ! CALL function 'arch_specific' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 105+ if ( >>>> $manifest.architecture) {
DEBUG: 106+ >>>> $val = $manifest.architecture.$architecture.$prop
DEBUG: ! SET $val = '0f6aa6596d418b1694f62c8583de05d24589b8d7ffacce5a7dab52ae7...'.
DEBUG: 107+ if ( >>>> $val) { return $val } # else fallback to generic prop
DEBUG: 107+ if ($val) { return >>>> $val } # else fallback to generic prop
DEBUG: 111+ >>>> }
DEBUG: 158+ function hash($manifest, $arch) { arch_specific 'hash' $manifest $arch >>>> }
DEBUG: 652+ $hashes = @(hash $manifest $arch) | Where-Object >>>> { $_ -ne $null }
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\install.ps1')
DEBUG: 652+ $hashes = @(hash $manifest $arch) | Where-Object { >>>> $_ -ne $null }
DEBUG: 652+ $hashes = @(hash $manifest $arch) | Where-Object { $_ -ne $null >>>> }
DEBUG: ! SET $hashes = '0f6aa6596d418b1694f62c8583de05d24589b8d7ffacce5a7dab52...'.
DEBUG: 654+ if ( >>>> $hashes.length -eq 0) { return $null }
DEBUG: 656+ >>>> $urls = @(script:url $manifest $arch)
DEBUG: 656+ $urls = @( >>>> script:url $manifest $arch)
DEBUG: 155+ function url($manifest, $arch) >>>> { arch_specific 'url' $manifest $arch }
DEBUG: ! CALL function 'url' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 155+ function url($manifest, $arch) { >>>> arch_specific 'url' $manifest $arch }
DEBUG: 104+ function arch_specific($prop, $manifest, $architecture) >>>> {
DEBUG: ! CALL function 'arch_specific' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 105+ if ( >>>> $manifest.architecture) {
DEBUG: 106+ >>>> $val = $manifest.architecture.$architecture.$prop
DEBUG: ! SET $val = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 107+ if ( >>>> $val) { return $val } # else fallback to generic prop
DEBUG: 107+ if ($val) { return >>>> $val } # else fallback to generic prop
DEBUG: 111+ >>>> }
DEBUG: 155+ function url($manifest, $arch) { arch_specific 'url' $manifest $arch >>>> }
DEBUG: ! SET $urls = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 658+ >>>> $index = [array]::indexof($urls, $url)
DEBUG: ! SET $index = '0'.
DEBUG: 659+ if ( >>>> $index -eq -1) { abort "Couldn't find hash in manifest for '$url'." }
DEBUG: 661+ >>>> @($hashes)[$index]
DEBUG: 662+ >>>> }
DEBUG: ! SET $manifest_hash = '0f6aa6596d418b1694f62c8583de05d24589b8d7ffacce5...'.
DEBUG: 337+ >>>> $ok, $err = check_hash $data.$url.source $manifest_hash $(show_app $app $bucket)
DEBUG: 337+ $ok, $err = check_hash $data.$url.source $manifest_hash $( >>>> show_app $app $bucket)
DEBUG: 1182+ function show_app($app, $bucket, $version) >>>> {
DEBUG: ! CALL function 'show_app' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1183+ if( >>>> $bucket) {
DEBUG: 1184+ >>>> $app = "$bucket/$app"
DEBUG: ! SET $app = 'main/7zip'.
DEBUG: 1186+ if( >>>> $version) {
DEBUG: 1189+ return >>>> $app
DEBUG: 1190+ >>>> }
DEBUG: 665+ function check_hash($file, $hash, $app_name) >>>> {
DEBUG: ! CALL function 'check_hash' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\install.ps1')
DEBUG: 666+ if ( >>>> !$hash) {
DEBUG: 671+ >>>> Write-Host 'Checking hash of ' -NoNewline
Checking hash of DEBUG: 672+ >>>> Write-Host $(url_remote_filename $url) -f Cyan -NoNewline
DEBUG: 672+ Write-Host $( >>>> url_remote_filename $url) -f Cyan -NoNewline
DEBUG: 624+ function url_remote_filename($url) >>>> {
DEBUG: ! CALL function 'url_remote_filename' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 625+ >>>> $uri = (New-Object URI $url)
DEBUG: ! SET $uri = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 626+ >>>> $basename = Split-Path $uri.PathAndQuery -Leaf
DEBUG: ! SET $basename = '7z2405-x64.msi'.
DEBUG: 627+ If ( >>>> $basename -match ".*[?=]+([\w._-]+)") {
DEBUG: 630+ If ( >>>> ($basename -notlike "*.*") -or ($basename -match "^[v.\d]+$")) {
DEBUG: 633+ If ( >>>> ($basename -notlike "*.*") -and ($uri.Fragment -ne "")) {
DEBUG: 636+ return >>>> $basename
DEBUG: 637+ >>>> }
7z2405-x64.msiDEBUG: 673+ >>>> Write-Host ' ... ' -NoNewline
... DEBUG: 674+ >>>> $algorithm, $expected = get_hash $hash
DEBUG: 1277+ function get_hash([String] $multihash) >>>> {
DEBUG: ! CALL function 'get_hash' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1278+ >>>> $type, $hash = $multihash -split ':'
DEBUG: ! SET $type = '0f6aa6596d418b1694f62c8583de05d24589b8d7ffacce5a7dab52ae...'.
DEBUG: ! SET $hash = ''.
DEBUG: 1279+ if( >>>> !$hash) {
DEBUG: 1281+ >>>> $type, $hash = 'sha256', $multihash
DEBUG: ! SET $type = 'sha256'.
DEBUG: ! SET $hash = '0f6aa6596d418b1694f62c8583de05d24589b8d7ffacce5a7dab52ae...'.
DEBUG: 1284+ if( >>>> @('md5','sha1','sha256', 'sha512') -notcontains $type) {
DEBUG: 1288+ return >>>> $type, $hash.ToLower()
DEBUG: 1289+ >>>> }
DEBUG: ! SET $algorithm = 'sha256'.
DEBUG: ! SET $expected = '0f6aa6596d418b1694f62c8583de05d24589b8d7ffacce5a7dab...'.
DEBUG: 675+ if ( >>>> $null -eq $algorithm) {
DEBUG: 679+ >>>> $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.ToLower()
DEBUG: 24+ >>>> {
DEBUG: ! CALL function 'Get-FileHash<Begin>' (defined in file 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psm1')
DEBUG: 28+ >>>> $hasherType = "System.Security.Cryptography.${Algorithm}CryptoServiceProvider" -as [Type]
DEBUG: ! SET $hasherType = 'System.Security.Cryptography.SHA256CryptoServicePr...'.
DEBUG: 29+ if ( >>>> $hasherType)
DEBUG: 31+ >>>> $hasher = $hasherType::New()
DEBUG: ! SET $hasher = 'System.Security.Cryptography.SHA256CryptoServiceProvid...'.
DEBUG: 93+ >>>> }
DEBUG: 96+ >>>> {
DEBUG: ! CALL function 'Get-FileHash<Process>' (defined in file 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psm1')
DEBUG: 97+ if( >>>> $PSCmdlet.ParameterSetName -eq "Stream")
DEBUG: 103+ >>>> $pathsToProcess = @()
DEBUG: ! SET $pathsToProcess = ''.
DEBUG: 104+ if( >>>> $PSCmdlet.ParameterSetName -eq "LiteralPath")
DEBUG: 108+ if( >>>> $PSCmdlet.ParameterSetName -eq "Path")
DEBUG: 110+ >>>> $pathsToProcess += Resolve-Path $Path | Foreach-Object ProviderPath
DEBUG: ! SET $pathsToProcess = 'C:\Users\Tordenflesk\scoop\cache\7zip#24.05#ht...'.
DEBUG: 113+ foreach($filePath in >>>> $pathsToProcess)
DEBUG: ! SET $foreach = 'IEnumerator'.
DEBUG: 113+ foreach( >>>> $filePath in $pathsToProcess)
DEBUG: ! SET $filePath = 'C:\Users\Tordenflesk\scoop\cache\7zip#24.05#https_ww...'.
DEBUG: 115+ if( >>>> Test-Path -LiteralPath $filePath -PathType Container)
DEBUG: 115+ if( >>>> Test-Path -LiteralPath $filePath -PathType Container)
DEBUG: 123+ >>>> [system.io.stream]$stream = [system.io.file]::OpenRead($filePath)
DEBUG: ! SET $stream = 'System.IO.FileStream'.
DEBUG: 124+ >>>> GetStreamHash -InputStream $stream -RelatedPath $filePath -Hasher $hasher
DEBUG: 60+ >>>> {
DEBUG: ! CALL function 'GetStreamHash' (defined in file 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psm1')
DEBUG: 72+ >>>> [Byte[]] $computedHash = $Hasher.ComputeHash($InputStream)
DEBUG: ! SET $computedHash = '15 106 166 89 109 65 139 22 148 246 44 133 131 2...'.
DEBUG: 73+ >>>> [string] $hash = [BitConverter]::ToString($computedHash) -replace '-',''
DEBUG: ! SET $hash = '0F6AA6596D418B1694F62C8583DE05D24589B8D7FFACCE5A7DAB52AE...'.
DEBUG: 75+ if ( >>>> $RelatedPath -eq $null)
DEBUG: 84+ >>>> $retVal = [PSCustomObject] @{
DEBUG: ! SET $retVal = '@{Algorithm=SHA256; Hash=0F6AA6596D418B1694F62C8583DE0...'.
DEBUG: 90+ >>>> $retVal.psobject.TypeNames.Insert(0, "Microsoft.Powershell.Utility.FileHash")
DEBUG: 91+ >>>> $retVal
DEBUG: 92+ >>>> }
DEBUG: 134+ if( >>>> $stream)
DEBUG: 136+ >>>> $stream.Dispose()
DEBUG: 113+ foreach( >>>> $filePath in $pathsToProcess)
DEBUG: ! SET $foreach = ''.
DEBUG: 141+ >>>> }
DEBUG: ! SET $actual = '0f6aa6596d418b1694f62c8583de05d24589b8d7ffacce5a7dab52...'.
DEBUG: 680+ >>>> $expected = $expected.ToLower()
DEBUG: ! SET $expected = '0f6aa6596d418b1694f62c8583de05d24589b8d7ffacce5a7dab...'.
DEBUG: 682+ if ( >>>> $actual -ne $expected) {
DEBUG: 695+ >>>> Write-Host 'ok.' -f Green
ok.
DEBUG: 696+ return >>>> $true, $null
DEBUG: 697+ >>>> }
DEBUG: ! SET $ok = 'True'.
DEBUG: ! SET $err = ''.
DEBUG: 338+ if ( >>>> !$ok) {
DEBUG: 353+ if ( >>>> !(Test-Path $data.$url.source) ) {
DEBUG: 357+ if ( >>>> !($dir -eq $cachedir)) {
DEBUG: 358+ if ( >>>> $use_cache) {
DEBUG: 359+ >>>> Copy-Item $data.$url.source $data.$url.target
DEBUG: 326+ foreach ( >>>> $url in $urls) {
DEBUG: ! SET $foreach = ''.
DEBUG: 365+ >>>> }
DEBUG: 590+ foreach ($url in >>>> $urls) {
DEBUG: ! SET $foreach = 'IEnumerator'.
DEBUG: 590+ foreach ( >>>> $url in $urls) {
DEBUG: ! SET $url = 'https://www.7-zip.org/a/7z2405-x64.msi'.
DEBUG: 591+ >>>> $fname = url_filename $url
DEBUG: 618+ function url_filename($url) >>>> {
DEBUG: ! CALL function 'url_filename' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 619+ >>>> (split-path $url -leaf).split('?') | Select-Object -First 1
DEBUG: 620+ >>>> }
DEBUG: ! SET $fname = '7z2405-x64.msi'.
DEBUG: 593+ >>>> $extract_dir = $extract_dirs[$extracted]
DEBUG: ! SET $extract_dir = 'Files\7-Zip'.
DEBUG: 594+ >>>> $extract_to = $extract_tos[$extracted]
DEBUG: ! SET $extract_to = ''.
DEBUG: 597+ >>>> $extract_fn = $null
DEBUG: ! SET $extract_fn = ''.
DEBUG: 598+ if ( >>>> $manifest.innosetup) {
DEBUG: 600+ } elseif ( >>>> $fname -match '\.zip$') {
DEBUG: 607+ } elseif ( >>>> $fname -match '\.msi$') {
DEBUG: 608+ >>>> $extract_fn = 'Expand-MsiArchive'
DEBUG: ! SET $extract_fn = 'Expand-MsiArchive'.
DEBUG: 617+ if ( >>>> $extract_fn) {
DEBUG: 618+ >>>> Write-Host 'Extracting ' -NoNewline
Extracting DEBUG: 619+ >>>> Write-Host $fname -f Cyan -NoNewline
7z2405-x64.msiDEBUG: 620+ >>>> Write-Host ' ... ' -NoNewline
... DEBUG: 621+ >>>> & $extract_fn -Path "$dir\$fname" -DestinationPath "$dir\$extract_to" -ExtractDir $extract_dir -Removal
DEBUG: 132+ function Expand-MsiArchive >>>> {
DEBUG: ! CALL function 'Expand-MsiArchive' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\decompress.ps1')
DEBUG: 149+ >>>> $DestinationPath = $DestinationPath.TrimEnd('\')
DEBUG: ! SET $DestinationPath = 'C:\Users\Tordenflesk\scoop\apps\7zip\24.05'.
DEBUG: 150+ if ( >>>> $ExtractDir) {
DEBUG: 151+ >>>> $OriDestinationPath = $DestinationPath
DEBUG: ! SET $OriDestinationPath = 'C:\Users\Tordenflesk\scoop\apps\7zip\24.05'.
DEBUG: 152+ >>>> $DestinationPath = "$DestinationPath\_tmp"
DEBUG: ! SET $DestinationPath = 'C:\Users\Tordenflesk\scoop\apps\7zip\24.05\_t...'.
DEBUG: 154+ if ( >>>> (get_config USE_LESSMSI)) {
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'use_lessmsi'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 114+ return >>>> $scoopConfig.$name
DEBUG: 115+ >>>> }
DEBUG: 158+ >>>> $MsiPath = 'msiexec.exe'
DEBUG: ! SET $MsiPath = 'msiexec.exe'.
DEBUG: 159+ >>>> $ArgList = @('/a', $Path, '/qn', "TARGETDIR=$DestinationPath\SourceDir")
DEBUG: ! SET $ArgList = '/a C:\Users\Tordenflesk\scoop\apps\7zip\24.05\7z2405-...'.
DEBUG: 161+ >>>> $LogPath = "$(Split-Path $Path)\msi.log"
DEBUG: 161+ $LogPath = "$( >>>> Split-Path $Path)\msi.log"
DEBUG: ! SET $LogPath = 'C:\Users\Tordenflesk\scoop\apps\7zip\24.05\msi.log'.
DEBUG: 162+ if ( >>>> $Switches) {
DEBUG: 165+ >>>> $Status = Invoke-ExternalCommand $MsiPath $ArgList -LogPath $LogPath
DEBUG: 695+ function Invoke-ExternalCommand >>>> {
DEBUG: ! CALL function 'Invoke-ExternalCommand' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 725+ if ( >>>> $Activity) {
DEBUG: 728+ >>>> $Process = New-Object System.Diagnostics.Process
DEBUG: ! SET $Process = 'System.Diagnostics.Process'.
DEBUG: 729+ >>>> $Process.StartInfo.FileName = $FilePath
DEBUG: 730+ >>>> $Process.StartInfo.UseShellExecute = $false
DEBUG: 731+ if ( >>>> $LogPath) {
DEBUG: 732+ if ( >>>> $FilePath -match '^msiexec(.exe)?$') {
DEBUG: 733+ >>>> $ArgumentList += "/lwe `"$LogPath`""
DEBUG: ! SET $ArgumentList = '/a C:\Users\Tordenflesk\scoop\apps\7zip\24.05\7z...'.
DEBUG: 740+ if ( >>>> $RunAs) {
DEBUG: 744+ if ( >>>> $Quiet) {
DEBUG: 748+ if ( >>>> $ArgumentList.Length -gt 0) {
DEBUG: 754+ >>>> $ArgumentList = $ArgumentList.ForEach({ $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach( >>>> { $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ >>>> $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' >>>> })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach( >>>> { $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ >>>> $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' >>>> })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach( >>>> { $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ >>>> $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' >>>> })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach( >>>> { $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ >>>> $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' >>>> })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach( >>>> { $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ >>>> $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' })
DEBUG: 754+ $ArgumentList = $ArgumentList.ForEach({ $_ -replace '"' -split '(?<=(?<![:\w])[/-]\w+) | (?=[/-])' >>>> })
DEBUG: ! SET $ArgumentList = '/a C:\Users\Tordenflesk\scoop\apps\7zip\24.05\7z...'.
DEBUG: 760+ >>>> $LegacyCommand = $FilePath -match '^((cmd|cscript|find|sqlcmd|wscript|msiexec)(\.exe)?|.*\.(bat|cmd|js|vbs|wsf))$' -or
DEBUG: ! SET $LegacyCommand = 'True'.
DEBUG: 762+ >>>> $SupportArgumentList = $Process.StartInfo.PSObject.Properties.Name -contains 'ArgumentList'
DEBUG: ! SET $SupportArgumentList = 'False'.
DEBUG: 763+ if ( >>>> (-not $LegacyCommand) -and $SupportArgumentList) {
DEBUG: 770+ >>>> $escapedArgs = switch -regex ($ArgumentList) {
DEBUG: ! SET $switch = 'IEnumerator'.
DEBUG: 770+ $escapedArgs = switch -regex ( >>>> $ArgumentList) {
DEBUG: 772+ >>>> '(?<!/D=)[A-Z]:[\\/].*' { $_ -replace '([A-Z]:[\\/].*)', '"$1"'; continue }
DEBUG: 774+ >>>> '/D=[A-Z]:[\\/].*' { $_; continue }
DEBUG: 776+ >>>> ' ' { "`"$_`""; continue }
DEBUG: 777+ default { >>>> $_; continue }
DEBUG: 777+ default { $_; >>>> continue }
DEBUG: 770+ $escapedArgs = switch -regex ( >>>> $ArgumentList) {
DEBUG: 772+ >>>> '(?<!/D=)[A-Z]:[\\/].*' { $_ -replace '([A-Z]:[\\/].*)', '"$1"'; continue }
DEBUG: 772+ '(?<!/D=)[A-Z]:[\\/].*' { >>>> $_ -replace '([A-Z]:[\\/].*)', '"$1"'; continue }
DEBUG: 772+ '(?<!/D=)[A-Z]:[\\/].*' { $_ -replace '([A-Z]:[\\/].*)', '"$1"'; >>>> continue }
DEBUG: 770+ $escapedArgs = switch -regex ( >>>> $ArgumentList) {
DEBUG: 772+ >>>> '(?<!/D=)[A-Z]:[\\/].*' { $_ -replace '([A-Z]:[\\/].*)', '"$1"'; continue }
DEBUG: 774+ >>>> '/D=[A-Z]:[\\/].*' { $_; continue }
DEBUG: 776+ >>>> ' ' { "`"$_`""; continue }
DEBUG: 777+ default { >>>> $_; continue }
DEBUG: 777+ default { $_; >>>> continue }
DEBUG: 770+ $escapedArgs = switch -regex ( >>>> $ArgumentList) {
DEBUG: 772+ >>>> '(?<!/D=)[A-Z]:[\\/].*' { $_ -replace '([A-Z]:[\\/].*)', '"$1"'; continue }
DEBUG: 772+ '(?<!/D=)[A-Z]:[\\/].*' { >>>> $_ -replace '([A-Z]:[\\/].*)', '"$1"'; continue }
DEBUG: 772+ '(?<!/D=)[A-Z]:[\\/].*' { $_ -replace '([A-Z]:[\\/].*)', '"$1"'; >>>> continue }
DEBUG: 770+ $escapedArgs = switch -regex ( >>>> $ArgumentList) {
DEBUG: 772+ >>>> '(?<!/D=)[A-Z]:[\\/].*' { $_ -replace '([A-Z]:[\\/].*)', '"$1"'; continue }
DEBUG: 774+ >>>> '/D=[A-Z]:[\\/].*' { $_; continue }
DEBUG: 776+ >>>> ' ' { "`"$_`""; continue }
DEBUG: 777+ default { >>>> $_; continue }
DEBUG: 777+ default { $_; >>>> continue }
DEBUG: 770+ $escapedArgs = switch -regex ( >>>> $ArgumentList) {
DEBUG: 772+ >>>> '(?<!/D=)[A-Z]:[\\/].*' { $_ -replace '([A-Z]:[\\/].*)', '"$1"'; continue }
DEBUG: 772+ '(?<!/D=)[A-Z]:[\\/].*' { >>>> $_ -replace '([A-Z]:[\\/].*)', '"$1"'; continue }
DEBUG: 772+ '(?<!/D=)[A-Z]:[\\/].*' { $_ -replace '([A-Z]:[\\/].*)', '"$1"'; >>>> continue }
DEBUG: 770+ $escapedArgs = switch -regex ( >>>> $ArgumentList) {
DEBUG: ! SET $switch = ''.
DEBUG: ! SET $escapedArgs = '/a "C:\Users\Tordenflesk\scoop\apps\7zip\24.05\7z...'.
DEBUG: 779+ >>>> $Process.StartInfo.Arguments = $escapedArgs -join ' '
DEBUG: 783+ >>>> [void]$Process.Start()
DEBUG: 791+ if ( >>>> $redirectToLogFile) {
DEBUG: 797+ >>>> $Process.WaitForExit()
DEBUG: 798+ if ( >>>> $redirectToLogFile) {
DEBUG: 802+ if ( >>>> $Process.ExitCode -ne 0) {
DEBUG: 803+ if ( >>>> $ContinueExitCodes -and ($ContinueExitCodes.ContainsKey($Process.ExitCode))) {
DEBUG: 810+ if ( >>>> $Activity) {
DEBUG: 813+ >>>> error "Exit code was $($Process.ExitCode)!"
DEBUG: 813+ error "Exit code was $( >>>> $Process.ExitCode)!"
DEBUG: 329+ function error($msg) >>>> { write-host "ERROR $msg" -f darkred }
DEBUG: ! CALL function 'error' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 329+ function error($msg) { >>>> write-host "ERROR $msg" -f darkred }
ERROR Exit code was -1073741819!
DEBUG: 329+ function error($msg) { write-host "ERROR $msg" -f darkred >>>> }
DEBUG: 814+ return >>>> $false
DEBUG: 821+ >>>> }
DEBUG: ! SET $Status = 'False'.
DEBUG: 166+ if ( >>>> !$Status) {
DEBUG: 167+ >>>> abort "Failed to extract files from $Path.`nLog file:`n $(friendly_path $LogPath)`n$(new_issue_msg $app $bucket 'decompress error')"
DEBUG: 167+ abort "Failed to extract files from $Path.`nLog file:`n $( >>>> friendly_path $LogPath)`n$(new_issue_msg $app $bucket 'decompress error')"
DEBUG: 673+ function friendly_path($path) >>>> {
DEBUG: ! CALL function 'friendly_path' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 674+ >>>> $h = (Get-PSProvider 'FileSystem').Home
DEBUG: ! SET $h = 'C:\Users\Tordenflesk'.
DEBUG: 675+ if ( >>>> !$h.EndsWith('\')) {
DEBUG: 676+ >>>> $h += '\'
DEBUG: ! SET $h = 'C:\Users\Tordenflesk\'.
DEBUG: 678+ if ( >>>> $h -eq '\') {
DEBUG: 681+ return >>>> $path -replace ([Regex]::Escape($h)), '~\'
DEBUG: 683+ >>>> }
DEBUG: 167+ abort "Failed to extract files from $Path.`nLog file:`n $(friendly_path $LogPath)`n$( >>>> new_issue_msg $app $bucket 'decompress error')"
DEBUG: 174+ function new_issue_msg($app, $bucket, $title, $body) >>>> {
DEBUG: ! CALL function 'new_issue_msg' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\buckets.ps1')
DEBUG: 175+ >>>> $app, $manifest, $bucket, $url = Get-Manifest "$bucket/$app"
DEBUG: 34+ function Get-Manifest($app) >>>> {
DEBUG: ! CALL function 'Get-Manifest' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 35+ >>>> $bucket, $manifest, $url = $null
DEBUG: ! SET $bucket = ''.
DEBUG: ! SET $manifest = ''.
DEBUG: ! SET $url = ''.
DEBUG: 36+ >>>> $app = $app.TrimStart('/')
DEBUG: ! SET $app = 'main/7zip'.
DEBUG: 38+ if ( >>>> $app -match '^(ht|f)tps?://|\\\\') {
DEBUG: 43+ >>>> $app, $bucket, $version = parse_app $app
DEBUG: 1174+ function parse_app([string]$app) >>>> {
DEBUG: ! CALL function 'parse_app' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 1175+ if ( >>>> $app -match '^(?:(?<bucket>[a-zA-Z0-9-_.]+)/)?(?<app>.*\.json$|[a-zA-Z0-9-_.]+)(?:@(?<version>.*))?$') {
DEBUG: 1176+ return >>>> $Matches['app'], $Matches['bucket'], $Matches['version']
DEBUG: 1180+ >>>> }
DEBUG: ! SET $app = '7zip'.
DEBUG: ! SET $bucket = 'main'.
DEBUG: ! SET $version = ''.
DEBUG: 44+ if ( >>>> $bucket) {
DEBUG: 45+ >>>> $manifest = manifest $app $bucket
DEBUG: 70+ function manifest($app, $bucket, $url) >>>> {
DEBUG: ! CALL function 'manifest' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 71+ if ( >>>> $url) { return url_manifest $url }
DEBUG: 72+ >>>> parse_json (manifest_path $app $bucket)
DEBUG: 1+ function manifest_path($app, $bucket) >>>> {
DEBUG: ! CALL function 'manifest_path' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 2+ >>>> (Get-ChildItem (Find-BucketDirectory $bucket) -Filter "$(sanitary_path $app).json" -Recurse).FullName
DEBUG: 3+ function Find-BucketDirectory >>>> {
DEBUG: ! CALL function 'Find-BucketDirectory' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\buckets.ps1')
DEBUG: 19+ if ( >>>> ($null -eq $Name) -or ($Name -eq '')) {
DEBUG: 22+ >>>> $bucket = "$bucketsdir\$Name"
DEBUG: ! SET $bucket = 'C:\Users\Tordenflesk\scoop\buckets\main'.
DEBUG: 24+ if ( >>>> (Test-Path "$bucket\bucket") -and !$Root) {
DEBUG: 25+ >>>> $bucket = "$bucket\bucket"
DEBUG: ! SET $bucket = 'C:\Users\Tordenflesk\scoop\buckets\main\bucket'.
DEBUG: 28+ return >>>> $bucket
DEBUG: 29+ >>>> }
DEBUG: 2+ (Get-ChildItem (Find-BucketDirectory $bucket) -Filter "$( >>>> sanitary_path $app).json" -Recurse).FullName
DEBUG: 405+ function sanitary_path($path) >>>> { return [regex]::replace($path, "[/\\?:*<>|]", "") }
DEBUG: ! CALL function 'sanitary_path' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 405+ function sanitary_path($path) { return >>>> [regex]::replace($path, "[/\\?:*<>|]", "") }
DEBUG: 405+ function sanitary_path($path) { return [regex]::replace($path, "[/\\?:*<>|]", "") >>>> }
DEBUG: 3+ >>>> }
DEBUG: 5+ function parse_json($path) >>>> {
DEBUG: ! CALL function 'parse_json' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\manifest.ps1')
DEBUG: 6+ if ( >>>> $null -eq $path -or !(Test-Path $path)) { return $null }
DEBUG: 8+ >>>> Get-Content $path -Raw -Encoding UTF8 | ConvertFrom-Json -ErrorAction Stop
DEBUG: 12+ >>>> }
DEBUG: 73+ >>>> }
DEBUG: ! SET $manifest = '@{version=24.05; description=A multi-format file arc...'.
DEBUG: 55+ if ( >>>> !$manifest) {
DEBUG: 67+ return >>>> $app, $manifest, $bucket, $url
DEBUG: 68+ >>>> }
DEBUG: ! SET $app = '7zip'.
DEBUG: ! SET $manifest = '@{version=24.05; description=A multi-format file arc...'.
DEBUG: ! SET $bucket = 'main'.
DEBUG: ! SET $url = ''.
DEBUG: 176+ >>>> $url = known_bucket_repo $bucket
DEBUG: 43+ function known_bucket_repo($name) >>>> {
DEBUG: ! CALL function 'known_bucket_repo' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\buckets.ps1')
DEBUG: 44+ >>>> $buckets = known_bucket_repos
DEBUG: 37+ function known_bucket_repos >>>> {
DEBUG: ! CALL function 'known_bucket_repos' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\buckets.ps1')
DEBUG: 38+ >>>> $json = "$PSScriptRoot\..\buckets.json"
DEBUG: ! SET $json = 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\..\buc...'.
DEBUG: 40+ return >>>> Get-Content $json -Raw | ConvertFrom-Json -ErrorAction stop
DEBUG: 41+ >>>> }
DEBUG: ! SET $buckets = '@{main=https://github.com/ScoopInstaller/Main; extras...'.
DEBUG: 45+ >>>> $buckets.$name
DEBUG: 46+ >>>> }
DEBUG: ! SET $url = 'https://github.com/ScoopInstaller/Main'.
DEBUG: 177+ >>>> $bucket_path = "$bucketsdir\$bucket"
DEBUG: ! SET $bucket_path = 'C:\Users\Tordenflesk\scoop\buckets\main'.
DEBUG: 179+ if ( >>>> Test-Path $bucket_path) {
DEBUG: 179+ if ( >>>> Test-Path $bucket_path) {
DEBUG: 180+ >>>> $remote = Invoke-Git -Path $bucket_path -ArgumentList @('config', '--get', 'remote.origin.url')
DEBUG: 250+ function Invoke-Git >>>> {
DEBUG: ! CALL function 'Invoke-Git' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 265+ >>>> $proxy = get_config PROXY
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'proxy'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 114+ return >>>> $scoopConfig.$name
DEBUG: 115+ >>>> }
DEBUG: ! SET $proxy = ''.
DEBUG: 266+ >>>> $git = Get-HelperPath -Helper Git
DEBUG: 484+ begin >>>> {
DEBUG: ! CALL function 'Get-HelperPath<Begin>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 485+ >>>> $HelperPath = $null
DEBUG: ! SET $HelperPath = ''.
DEBUG: 486+ >>>> }
DEBUG: 487+ process >>>> {
DEBUG: ! CALL function 'Get-HelperPath<Process>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: ! SET $switch = 'IEnumerator'.
DEBUG: 488+ switch ( >>>> $Helper) {
DEBUG: 489+ >>>> 'Git' {
DEBUG: 490+ >>>> $internalgit = (Get-AppFilePath 'git' 'mingw64\bin\git.exe'), (Get-AppFilePath 'git' 'mingw32\bin\git.exe') | Where-Object { $_ -ne $null }
DEBUG: 436+ function Get-AppFilePath >>>> {
DEBUG: ! CALL function 'Get-AppFilePath' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 449+ >>>> $Path = "$(currentdir $App $false)\$File"
DEBUG: 449+ $Path = "$( >>>> currentdir $App $false)\$File"
DEBUG: 390+ function currentdir($app, $global) >>>> {
DEBUG: ! CALL function 'currentdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 391+ if ( >>>> get_config NO_JUNCTION) {
DEBUG: 391+ if ( >>>> get_config NO_JUNCTION) {
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'no_junction'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 114+ return >>>> $scoopConfig.$name
DEBUG: 115+ >>>> }
DEBUG: 394+ >>>> $version = 'current'
DEBUG: ! SET $version = 'current'.
DEBUG: 396+ >>>> "$(appdir $app $global)\$version"
DEBUG: 396+ "$( >>>> appdir $app $global)\$version"
DEBUG: 387+ function appdir($app, $global) >>>> { "$(appsdir $global)\$app" }
DEBUG: ! CALL function 'appdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 387+ function appdir($app, $global) { >>>> "$(appsdir $global)\$app" }
DEBUG: 387+ function appdir($app, $global) { "$( >>>> appsdir $global)\$app" }
DEBUG: 384+ function appsdir($global) >>>> { "$(basedir $global)\apps" }
DEBUG: ! CALL function 'appsdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 384+ function appsdir($global) { >>>> "$(basedir $global)\apps" }
DEBUG: 384+ function appsdir($global) { "$( >>>> basedir $global)\apps" }
DEBUG: 383+ function basedir($global) >>>> { if($global) { return $globaldir } $scoopdir }
DEBUG: ! CALL function 'basedir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 383+ function basedir($global) { if( >>>> $global) { return $globaldir } $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } >>>> $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } $scoopdir >>>> }
DEBUG: 384+ function appsdir($global) { "$(basedir $global)\apps" >>>> }
DEBUG: 387+ function appdir($app, $global) { "$(appsdir $global)\$app" >>>> }
DEBUG: 397+ >>>> }
DEBUG: ! SET $Path = 'C:\Users\Tordenflesk\scoop\apps\git\current\mingw64\bin\...'.
DEBUG: 450+ if ( >>>> Test-Path $Path) {
DEBUG: 450+ if ( >>>> Test-Path $Path) {
DEBUG: 451+ return >>>> $Path
DEBUG: 462+ >>>> }
DEBUG: 436+ function Get-AppFilePath >>>> {
DEBUG: ! CALL function 'Get-AppFilePath' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 449+ >>>> $Path = "$(currentdir $App $false)\$File"
DEBUG: 449+ $Path = "$( >>>> currentdir $App $false)\$File"
DEBUG: 390+ function currentdir($app, $global) >>>> {
DEBUG: ! CALL function 'currentdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 391+ if ( >>>> get_config NO_JUNCTION) {
DEBUG: 391+ if ( >>>> get_config NO_JUNCTION) {
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'no_junction'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 114+ return >>>> $scoopConfig.$name
DEBUG: 115+ >>>> }
DEBUG: 394+ >>>> $version = 'current'
DEBUG: ! SET $version = 'current'.
DEBUG: 396+ >>>> "$(appdir $app $global)\$version"
DEBUG: 396+ "$( >>>> appdir $app $global)\$version"
DEBUG: 387+ function appdir($app, $global) >>>> { "$(appsdir $global)\$app" }
DEBUG: ! CALL function 'appdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 387+ function appdir($app, $global) { >>>> "$(appsdir $global)\$app" }
DEBUG: 387+ function appdir($app, $global) { "$( >>>> appsdir $global)\$app" }
DEBUG: 384+ function appsdir($global) >>>> { "$(basedir $global)\apps" }
DEBUG: ! CALL function 'appsdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 384+ function appsdir($global) { >>>> "$(basedir $global)\apps" }
DEBUG: 384+ function appsdir($global) { "$( >>>> basedir $global)\apps" }
DEBUG: 383+ function basedir($global) >>>> { if($global) { return $globaldir } $scoopdir }
DEBUG: ! CALL function 'basedir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 383+ function basedir($global) { if( >>>> $global) { return $globaldir } $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } >>>> $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } $scoopdir >>>> }
DEBUG: 384+ function appsdir($global) { "$(basedir $global)\apps" >>>> }
DEBUG: 387+ function appdir($app, $global) { "$(appsdir $global)\$app" >>>> }
DEBUG: 397+ >>>> }
DEBUG: ! SET $Path = 'C:\Users\Tordenflesk\scoop\apps\git\current\mingw32\bin\...'.
DEBUG: 450+ if ( >>>> Test-Path $Path) {
DEBUG: 450+ if ( >>>> Test-Path $Path) {
DEBUG: 455+ >>>> $Path = "$(currentdir $App $true)\$File"
DEBUG: 455+ $Path = "$( >>>> currentdir $App $true)\$File"
DEBUG: 390+ function currentdir($app, $global) >>>> {
DEBUG: ! CALL function 'currentdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 391+ if ( >>>> get_config NO_JUNCTION) {
DEBUG: 391+ if ( >>>> get_config NO_JUNCTION) {
DEBUG: 109+ function get_config($name, $default) >>>> {
DEBUG: ! CALL function 'get_config' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 110+ >>>> $name = $name.ToLowerInvariant()
DEBUG: ! SET $name = 'no_junction'.
DEBUG: 111+ if( >>>> $null -eq $scoopConfig.$name -and $null -ne $default) {
DEBUG: 114+ return >>>> $scoopConfig.$name
DEBUG: 115+ >>>> }
DEBUG: 394+ >>>> $version = 'current'
DEBUG: ! SET $version = 'current'.
DEBUG: 396+ >>>> "$(appdir $app $global)\$version"
DEBUG: 396+ "$( >>>> appdir $app $global)\$version"
DEBUG: 387+ function appdir($app, $global) >>>> { "$(appsdir $global)\$app" }
DEBUG: ! CALL function 'appdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 387+ function appdir($app, $global) { >>>> "$(appsdir $global)\$app" }
DEBUG: 387+ function appdir($app, $global) { "$( >>>> appsdir $global)\$app" }
DEBUG: 384+ function appsdir($global) >>>> { "$(basedir $global)\apps" }
DEBUG: ! CALL function 'appsdir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 384+ function appsdir($global) { >>>> "$(basedir $global)\apps" }
DEBUG: 384+ function appsdir($global) { "$( >>>> basedir $global)\apps" }
DEBUG: 383+ function basedir($global) >>>> { if($global) { return $globaldir } $scoopdir }
DEBUG: ! CALL function 'basedir' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 383+ function basedir($global) { if( >>>> $global) { return $globaldir } $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return >>>> $globaldir } $scoopdir }
DEBUG: 383+ function basedir($global) { if($global) { return $globaldir } $scoopdir >>>> }
DEBUG: 384+ function appsdir($global) { "$(basedir $global)\apps" >>>> }
DEBUG: 387+ function appdir($app, $global) { "$(appsdir $global)\$app" >>>> }
DEBUG: 397+ >>>> }
DEBUG: ! SET $Path = 'C:\ProgramData\scoop\apps\git\current\mingw32\bin\git.ex...'.
DEBUG: 456+ if ( >>>> Test-Path $Path) {
DEBUG: 456+ if ( >>>> Test-Path $Path) {
DEBUG: 461+ return >>>> $null
DEBUG: 462+ >>>> }
DEBUG: 490+ $internalgit = (Get-AppFilePath 'git' 'mingw64\bin\git.exe'), (Get-AppFilePath 'git' 'mingw32\bin\git.exe') | Where-Object >>>> { $_ -ne $null }
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 490+ $internalgit = (Get-AppFilePath 'git' 'mingw64\bin\git.exe'), (Get-AppFilePath 'git' 'mingw32\bin\git.exe') | Where-Object { >>>> $_ -ne $null }
DEBUG: 490+ $internalgit = (Get-AppFilePath 'git' 'mingw64\bin\git.exe'), (Get-AppFilePath 'git' 'mingw32\bin\git.exe') | Where-Object { $_ -ne $null >>>> }
DEBUG: 490+ $internalgit = (Get-AppFilePath 'git' 'mingw64\bin\git.exe'), (Get-AppFilePath 'git' 'mingw32\bin\git.exe') | Where-Object >>>> { $_ -ne $null }
DEBUG: ! CALL function '<ScriptBlock>' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 490+ $internalgit = (Get-AppFilePath 'git' 'mingw64\bin\git.exe'), (Get-AppFilePath 'git' 'mingw32\bin\git.exe') | Where-Object { >>>> $_ -ne $null }
DEBUG: 490+ $internalgit = (Get-AppFilePath 'git' 'mingw64\bin\git.exe'), (Get-AppFilePath 'git' 'mingw32\bin\git.exe') | Where-Object { $_ -ne $null >>>> }
DEBUG: ! SET $internalgit = 'C:\Users\Tordenflesk\scoop\apps\git\current\mingw...'.
DEBUG: 491+ if ( >>>> $internalgit) {
DEBUG: 492+ >>>> $HelperPath = $internalgit
DEBUG: ! SET $HelperPath = 'C:\Users\Tordenflesk\scoop\apps\git\current\mingw6...'.
DEBUG: 497+ >>>> '7zip' { $HelperPath = Get-AppFilePath '7zip' '7z.exe' }
DEBUG: 498+ >>>> 'Lessmsi' { $HelperPath = Get-AppFilePath 'lessmsi' 'lessmsi.exe' }
DEBUG: 499+ >>>> 'Innounp' { $HelperPath = Get-AppFilePath 'innounp' 'innounp.exe' }
DEBUG: 500+ >>>> 'Dark' {
DEBUG: 506+ >>>> 'Aria2' { $HelperPath = Get-AppFilePath 'aria2' 'aria2c.exe' }
DEBUG: 507+ >>>> 'Zstd' { $HelperPath = Get-AppFilePath 'zstd' 'zstd.exe' }
DEBUG: 488+ switch ( >>>> $Helper) {
DEBUG: ! SET $switch = ''.
DEBUG: 510+ return >>>> $HelperPath
DEBUG: 511+ >>>> }
DEBUG: ! SET $git = 'C:\Users\Tordenflesk\scoop\apps\git\current\mingw64\bin\g...'.
DEBUG: 268+ if ( >>>> $WorkingDirectory) {
DEBUG: 269+ >>>> $ArgumentList = @('-C', $WorkingDirectory) + $ArgumentList
DEBUG: ! SET $ArgumentList = '-C C:\Users\Tordenflesk\scoop\buckets\main confi...'.
DEBUG: 272+ if( >>>> [String]::IsNullOrEmpty($proxy) -or $proxy -eq 'none') {
DEBUG: 273+ return >>>> & $git @ArgumentList
DEBUG: 292+ >>>> }
DEBUG: ! SET $remote = 'https://github.com/ScoopInstaller/Main'.
DEBUG: 184+ >>>> $remote -match '(@|:\/\/)(?<provider>.+)[:/](?<user>.*)\/(?<repo>.*)(\.git)?$' | Out-Null
DEBUG: 185+ >>>> $url = "https://$($Matches.Provider)/$($Matches.User)/$($Matches.Repo)"
DEBUG: 185+ $url = "https://$( >>>> $Matches.Provider)/$($Matches.User)/$($Matches.Repo)"
DEBUG: 185+ $url = "https://$($Matches.Provider)/$( >>>> $Matches.User)/$($Matches.Repo)"
DEBUG: 185+ $url = "https://$($Matches.Provider)/$($Matches.User)/$( >>>> $Matches.Repo)"
DEBUG: ! SET $url = 'https://github.com/ScoopInstaller/Main'.
DEBUG: 188+ if ( >>>> !$url) { return 'Please contact the bucket maintainer!' }
DEBUG: 191+ if ( >>>> $url -like '*github*') {
DEBUG: 192+ >>>> $title = [System.Web.HttpUtility]::UrlEncode("$app@$($manifest.version): $title")
DEBUG: 192+ $title = [System.Web.HttpUtility]::UrlEncode("$app@$( >>>> $manifest.version): $title")
DEBUG: ! SET $title = '7zip%4024.05%3a+decompress+error'.
DEBUG: 193+ >>>> $body = [System.Web.HttpUtility]::UrlEncode($body)
DEBUG: ! SET $body = ''.
DEBUG: 194+ >>>> $url = $url -replace '\.git$', ''
DEBUG: ! SET $url = 'https://github.com/ScoopInstaller/Main'.
DEBUG: 195+ >>>> $url = "$url/issues/new?title=$title"
DEBUG: ! SET $url = 'https://github.com/ScoopInstaller/Main/issues/new?title=7...'.
DEBUG: 196+ if ( >>>> $body) {
DEBUG: 201+ >>>> $msg = "`nPlease try again or create a new issue by using the following link and paste your console output:"
DEBUG: ! SET $msg = '
Please try again or create a new issue by using the foll...'.
DEBUG: 202+ return >>>> "$msg`n$url"
DEBUG: 203+ >>>> }
DEBUG: 328+ function abort($msg, [int] $exit_code=1) >>>> { write-host $msg -f red; exit $exit_code }
DEBUG: ! CALL function 'abort' (defined in file 'C:\Users\Tordenflesk\scoop\apps\scoop\current\lib\core.ps1')
DEBUG: 328+ function abort($msg, [int] $exit_code=1) { >>>> write-host $msg -f red; exit $exit_code }
Failed to extract files from C:\Users\Tordenflesk\scoop\apps\7zip\24.05\7z2405-x64.msi.
Log file:
~\scoop\apps\7zip\24.05\msi.log
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=7zip%4024.05%3a+decompress+error
DEBUG: 328+ function abort($msg, [int] $exit_code=1) { write-host $msg -f red; >>>> exit $exit_code }
DEBUG: ! SET $foreach = ''.
DEBUG: 36+ >>>> }
DEBUG: 17+ switch ( >>>> $subCommand) {
DEBUG: ! SET $switch = ''.
DEBUG: 4+ >>>> exit $LASTEXITCODE
DEBUG: 1+ function scoop { if ($args[0] -eq "search") { scoop-search-multisource.exe @($args | Select-Object -Skip 1) } else { scoop.ps1 @args } >>>> }
use_external_7zip & msiextract_use_lessmsi attempted as well, still -1073741819
It appears to be a Windows error, rather than an issue with Scoop.
I’m getting the same result when trying to install Scoop from scratch, but I’m getting error 1639, with the exact same window appearing as the one shown on issue #83, which leads me to think that there might still be an issue with the installation path having spaces.
I tried:
scoop install lessmsi
scoop config MSIEXTRACT_USE_LESSMSI $true
scoop install 7zip
Although lessmsi
successfully installed (installation did not use an msi file), installing 7zip keeps failing when trying to extract from the msi file.
I also tried doing scoop update
, but it failed with the same error because it needs git
which in turn needs 7zip
to install.
It appears to be a Windows error, rather than an issue with Scoop.
https://github.com/ScoopInstaller/Main/issues/5840#issuecomment-2120067195
OK, never mind. If you're the 1% of the 1% that use Scoop & VxKey, uncheck "Allow VxKey to be enabled for MSI ..." in KexCfg
@tordenflesk , I don’t use VxKey. How can I prevent the windows MSI installer from being used?. I’m still having this issue.
No idea why lessmsi isn't being used. I used procmon and filtered for non-sucessfull events that related to the 7-zip msi-file and noticed one of Vxkey's files being called.
Bug Report
Current Behavior
Unable to install any packages based on an .MSI
Expected Behavior
Installation
Additional context/output
Installing '7zip' (24.05) [64bit] from 'main' bucket Starting download with aria2 ... Download: Download Results: Download: gid |stat|avg speed |path/URI Download: ======+====+===========+======================================================= Download: e5365e|OK | 60MiB/s|C:/Users/Tordenflesk/scoop/cache/7zip#24.05#https_www.7-zip.org_a_7z2405-x64.msi Download: Status Legend: Download: (OK):download completed. Checking hash of 7z2405-x64.msi ... ok. Extracting 7z2405-x64.msi ... ERROR Exit code was -1073741819! Failed to extract files from C:\Users\Tordenflesk\scoop\apps\7zip\24.05\7z2405-x64.msi.
No log generated.
Possible Solution
System details
Windows version: 7
OS architecture:64bit
PowerShell version: 5.1
Additional software: [(optional) e.g. ConEmu, Git]
Scoop Configuration