Skip to content

Instantly share code, notes, and snippets.

@michaelray
Last active December 11, 2016 14:34
Show Gist options
  • Save michaelray/41332926fd5b16494f0264c080e6b2a1 to your computer and use it in GitHub Desktop.
Save michaelray/41332926fd5b16494f0264c080e6b2a1 to your computer and use it in GitHub Desktop.
Attempting to upgrade virtualbox Chocolatey package from v5.1.10 to v5.1.10.20161207.
PS C:\Windows\system32> choco upgrade virtualbox -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 virtualbox -y -d -v
Received arguments: upgrade virtualbox -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\USER\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='virtualbox'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='virtualbox'|
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='False'|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:
virtualbox
By upgrading you accept licenses for the packages.
You have virtualbox v5.1.10 installed. Version 5.1.10.20161207 is available based on your source(s).
Backing up existing virtualbox prior to operation.
Moving 'C:\ProgramData\chocolatey\lib\virtualbox'
to 'C:\ProgramData\chocolatey\lib-bkp\virtualbox'
Attempting to create directory "C:\ProgramData\chocolatey\lib\virtualbox".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\virtualbox\virtualbox.nupkg"
to "C:\ProgramData\chocolatey\lib\virtualbox\virtualbox.nupkg".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\virtualbox\virtualbox.nuspec"
to "C:\ProgramData\chocolatey\lib\virtualbox\virtualbox.nuspec".
Attempting to create directory "C:\ProgramData\chocolatey\lib\virtualbox\tools".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\virtualbox\tools\chocolateyInstall.ps1"
to "C:\ProgramData\chocolatey\lib\virtualbox\tools\chocolateyInstall.ps1".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\virtualbox\tools\oracle.cer"
to "C:\ProgramData\chocolatey\lib\virtualbox\tools\oracle.cer".
Capturing package files in 'C:\ProgramData\chocolatey\lib\virtualbox'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\virtualbox.nupkg'
with checksum '1F431B439C2227DB8064D809273E6CF8'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\virtualbox.nuspec'
with checksum 'AF379CB4B0141DC80AB64F5D76030EAC'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\tools\chocolateyInstall.ps1'
with checksum 'B93304407222ED2CBFCC6E0F1BD30EFE'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\tools\oracle.cer'
with checksum 'BDAA0134CEF0AF91604A9014FF48B068'
[NuGet] Attempting to resolve dependency 'chocolatey-core.extension (≥ 1.0.2)'.
[NuGet] Uninstalling 'virtualbox 5.1.10'.
[NuGet] Removed file 'chocolateyInstall.ps1' to folder 'C:\ProgramData\chocolatey\lib\virtualbox\tools'.
[NuGet] Removed file 'oracle.cer' to folder 'C:\ProgramData\chocolatey\lib\virtualbox\tools'.
[NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\virtualbox\tools'.
[NuGet] Removed file 'virtualbox.nuspec' to folder 'C:\ProgramData\chocolatey\lib\virtualbox'.
[NuGet] Removed file 'virtualbox.nupkg' to folder 'C:\ProgramData\chocolatey\lib\virtualbox'.
[NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\virtualbox'.
[NuGet] Successfully uninstalled 'virtualbox 5.1.10'.
[NuGet] Installing 'virtualbox 5.1.10.20161207'.
[NuGet] Added file 'chocolateyBeforeModify.ps1' to folder 'virtualbox'.
[NuGet] Added file 'chocolateyInstall.ps1' to folder 'virtualbox'.
[NuGet] Added file 'helpers.ps1' to folder 'virtualbox'.
[NuGet] Added file 'oracle.cer' to folder 'virtualbox'.
[NuGet] Added file 'virtualbox.nuspec' to folder 'virtualbox'.
[NuGet] Added file 'virtualbox.nupkg' to folder 'virtualbox'.
[NuGet] Successfully installed 'virtualbox 5.1.10.20161207'.
virtualbox v5.1.10.20161207 [Approved]
virtualbox package files upgrade completed. Performing other installation steps.
Setting installer args for virtualbox
Setting package parameters for virtualbox
Contents of 'C:\ProgramData\chocolatey\lib\virtualbox\chocolateyInstall.ps1':
#https://www.virtualbox.org/manual/ch02.html#idm819
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
. $toolsPath\helpers.ps1
$cert = ls cert: -Recurse | ? { $_.Thumbprint -eq 'a88fd9bdaa06bc0f3c491ba51e231be35f8d1ad5' }
if (!$cert) {
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
Start-ChocolateyProcessAsAdmin "certutil -addstore 'TrustedPublisher' '$toolsPath\oracle.cer'"
}
$pp = Get-PackageParameters
$silentArgs = @('-s -l -msiparams REBOOT=ReallySuppress')
$silentArgs += if (!$pp.CurrentUser) { 'ALLUSERS=1' } else { 'ALLUSERS=2'; Write-Host 'Param: Installing for current user' }
$silentArgs += if ($pp.NoDesktopShortcut) { 'VBOX_INSTALLDESKTOPSHORTCUT=0'; Write-Host 'Param: No desktop shortcut' }
$silentArgs += if ($pp.NoQuickLaunch) { 'VBOX_INSTALLQUICKLAUNCHSHORTCUT=0'; Write-Host 'Param: No quick launch shortcut' }
$silentArgs += if ($pp.NoRegister) { 'VBOX_REGISTERFILEEXTENSIONS=0'; Write-Host 'Param: No registration for virtualbox file extensions' }
$packageArgs = @{
packageName = 'virtualbox'
fileType = 'EXE'
url = 'http://download.virtualbox.org/virtualbox/5.1.10/VirtualBox-5.1.10-112026-Win.exe'
url64bit = 'http://download.virtualbox.org/virtualbox/5.1.10/VirtualBox-5.1.10-112026-Win.exe'
checksum = '24193297a1d6ed14450c9569955768421ec433e5f93a02a5aa9a8c9214a080ed'
checksum64 = '24193297a1d6ed14450c9569955768421ec433e5f93a02a5aa9a8c9214a080ed'
checksumType = 'sha256'
checksumType64 = 'sha256'
silentArgs = $silentArgs
validExitCodes = @(0)
softwareName = 'Oracle VM VirtualBox *'
}
Install-ChocolateyPackage @packageArgs
$packageName = $packageArgs.packageName
$installLocation = Get-VirtualBoxIntallLocation
if (!$installLocation) { Write-Warning "Can't find $packageName install location, can't install extension pack"; return }
if (!$pp.NoExtensionPack) {
Write-Host "Installing extension pack"
$url_ep = 'http://download.virtualbox.org/virtualbox/5.1.10/Oracle_VM_VirtualBox_Extension_Pack-5.1.10.vbox-extpack'
$checksum_ep = '3982657fd4853bcbc79b9162e618545a479b65aca08e9ced43a904aeeba3ffa5'
$file_path_ep = (Get-PackageCacheLocation) + '\' + ($url_ep -split '/' | select -Last 1)
Get-ChocolateyWebFile `
-PackageName 'virtualbox-extensionpack' `
-FileFullPath $file_path_ep `
-Url $url_ep `
-Url64bit $url_ep `
-Checksum $checksum_ep `
-Checksum64 $checksum_ep `
-ChecksumType 'sha256' `
-ChecksumType64 'sha256'
if (!(Test-Path $file_path_ep)) { Write-Warning "Can't download latest extension pack" }
else {
Set-Alias vboxmanage $installLocation\VBoxManage.exe
vboxmanage extpack install --replace $file_path_ep 2>&1
if ($LastExitCode -ne 0) { Write-Warning "Extension pack installation failed with exit code $LastExitCode" }
}
}
if (!$pp.NoPath) { Write-Host "Adding to PATH if needed"; Install-ChocolateyPath $installLocation }
Write-Host "$packageName installed to '$installLocation'"
Register-Application "$installLocation\$packageName.exe" vbox
Write-Host "$packageName registered as vbox"
Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\Progra
mData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\virtualbox\chocolateyInstall.ps1'
-installArguments '' -packageParameters ''']
Redirecting System.Management.Automation.resources, Version=1.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
Host version is 2.0, PowerShell Version is '2.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 'Generate-BinFile'.
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-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 'Remove-BinFile'.
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-FileUpdateLog'.
VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
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'.
WARNING: Some imported command names include unapproved verbs which might make them less discoverable. Use the Verbose parameter for more detail or type Get-Verb to see the list of approved verbs.
VERBOSE: The command name 'Generate-BinFile' includes an unapproved verb which might make it less discoverable. The suggested alternative verbs are "New".
VERBOSE: Importing function 'Generate-BinFile'.
VERBOSE: Importing function 'Get-AppInstallLocation'.
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-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 'Remove-BinFile'.
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-FileUpdateLog'.
VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
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 virtualbox v5.1.10.20161207 with packageScript 'C:\ProgramData\chocolatey\lib\virtualbox\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\vi
rtualbox', installArguments: '', packageParameters: '',
Running 'C:\ProgramData\chocolatey\lib\virtualbox\chocolateyInstall.ps1'
ERROR: Exception calling "Substring" with "1" argument(s): "startIndex cannot be larger than length of string.
Parameter name: startIndex"
at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)
at System.Management.Automation.DotNetAdapter.MethodInvokeDotNet(String methodName, Object target, MethodInformation[] methodInformation, Object[] arguments)
at System.Management.Automation.DotNetAdapter.MethodInvoke(PSMethod method, Object[] arguments)
at System.Management.Automation.Adapter.BaseMethodInvoke(PSMethod method, Object[] arguments)
at System.Management.Automation.PSMethod.Invoke(Object[] arguments)
at System.Management.Automation.ParserOps.CallMethod(Token token, Object target, String methodName, Object[] paramArray, Boolean callStatic, Object valueToSet)
at System.Management.Automation.MethodCallNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.AssignmentStatementNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\Program
Data\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\virtualbox\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\virtualbox'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\chocolateyBeforeModify.ps1'
with checksum '0EFCCC511BE1B0B4B1F6D39D26678759'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\chocolateyInstall.ps1'
with checksum 'F1D8F9843B3285651C8EFCF69BAFF677'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\helpers.ps1'
with checksum '16D98D14BAC46ED1F12CBDE25135A5CF'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\oracle.cer'
with checksum 'BDAA0134CEF0AF91604A9014FF48B068'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\virtualbox.nupkg'
with checksum 'A0AD8AC14331405F22F1640F7A200DD9'
Found 'C:\ProgramData\chocolatey\lib\virtualbox\virtualbox.nuspec'
with checksum '766A2E709BAEA7DA546394966435A9EF'
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\virtualbox.5.1.10.20161207\.files.update".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\virtualbox.5.1.10.20161207\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\virtualbox.5.1.10.20161207\.pin".
Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\virtualbox".
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
The upgrade of virtualbox was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\virtualbox\chocolateyInstall.ps1'.
See log for details.
Moving 'C:\ProgramData\chocolatey\lib\virtualbox'
to 'C:\ProgramData\chocolatey\lib-bad\virtualbox'
Attempting rollback
Moving 'C:\ProgramData\chocolatey\lib-bkp\virtualbox'
to 'C:\ProgramData\chocolatey\lib\virtualbox'
Attempting to delete file "C:\Users\rayzor\AppData\Local\NuGet\Cache\virtualbox.5.1.10.20161207.nupkg".
Chocolatey upgraded 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- virtualbox (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\virtualbox\chocolateyInstall.ps1'.
See log for details.
Sending message 'PostRunMessage' out if there are subscribers...
Exiting with -1
PS C:\Windows\system32>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment