You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
15:20:34 H:\> cup sumatrapdf -y
Chocolatey v0.10.3
Upgrading the following packages:
sumatrapdf
By upgrading you accept licenses for the packages.
You have sumatrapdf v3.0 installed. Version 3.1.2 is available based on your source(s).
sumatrapdf.commandline v3.1.2 [Approved]
sumatrapdf.commandline package files upgrade completed. Performing other installation steps.
Attempt to use original download file name failed for 'https://kjkpub.s3.amazonaws.com/sumatrapdf/rel/SumatraPDF-3.1.2-64.zip'.
Attempt to get headers for https://kjkpub.s3.amazonaws.com/sumatrapdf/rel/SumatraPDF-3.1.2-64.zip failed.
You cannot call a method on a null-valued expression.
Downloading sumatrapdf.commandline 64 bit
from 'https://kjkpub.s3.amazonaws.com/sumatrapdf/rel/SumatraPDF-3.1.2-64.zip'
ERROR: You cannot call a method on a null-valued expression.
The upgrade of sumatrapdf.commandline was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\sumatrapdf.commandline\tools\chocolateyInstall.ps1'.
See log for details.
sumatrapdf v3.1.2 [Approved]
sumatrapdf package files upgrade completed. Performing other installation steps.
The upgrade of sumatrapdf was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey upgraded 1/2 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- sumatrapdf.commandline (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\sumatrapdf.commandline\tools\chocolateyInstall.ps1'.
See log for details.
What is Expected?
The download should be successful, not fail and write an error.
How Did You Get This To Happen? (Steps to Reproduce)
Within our network environment, cup sumatrapdf -y.
In our environment, (new-object System.Net.WebClient).Proxy -eq $null
is true, as is [System.Net.WebRequest]::DefaultWebProxy -eq $null. This
means the IsBypassed() method is being called on a null object in several of choco's supporting scripts.
Output Log
(For a different package, paint.net.)
15:58:51 H:\> cup paint.net -y -d -v
Chocolatey v0.10.3
Chocolatey is running on Windows v 6.1.7601.65536
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade paint.net -y -d -v
Received arguments: upgrade paint.net -y -d -v
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
Configuration: CommandName='upgrade'|
CacheLocation='C:\Users\username\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Force='False'|Noop='False'|
HelpRequested='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='paint.net'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='paint.net'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.1.7601.65536'|
Information.PlatformName='Windows 7'|
Information.ChocolateyVersion='0.10.3.0'|
Information.ChocolateyProductVersion='0.10.3'|
Information.FullName='choco, Version=0.10.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64Bit='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
_ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
Upgrading the following packages:
paint.net
By upgrading you accept licenses for the packages.
You have paint.net v4.0.5 installed. Version 4.0.6 is available based on your source(s).
Backing up existing paint.net prior to operation.
Moving 'C:\ProgramData\chocolatey\lib\paint.net'
to 'C:\ProgramData\chocolatey\lib-bkp\paint.net'
Attempting to create directory "C:\ProgramData\chocolatey\lib\paint.net".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\paint.net\paint.net.4.0.5.nupkg"
to "C:\ProgramData\chocolatey\lib\paint.net\paint.net.4.0.5.nupkg".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\paint.net\paint.netInstall.zip.txt"
to "C:\ProgramData\chocolatey\lib\paint.net\paint.netInstall.zip.txt".
Attempting to create directory "C:\ProgramData\chocolatey\lib\paint.net\tools".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\paint.net\tools\chocolateyInstall.ps1"
to "C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\paint.net\tools\paint.net.4.0.5.install.exe.ignore"
to "C:\ProgramData\chocolatey\lib\paint.net\tools\paint.net.4.0.5.install.exe.ignore".
Attempting to delete file "C:\ProgramData\chocolatey\lib\paint.net\tools\paint.net.4.0.5.install.exe.ignore".
[NuGet] Uninstalling 'paint.net 4.0.5'.
[NuGet] Removed file 'chocolateyInstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\paint.net\tools'.
[NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\paint.net\tools'.
[NuGet] The directory is not empty.
[NuGet] Successfully uninstalled 'paint.net 4.0.5'.
[NuGet] Installing 'paint.net 4.0.6'.
[NuGet] Added file 'chocolateyInstall.ps1' to folder 'paint.net\tools'.
[NuGet] Added file 'paint.net.nuspec' to folder 'paint.net'.
[NuGet] Added file 'paint.net.nupkg' to folder 'paint.net'.
[NuGet] Successfully installed 'paint.net 4.0.6'.
paint.net v4.0.6 [Approved] - Possibly broken
paint.net package files upgrade completed. Performing other installation steps.
Setting installer args for paint.net
Setting package parameters for paint.net
Contents of 'C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1':
try {
$toolsDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
Install-ChocolateyZipPackage 'paint.net' 'http://www.dotpdn.com/files/paint.net.4.0.6.install.zip' $toolsDir
$paintFileFullPath = get-childitem $toolsDir -recurse -include *.exe | select -First 1
Install-ChocolateyInstallPackage 'paint.net' 'exe' '/auto DESKTOPSHORTCUT=0' "$paintFileFullPath"
Remove-Item "$paintFileFullPath"
Write-ChocolateySuccess 'paint.net'
} catch {
Write-ChocolateyFailure 'paint.net' "$($_.Exception.Message)"
throw
}
Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.Curre
ntUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolat
eyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''
']
Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
Host version is 5.0.10105.0, PowerShell Version is '5.0.10105.0' and CLR Version is '4.0.30319.42000'.
Loading community extensions
Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
VERBOSE: Exporting function 'Get-AppInstallLocation'.
VERBOSE: Exporting function 'Get-PackageCacheLocation'.
VERBOSE: Exporting function 'Get-PackageParameters'.
VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
VERBOSE: Exporting function 'Get-WebContent'.
VERBOSE: Exporting function 'Register-Application'.
VERBOSE: Importing function 'Get-AppInstallLocation'.
VERBOSE: Importing function 'Get-PackageCacheLocation'.
VERBOSE: Importing function 'Get-PackageParameters'.
VERBOSE: Importing function 'Get-UninstallRegistryKey'.
VERBOSE: Importing function 'Get-WebContent'.
VERBOSE: Importing function 'Register-Application'.
VERBOSE: Exporting function 'Format-FileSize'.
VERBOSE: Exporting function 'Get-BinRoot'.
VERBOSE: Exporting function 'Get-ChecksumValid'.
VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
VERBOSE: Exporting function 'Get-EnvironmentVariable'.
VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
VERBOSE: Exporting function 'Get-FtpFile'.
VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
VERBOSE: Exporting function 'Get-ProcessorBits'.
VERBOSE: Exporting function 'Get-ToolsLocation'.
VERBOSE: Exporting function 'Get-UACEnabled'.
VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
VERBOSE: Exporting function 'Get-VirusCheckValid'.
VERBOSE: Exporting function 'Get-WebFile'.
VERBOSE: Exporting function 'Get-WebFileName'.
VERBOSE: Exporting function 'Get-WebHeaders'.
VERBOSE: Exporting function 'Install-BinFile'.
VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
VERBOSE: Exporting function 'Install-ChocolateyPackage'.
VERBOSE: Exporting function 'Install-ChocolateyPath'.
VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
VERBOSE: Exporting function 'Install-Vsix'.
VERBOSE: Exporting function 'Set-EnvironmentVariable'.
VERBOSE: Exporting function 'Set-PowerShellExitCode'.
VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
VERBOSE: Exporting function 'Test-ProcessAdminRights'.
VERBOSE: Exporting function 'Uninstall-BinFile'.
VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
VERBOSE: Exporting function 'Update-SessionEnvironment'.
VERBOSE: Exporting function 'Write-ChocolateyFailure'.
VERBOSE: Exporting function 'Write-ChocolateySuccess'.
VERBOSE: Exporting function 'Write-Debug'.
VERBOSE: Exporting function 'Write-Error'.
VERBOSE: Exporting function 'Write-FileUpdateLog'.
VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
VERBOSE: Exporting function 'Write-Host'.
VERBOSE: Exporting function 'Get-AppInstallLocation'.
VERBOSE: Exporting function 'Get-PackageCacheLocation'.
VERBOSE: Exporting function 'Get-PackageParameters'.
VERBOSE: Exporting function 'Get-WebContent'.
VERBOSE: Exporting function 'Register-Application'.
VERBOSE: Exporting alias 'Get-ProcessorBits'.
VERBOSE: Exporting alias 'Get-OSBitness'.
VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
VERBOSE: Exporting alias 'Generate-BinFile'.
VERBOSE: Exporting alias 'Add-BinFile'.
VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
VERBOSE: Exporting alias 'Remove-BinFile'.
VERBOSE: Exporting alias 'refreshenv'.
VERBOSE: Importing function 'Format-FileSize'.
VERBOSE: Importing function 'Get-AppInstallLocation'.
VERBOSE: Importing function 'Get-BinRoot'.
VERBOSE: Importing function 'Get-ChecksumValid'.
VERBOSE: Importing function 'Get-ChocolateyUnzip'.
VERBOSE: Importing function 'Get-ChocolateyWebFile'.
VERBOSE: Importing function 'Get-EnvironmentVariable'.
VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
VERBOSE: Importing function 'Get-FtpFile'.
VERBOSE: Importing function 'Get-OSArchitectureWidth'.
VERBOSE: Importing function 'Get-PackageCacheLocation'.
VERBOSE: Importing function 'Get-PackageParameters'.
VERBOSE: Importing function 'Get-ProcessorBits'.
VERBOSE: Importing function 'Get-ToolsLocation'.
VERBOSE: Importing function 'Get-UACEnabled'.
VERBOSE: Importing function 'Get-UninstallRegistryKey'.
VERBOSE: Importing function 'Get-VirusCheckValid'.
VERBOSE: Importing function 'Get-WebContent'.
VERBOSE: Importing function 'Get-WebFile'.
VERBOSE: Importing function 'Get-WebFileName'.
VERBOSE: Importing function 'Get-WebHeaders'.
VERBOSE: Importing function 'Install-BinFile'.
VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
VERBOSE: Importing function 'Install-ChocolateyPackage'.
VERBOSE: Importing function 'Install-ChocolateyPath'.
VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
VERBOSE: Importing function 'Install-ChocolateyShortcut'.
VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
VERBOSE: Importing function 'Install-Vsix'.
VERBOSE: Importing function 'Register-Application'.
VERBOSE: Importing function 'Set-EnvironmentVariable'.
VERBOSE: Importing function 'Set-PowerShellExitCode'.
VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
VERBOSE: Importing function 'Test-ProcessAdminRights'.
VERBOSE: Importing function 'Uninstall-BinFile'.
VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
VERBOSE: Importing function 'Update-SessionEnvironment'.
VERBOSE: Importing function 'Write-ChocolateyFailure'.
VERBOSE: Importing function 'Write-ChocolateySuccess'.
VERBOSE: Importing function 'Write-Debug'.
VERBOSE: Importing function 'Write-Error'.
VERBOSE: Importing function 'Write-FileUpdateLog'.
VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
VERBOSE: Importing function 'Write-Host'.
VERBOSE: Importing alias 'Add-BinFile'.
VERBOSE: Importing alias 'Generate-BinFile'.
VERBOSE: Importing alias 'Get-InstallRegistryKey'.
VERBOSE: Importing alias 'Get-OSBitness'.
VERBOSE: Importing alias 'Get-ProcessorBits'.
VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
VERBOSE: Importing alias 'refreshenv'.
VERBOSE: Importing alias 'Remove-BinFile'.
VERBOSE: Importing alias 'Start-ChocolateyProcess'.
Running 'ChocolateyScriptRunner' for paint.net v4.0.6 with packageScript 'C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1', pac
kageFolder:'C:\ProgramData\chocolatey\lib\paint.net', installArguments: '', packageParameters: '',
Running 'C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1'
Running Install-ChocolateyZipPackage -packageName 'paint.net' -url 'http://www.dotpdn.com/files/paint.net.4.0.6.install.zip' -unzipLocation 'C:\Pro
gramData\chocolatey\lib\paint.net\tools'
Running Get-ChocolateyWebFile -checksum '' -checksumType '' -checksum64 '' -checksumType64 '' -options 'System.Collections.Hashtable' -getOriginalF
ileName 'True' -packageName 'paint.net' -fileFullPath 'C:\Users\username\AppData\Local\Temp\chocolatey\paint.net\4.0.6\paint.netInstall.zip' -url 'ht
tp://www.dotpdn.com/files/paint.net.4.0.6.install.zip' -url64bit ''
Running Get-ProcessorBits -compare '64'
CPU is 64 bit
Running Get-WebHeaders -url 'https://www.dotpdn.com/files/paint.net.4.0.6.install.zip' -ErrorAction 'Stop'
Url does not have HTTPS available
Running Get-WebFileName -url 'http://www.dotpdn.com/files/paint.net.4.0.6.install.zip' -defaultName 'paint.netInstall.zip'
Attempt to use original download file name failed for 'http://www.dotpdn.com/files/paint.net.4.0.6.install.zip'.
Running Get-WebHeaders -url 'http://www.dotpdn.com/files/paint.net.4.0.6.install.zip' -ErrorAction 'Stop'
Attempt to get headers for http://www.dotpdn.com/files/paint.net.4.0.6.install.zip failed.
You cannot call a method on a null-valued expression.
Downloading paint.net
from 'http://www.dotpdn.com/files/paint.net.4.0.6.install.zip'
Running Get-WebFile -url 'http://www.dotpdn.com/files/paint.net.4.0.6.install.zip' -fileName 'C:\Users\username\AppData\Local\Temp\chocolatey\paint.n
et\4.0.6\paint.netInstall.zip' -options 'System.Collections.Hashtable'
Running Write-ChocolateyFailure -packageName 'paint.net' -failureMessage 'You cannot call a method on a null-valued expression.'
WARNING: Write-ChocolateyFailure is deprecated and will be removed in v2. If you are the package maintainer, please use 'throw $_.Exception' instea
d.
ERROR: You cannot call a method on a null-valued expression.
at Write-ChocolateyFailure, C:\ProgramData\chocolatey\helpers\functions\Write-ChocolateyFailure.ps1: line 59
at <ScriptBlock>, C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1: line 12
at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 48
at <ScriptBlock>, <No file>: line 1
Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.Curren
tUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolate
yScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''
] exited with '-1'.
Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
Capturing package files in 'C:\ProgramData\chocolatey\lib\paint.net'
Found 'C:\ProgramData\chocolatey\lib\paint.net\paint.net.4.0.5.nupkg'
with checksum '68853A17C20996289D4F7EAB4BAC0144'
Found 'C:\ProgramData\chocolatey\lib\paint.net\paint.net.nupkg'
with checksum '5FCEE7F7FEAAAE2BF9723A9DA267DA01'
Found 'C:\ProgramData\chocolatey\lib\paint.net\paint.net.nuspec'
with checksum 'D11EEAA2EA725AD835A71BB3E50525A7'
Found 'C:\ProgramData\chocolatey\lib\paint.net\paint.netInstall.zip.txt'
with checksum '42A2C271BA478F6744215394551A5470'
Found 'C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1'
with checksum '23A474A457DAB6639E350FDDEDBF589E'
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\paint.net.4.0.6\.files.update".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\paint.net.4.0.6\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\paint.net.4.0.6\.pin".
Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\paint.net".
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
The upgrade of paint.net was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1'.
See log for details.
Moving 'C:\ProgramData\chocolatey\lib\paint.net'
to 'C:\ProgramData\chocolatey\lib-bad\paint.net'
Attempting rollback
Moving 'C:\ProgramData\chocolatey\lib-bkp\paint.net'
to 'C:\ProgramData\chocolatey\lib\paint.net'
Attempting to delete file "C:\Users\username\AppData\Local\NuGet\Cache\paint.net.4.0.6.nupkg".
Chocolatey upgraded 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- paint.net (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\paint.net\tools\chocolateyInstall.ps1'.
See log for details.
Sending message 'PostRunMessage' out if there are subscribers...
Exiting with -1
The text was updated successfully, but these errors were encountered:
In some environments, (new-object System.Net.WebClient).Proxy -eq $null
is true, as is [System.Net.WebRequest]::DefaultWebProxy -eq $null. This
means the IsBypassed() method was being called on a null object. This
checks the object's existence before using that method.
What You Are Seeing?
What is Expected?
The download should be successful, not fail and write an error.
How Did You Get This To Happen? (Steps to Reproduce)
Within our network environment,
cup sumatrapdf -y
.In our environment,
(new-object System.Net.WebClient).Proxy -eq $null
is true, as is
[System.Net.WebRequest]::DefaultWebProxy -eq $null
. Thismeans the
IsBypassed()
method is being called on a null object in several of choco's supporting scripts.Output Log
(For a different package, paint.net.)
The text was updated successfully, but these errors were encountered: