Skip to content

Instantly share code, notes, and snippets.

@colin-morrell
Last active May 23, 2016 15:37
Show Gist options
  • Save colin-morrell/271677b49759e4fbe481e764c1b8823c to your computer and use it in GitHub Desktop.
Save colin-morrell/271677b49759e4fbe481e764c1b8823c to your computer and use it in GitHub Desktop.
Debug output from chocolately package manager when installing old (<20) versions of flashplayerplugin
PS C:\Windows\system32> choco install flashplayerplugin -y --version 12.0.0.38 -debug -verbose
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" install flashplayerplugin -y --version 12.0.0.38 -debug -verbose
Received arguments: install flashplayerplugin -y --version 12.0.0.38 -debug -verbose
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='install'|
CacheLocation='C:\Users\colin\AppData\Local\Temp'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|
Sources='https://chocolatey.org/api/v2/'|Debug='True'|Verbose='True'|
Force='False'|Noop='False'|HelpRequested='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='flashplayerplugin'|
Version='12.0.0.38'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='flashplayerplugin'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='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.9.9.12'|
Information.ChocolateyProductVersion='0.9.9.12'|
Information.FullName='choco, Version=0.9.9.12, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64Bit='False'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|Features.AutoUninstaller='False'|
Features.CheckSumFiles='True'|Features.FailOnAutoUninstaller='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
NewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PushCommand.TimeoutInSeconds='0'|
PinCommand.Command='unknown'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
flashplayerplugin
By installing you accept licenses for the packages.
[NuGet] Installing 'flashplayerplugin 12.0.0.38'.
[NuGet] Added file 'chocolateyInstall.ps1' to folder 'flashplayerplugin\tools'.
[NuGet] Added file 'flashplayerplugin.nupkg' to folder 'flashplayerplugin'.
[NuGet] Successfully installed 'flashplayerplugin 12.0.0.38'.
flashplayerplugin v12.0.0.38
Contents of 'C:\ProgramData\chocolatey\lib\flashplayerplugin\tools\chocolateyInstall.ps1':
Install-ChocolateyPackage 'flashplayerplugin' 'msi' '/quiet /norestart REMOVE_PREVIOUS=YES' 'http://download.macromedia.
com/get/flashplayer/current/licensing/win/install_flash_player_12_plugin.msi'
Calling command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass
-Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.Current
UICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\ch
ocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\flashplayerplugin\tools\choco
lateyInstall.ps1' -installArguments '' -packageParameters ''"']
DEBUG: Posh version is 2.0
DEBUG: Loading community extensions
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-ProcessorBits'.
VERBOSE: Exporting function 'Get-UACEnabled'.
VERBOSE: Exporting function 'Get-VirusCheckValid'.
VERBOSE: Exporting function 'Get-WebFile'.
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-Vsix'.
VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
VERBOSE: Exporting function 'Set-EnvironmentVariable'.
VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
VERBOSE: Exporting function 'Test-ProcessAdminRights'.
VERBOSE: Exporting function 'Uninstall-BinFile'.
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-FileUpdateLog'.
VERBOSE: Exporting alias 'Generate-BinFile'.
VERBOSE: Exporting alias 'Add-BinFile'.
VERBOSE: Exporting alias 'Remove-BinFile'.
DEBUG: Running 'Install-ChocolateyPackage' for flashplayerplugin with
url:'http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_12_plugin.msi', args:
'/quiet /norestart REMOVE_PREVIOUS=YES', fileType: 'msi', url64bit: '', checksum: '', checksumType: '', checksum64: '',
checksumType64: '', validExitCodes: '0'
DEBUG: Running 'Get-ChocolateyWebFile' for flashplayerplugin with
url:'http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_12_plugin.msi',
fileFullPath:'C:\Users\colin\AppData\Local\Temp\chocolatey\flashplayerplugin\12.0.0.38\flashplayerpluginInstall.msi',
url64bit:'', checksum: '', checksumType: '', checksum64: '', checksumType64: ''
DEBUG: Running 'Get-ProcessorBits'
DEBUG: CPU is 32 bit
DEBUG: Running 'Get-WebHeaders' with
url:'http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_12_plugin.msi',
userAgent: 'chocolatey command line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
DEBUG: Request Headers:
DEBUG: 'Accept':'*/*'
DEBUG: 'User-Agent':'chocolatey command line'
DEBUG: Converting Security Protocol to SSL3 only for Powershell v2
DEBUG: Running 'Get-WebHeaders' with
url:'http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_12_plugin.msi',
userAgent: 'chocolatey command line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
DEBUG: Request Headers:
DEBUG: 'Accept':'*/*'
DEBUG: 'User-Agent':'chocolatey command line'
Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
At C:\ProgramData\chocolatey\helpers\functions\Get-WebHeaders.ps1:92 char:37
+ $response = $request.GetResponse <<<< ();
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : DotNetMethodException
Command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass -Comman
d "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICultur
e = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey
\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\flashplayerplugin\tools\chocolateyIns
tall.ps1' -installArguments '' -packageParameters ''"'] exited with '1'
Calling command ['"shutdown" /a']
Command ['"shutdown" /a'] exited with '1116'
Capturing package files in 'C:\ProgramData\chocolatey\lib\flashplayerplugin'
Found 'C:\ProgramData\chocolatey\lib\flashplayerplugin\flashplayerplugin.nupkg'
with checksum '30180DF7DB3485023265E63D59C1EA27'
Found 'C:\ProgramData\chocolatey\lib\flashplayerplugin\tools\chocolateyInstall.ps1'
with checksum 'A1769C8241C35A4F5EFAD708FACA5522'
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\flashplayerplugin.12.0.0.38\.files.update".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\flashplayerplugin.12.0.0.38\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\flashplayerplugin.12.0.0.38\.pin".
Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\flashplayerplugin".
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
System.IO.IOException: The process cannot access the file 'C:\ProgramData\chocolatey\lib-bad\flashplayerplugin\tools' b
ecause it is being used by another process.
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass31.<delete_directory>b__30()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurati
onMilliseconds, Int32 increaseRetryByMilliseconds)
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
System.IO.IOException: The process cannot access the file 'C:\ProgramData\chocolatey\lib-bad\flashplayerplugin\tools' b
ecause it is being used by another process.
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass31.<delete_directory>b__30()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurati
onMilliseconds, Int32 increaseRetryByMilliseconds)
Maximum tries of 3 reached. Throwing error.
Attempted to delete bad package install path if existing. Had an error:
System.IO.IOException: The process cannot access the file 'C:\ProgramData\chocolatey\lib-bad\flashplayerplugin\tools' b
ecause it is being used by another process.
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass31.<delete_directory>b__30()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurati
onMilliseconds, Int32 increaseRetryByMilliseconds)
at chocolatey.infrastructure.tolerance.FaultTolerance.retry(Int32 numberOfTries, Action action, Int32 waitDurationMil
liseconds, Int32 increaseRetryByMilliseconds)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.delete_directory(String directoryPath, Boolean recursive, Bo
olean overrideAttributes)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.delete_directory(String directoryPath, Boolean recursive)
at chocolatey.infrastructure.app.services.ChocolateyPackageService.<>c__DisplayClass8a.<ensure_bad_package_path_is_cl
ean>b__89()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass4.<try_catch_with_logging_exception>b__3()
at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String err
orMessage, Boolean throwError, Boolean logWarningInsteadOfError)
The install of flashplayerplugin was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\flashplayerplugin\tools\chocolateyInstall.ps1'.
See log for details.
Moving 'C:\ProgramData\chocolatey\lib\flashplayerplugin'
to 'C:\ProgramData\chocolatey\lib-bad\flashplayerplugin'
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
System.IO.IOException: Cannot create a file when that file already exists.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.Move(String sourceDirName, String destDirName)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass2d.<move_directory>b__2b()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurati
onMilliseconds, Int32 increaseRetryByMilliseconds)
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
System.IO.IOException: Cannot create a file when that file already exists.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.Move(String sourceDirName, String destDirName)
at chocolatey.infrastructure.filesystem.DotNetFileSystem.<>c__DisplayClass2d.<move_directory>b__2b()
at chocolatey.infrastructure.tolerance.FaultTolerance.<>c__DisplayClass1.<retry>b__0()
at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurati
onMilliseconds, Int32 increaseRetryByMilliseconds)
Maximum tries of 3 reached. Throwing error.
Move failed with message:
Cannot create a file when that file already exists.
Attempting backup move method.
Moving 'C:\ProgramData\chocolatey\lib\flashplayerplugin\flashplayerplugin.nupkg'
to 'C:\ProgramData\chocolatey\lib-bad\flashplayerplugin\flashplayerplugin.nupkg'
Moving 'C:\ProgramData\chocolatey\lib\flashplayerplugin\tools\chocolateyInstall.ps1'
to 'C:\ProgramData\chocolatey\lib-bad\flashplayerplugin\tools\chocolateyInstall.ps1'
Attempting to delete directory "C:\ProgramData\chocolatey\lib\flashplayerplugin".
Chocolatey installed 0/1 package(s). 1 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
- flashplayerplugin
Exiting with 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment