microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.2k stars 1.45k forks source link

winget install OBSProject.OBSStudio = Installer failed with exit code: 6 #1675

Closed dxnnie closed 2 years ago

dxnnie commented 2 years ago

Brief description of your issue

winget install OBSProject.OBSStudio Found OBS Studio [OBSProject.OBSStudio] Version 27.1.3 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licences to, third-party packages. Downloading https://github.com/obsproject/obs-studio/releases/download/27.1.3/OBS-Studio-27.1.3-Full-Installer-x64.exe ██████████████████████████████ 86.4 MB / 86.4 MB Successfully verified installer hash Starting package install... Installer failed with exit code: 6

Steps to reproduce

Try to install OBS Studio via Winget .

Expected behavior

Expected normal installation.

Actual behavior

Installer failed with exit code: 6

Environment

winget --info
Windows Package Manager v1.1.12663
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.282
Package: Microsoft.DesktopAppInstaller v1.16.12663.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
Licence Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
denelon commented 2 years ago

Exit code 6 is coming from the OBS Studio installer. The installer is an EXE (specifically nullsoft), so the error codes aren't standardized as they are in an MSI or a MSIX package. I did a quick search, and didn't see anything telling me what their installer error code 6 refers to. We have added a section on Expected Return Codes in the new 1.1 manifest schema so the error can be mapped to a friendly message for users, but we don't know what the specific error is in this case.

jedieaston commented 2 years ago

I can't replicate this. Can you try restarting your computer and running it again? I wonder if it's something silly, like a file being locked.

dxnnie commented 2 years ago

Exit code 6 is coming from the OBS Studio installer. The installer is an EXE (specifically nullsoft), so the error codes aren't standardized as they are in an MSI or a MSIX package. I did a quick search, and didn't see anything telling me what their installer error code 6 refers to. We have added a section on Expected Return Codes in the new 1.1 manifest schema so the error can be mapped to a friendly message for users, but we don't know what the specific error is in this case.

Thanks for the response! I believe it was indeed a file lock error as @jedieaston mentioned.

I can't replicate this. Can you try restarting your computer and running it again? I wonder if it's something silly, like a file being locked.

Thanks for your suggestion, i've rebooted and instalation proceed as usuall.

winget install OBSProject.OBSStudio Found OBS Studio [OBSProject.OBSStudio] Version 27.1.3 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licences to, third-party packages. Downloading https://github.com/obsproject/obs-studio/releases/download/27.1.3/OBS-Studio-27.1.3-Full-Installer-x64.exe ██████████████████████████████ 86.4 MB / 86.4 MB Successfully verified installer hash Starting package install... Successfully installed

cjwijtmans commented 1 year ago

i get the same error. i never ran obs studio so idoubt a file is locked.

No0Vad commented 1 year ago

@cjwijtmans Same here just now. But if you run the .exe file winget downloads you'll see what file is causing the error. In my case the installer did not like that NZXT CAM running 🤷

AdonNeet commented 1 year ago

i have same problem but i dont want to uninstall it, how? image

but, i can update it from OBS it self, so how to solve the problem in the winget?

edited: when i see the version it still in 29.0.2, not upgraded

No0Vad commented 1 year ago

@adonneet If you add -i to your command (example: winget upgrade --id OBSProject.OBSStudio -i) it will show the installer and it will tell you which app is blocking.

For me it's always NZXT CAM, closing that app fixes it and opening it again after works.

AdonNeet commented 1 year ago

i see, ok let me check it

edited: so... the problem is from nvidia broadcast :D

frostee81 commented 9 months ago

@AdonNeet If you add -i to your command (example: winget upgrade --id OBSProject.OBSStudio -i) it will show the installer and it will tell you which app is blocking.

For me it's always NZXT CAM, closing that app fixes it and opening it again after works.

the -i parameter actually made my day! Thanks so much! <3

AurevoirXavier commented 3 months ago

@AdonNeet If you add -i to your command (example: winget upgrade --id OBSProject.OBSStudio -i) it will show the installer and it will tell you which app is blocking.

For me it's always NZXT CAM, closing that app fixes it and opening it again after works.

Works, for me it's Nvidia Broadcast.