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
C:\Users\michaeld>cup -y VirtualBox.ExtensionPack --version=5.0.4.102546Chocolatey v0.9.9.8Upgrading the following packages:VirtualBox.ExtensionPackBy upgrading you accept licenses for the packages.You have VirtualBox.ExtensionPack v5.0.0.101573 installed. Version 5.0.4.102546 is available based on your source(s).VirtualBox.ExtensionPack v5.0.4.102546 Join-Path : Cannot find drive. A drive with the name 'O' does not exist. At C:\ProgramData\chocolatey\lib\VirtualBox.ExtensionPack\tools\chocolateyInstall.ps1:20 char:14 + Join-Path <<<< ([System.Environment]::ExpandEnvironmentVariables($_)) $vboxManageFile + CategoryInfo : ObjectNotFound: (O:String) [Join-Path], DriveNotFoundException + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.JoinPathCommand Using this proxyserver: 127.0.0.1:8118 Downloading VirtualBox.ExtensionPack 32 bit from 'http://download.virtualbox.org/virtualbox/5.0.4/Oracle_VM_VirtualBox_Extension_Pack-5.0.4-102546.vbox-extpack' Using this proxyserver: 127.0.0.1:8118 An error occurrred with VirtualBox VBoxManage.exe install command: 0%... Progress state: E_FAIL VBoxManage.exe: error: Failed to install "C:\Users\michaeld\AppData\Local\Temp\VirtualBox.ExtensionPack\Oracle_VM_VirtualBox_Extension_Pack-5.0.4-102546.vbox-extpack" VBoxManage.exe: error: The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to delete the extension pack directory: VERR_ACCESS_DENIED ('C:\Program Files\Oracle\Virt ualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack-_-uninst') VBoxManage.exe: error: rcExit=1 VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ExtPackManagerWrap, interface IExtPackManager VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleExtPack(struct HandlerArg *)" at line 1158 of file VBoxManageMisc.cpp At C:\ProgramData\chocolatey\lib\VirtualBox.ExtensionPack\tools\chocolateyInstall.ps1:47 char:8 + throw <<<< "An error occurrred with VirtualBox VBoxManage.exe install command: $vboxout" + CategoryInfo : OperationStopped: (An error occurr...anageMisc.cpp :String) [], RuntimeException + FullyQualifiedErrorId : An error occurrred with VirtualBox VBoxManage.exe install command: 0%... Progress state: E_FAIL VBoxManage.exe: error: Failed to install "C:\Users\michaeld\AppData\Local\Temp\VirtualBox.ExtensionPack\Oracle_VM_VirtualBox_Extension_Pack-5.0.4-102546.vbox-extpack" VBoxManage.exe: error: The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to delete the extension pack directory: VERR_ACCESS_DENIED ('C:\Program Files\Oracle \VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack-_-uninst') VBoxManage.exe: error: rcExit=1 VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ExtPackManagerWrap, interface IExtPackManager VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleExtPack(struct HandlerArg *)" at line 1158 of file VBoxManageMisc.cppThe upgrade of virtualbox.extensionpack was NOT successful.Error while running 'C:\ProgramData\chocolatey\lib\VirtualBox.ExtensionPack\tools\chocolateyInstall.ps1'. See log for details.Chocolatey upgraded 1/2 package(s). 1 package(s) failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).Failures: - virtualbox.extensionpack
The text was updated successfully, but these errors were encountered:
It looks like one of the paths in your PATH environment variable uses a drive letter that doesn't exist (ie. 'O:\Path\On\NonExistant\Drive'), which is causing Join-Path to fail.
You should be able to successfully install/update the choco package by checking your path for instances of "O:\Something" and then removing those instances, restarting your powershell session, and try installing/updating the package again.
It looks like replacing instances of "Join-Path $path1 $path2" with "[IO.Path]::Combine($path1, $path2)" will combine the paths in the same way without throwing errors on non-existant drives/paths. I'll update my branch of this repo with this change and also update the package on Chocolatey shortly.
Ok, the Chocolatey package is updated at Chocolatey.org and this change has been made in my branch and the pull request to this repo includes the change ( see commit abe8536 at #53 ).
The text was updated successfully, but these errors were encountered: