Skip to content

Instantly share code, notes, and snippets.

@ahti
Created May 8, 2016 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahti/e1d7538cb1e0a8359d724f69dfa5fb59 to your computer and use it in GitHub Desktop.
Save ahti/e1d7538cb1e0a8359d724f69dfa5fb59 to your computer and use it in GitHub Desktop.
> choco install -debug -verbose -y mpv.portable
Chocolatey is running on Windows v 6.3.9600.0
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 -debug -verbose -y mpv.portable
Received arguments: install -debug -verbose -y mpv.portable
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\lukas\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='mpv.portable'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='mpv.portable'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows 8.1'|
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='True'|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:
mpv.portable
By installing you accept licenses for the packages.
[NuGet] Installing 'mpv.portable 2016.04.11'.
[NuGet] Added file 'chocolateyinstall.ps1' to folder 'mpv.portable\tools'.
[NuGet] Added file 'chocolateyuninstall.ps1' to folder 'mpv.portable\tools'.
[NuGet] Added file 'mpv.exe.ignore' to folder 'mpv.portable\tools'.
[NuGet] Added file 'mpv.portable.nupkg' to folder 'mpv.portable'.
[NuGet] Successfully installed 'mpv.portable 2016.04.11'.
mpv.portable v2016.04.11
Contents of 'C:\ProgramData\chocolatey\lib\mpv.portable\tools\chocolateyinstall.ps1':
$packageName = 'mpv.portable'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$version = '2016.04.11'
$version = $version.Replace(".","")
$url = "https://mpv.srsfckn.biz/mpv-i686-$version.7z"
$url64 = "https://mpv.srsfckn.biz/mpv-x86_64-$version.7z"
Install-ChocolateyZipPackage $packageName $url $toolsDir $url64
# Remove hardlinks created by previous versions of this package
Remove-Item -Path "$ENV:ChocolateyInstall\bin\mpv.exe" -ErrorAction SilentlyContinue
Remove-Item -Path "$ENV:ChocolateyInstall\bin\mpv.com" -ErrorAction SilentlyContinue
# mpv can't be shimmed, the shim doesn't work with mpv.com
# as of 2016.01.18, there is a dll dependency, so mpv can't be hardlinked to chocolatey\bin
# adding to PATH until chocolatey implements a /usr/lib equivalent
$pathType = 'User'
if ( ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
[Security.Principal.WindowsBuiltInRole] "Administrator") ) {
$pathType = 'Machine'
}
Install-ChocolateyPath $toolsDir $pathType -ErrorAction SilentlyContinue
Calling command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\mpv.portable\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters ''"']
DEBUG: Posh version is 4.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-ChocolateyZipPackage' for mpv.portable with
url:'https://mpv.srsfckn.biz/mpv-i686-20160411.7z', unzipLocation:
'C:\ProgramData\chocolatey\lib\mpv.portable\tools', url64bit:
'https://mpv.srsfckn.biz/mpv-x86_64-20160411.7z', specificFolder: '', checksum:
'', checksumType: '', checksum64: '', checksumType64: ''
DEBUG: Running 'Get-ChocolateyWebFile' for mpv.portable with
Exception calling "GetResponse" with "0" argument(s): "The request was aborted:
url:'https://mpv.srsfckn.biz/mpv-i686-20160411.7z',
Could not create SSL/TLS secure channel."
fileFullPath:'C:\Users\lukas\AppData\Local\Temp\chocolatey\mpv.portable\2016.04
At C:\ProgramData\chocolatey\helpers\functions\Get-WebFile.ps1:81 char:3
.11\mpv.portableInstall.zip',
+ $res = $req.GetResponse();
url64bit:'https://mpv.srsfckn.biz/mpv-x86_64-20160411.7z', checksum: '',
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
checksumType: '', checksum64: '', checksumType64: ''
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
DEBUG: Running 'Get-ProcessorBits'
+ FullyQualifiedErrorId : WebException
DEBUG: CPU is 64 bit
You cannot call a method on a null-valued expression.
DEBUG: Setting url to 'https://mpv.srsfckn.biz/mpv-x86_64-20160411.7z' and
At C:\ProgramData\chocolatey\helpers\functions\Get-WebFile.ps1:166 char:3
bitPackage to 64
+ $res.Close();
DEBUG: Running 'Get-WebHeaders' with
+ ~~~~~~~~~~~~
url:'https://mpv.srsfckn.biz/mpv-x86_64-20160411.7z', userAgent: 'chocolatey
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
command line'
+ FullyQualifiedErrorId : InvokeMethodOnNull
DEBUG: Setting the UserAgent to 'chocolatey command line'
DEBUG: Request Headers:
DEBUG: 'Accept':'*/*'
DEBUG: 'User-Agent':'chocolatey command line'
Attempt to get headers for https://mpv.srsfckn.biz/mpv-x86_64-20160411.7z failed.
Exception calling "GetResponse" with "0" argument(s): "The request was aborted: Could not create SSL/TLS secure channel."
Downloading mpv.portable 64 bit
from 'https://mpv.srsfckn.biz/mpv-x86_64-20160411.7z'
DEBUG: Running 'Get-WebFile' for
C:\Users\lukas\AppData\Local\Temp\chocolatey\mpv.portable\2016.04.11\mpv.portab
leInstall.zip with url:'https://mpv.srsfckn.biz/mpv-x86_64-20160411.7z',
userAgent: 'chocolatey command line'
DEBUG: Setting the UserAgent to 'chocolatey command line'
Chocolatey expected a file to be downloaded to 'C:\Users\lukas\AppData\Local\Te
Command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\mpv.portable\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters ''"'] exited with '1'
mp\chocolatey\mpv.portable\2016.04.11\mpv.portableInstall.zip' but nothing
Calling command ['"shutdown" /a']
exists at that location.
Command ['"shutdown" /a'] exited with '1116'
At C:\ProgramData\chocolatey\helpers\functions\Get-ChocolateyWebFile.ps1:158
Capturing package files in 'C:\ProgramData\chocolatey\lib\mpv.portable'
char:24
Found 'C:\ProgramData\chocolatey\lib\mpv.portable\mpv.portable.nupkg'
with checksum 'AEE48FF6DC37E980FEF5463AEB03EDE0'
+ if (!($fi.Exists)) { throw "Chocolatey expected a file to be downloaded to
Found 'C:\ProgramData\chocolatey\lib\mpv.portable\tools\chocolateyinstall.ps1'
with checksum '86813B291513AB9217DE562B4A59C669'
`'$ ...
Found 'C:\ProgramData\chocolatey\lib\mpv.portable\tools\chocolateyuninstall.ps1'
with checksum '43015E547B0E768FE18AC5BC89691109'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 'C:\ProgramData\chocolatey\lib\mpv.portable\tools\mpv.exe.ignore'
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
~~~
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\mpv.portable.2016.04.11\.files.update".
+ CategoryInfo : OperationStopped: (Chocolatey expe... that locat
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\mpv.portable.2016.04.11\.sxs".
ion.:String) [], RuntimeException
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\mpv.portable.2016.04.11\.pin".
+ FullyQualifiedErrorId : Chocolatey expected a file to be downloaded to '
Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\mpv.portable".
C:\Users\lukas\AppData\Local\Temp\chocolatey\mpv.portable\2016.04.11\mpv.p
The install of mpv.portable was NOT successful.
ortableInstall.zip' but nothing exists at that location.
Error while running 'C:\ProgramData\chocolatey\lib\mpv.portable\tools\chocolateyinstall.ps1'.
See log for details.
Moving 'C:\ProgramData\chocolatey\lib\mpv.portable'
to 'C:\ProgramData\chocolatey\lib-bad\mpv.portable'
Chocolatey installed 0/1 package(s). 1 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
- mpv.portable
Exiting with 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment