-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Package Issue]: Bitwarden.CLI #171477
Comments
Hi @johnburnett Is anybody else facing this issue? Edit: |
Hi @johnburnett, Does this happen with other packages? Would it be possible to try uninstalling the package manager and reinstalling - possibly through the MS Store? |
I dug into this a bit more this morning, and in the end it's user error, but explaining for search results. In wil::com_ptr<IShellFolder> pArchiveShellFolder;
HRESULT res = SHBindToObject(NULL, pidlFull.get(), NULL, IID_PPV_ARGS(&pArchiveShellFolder));
Remove-Item -Force -Recurse -Path 'Registry::HKEY_CLASSES_ROOT\CompressedFolder\CLSID'
Remove-Item -Force -Recurse -Path 'Registry::HKEY_CLASSES_ROOT\SystemFileAssociations\.zip\CLSID'
Remove-Item -Force -Recurse -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ArchiveFolder' That all said, I'm willing to bet if I somehow re-registered the above classes, it would fix the issue. I'm not sure how to do that though, and am not super motivated to do so, so I might be out of luck for using winget now. Relying on the shell's archive handler feels a bit wonky (?), but I'm sure there's reasons to do so. |
This fixed the issue for me. If it helps anyone here are the .reg files I used for enabling/disabling zip folders. Disable_ZIP_Compressed_Folders.reg: Windows Registry Editor Version 5.00 Enable_ZIP_Compressed_Folders.reg: Windows Registry Editor Version 5.00 |
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
The Bitwarden CLI installer is causing a "Failed to extract the contents of the archive" error across a wide range of package versions, so I'm not sure if the package hasn't worked for a while, or if winget went off the rails (v1.8.1911), or if there's something wrong with my system. The steps below are using a pinned version of 2024.8.1 just for reproducibility, but it happens on other versions I've checked as well.
Steps to reproduce
Actual behavior
"Failed to extract the contents of the archive", and the log says:
I can open the archive
bw-windows-2024.8.1.zip
in the above temp dir and extract it manually by hand just fine using 7-zip, so I'm not sure what the issue is.Expected behavior
A successfully installed package
Environment
Screenshots and Logs
No response
The text was updated successfully, but these errors were encountered: