winget install OBSProject.OBSStudio = Installer failed with exit code: 6
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
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.
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.
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
i get the same error. i never ran obs studio so idoubt a file is locked.
@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 🤷
i have same problem but i dont want to uninstall it, how?
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
@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.
i see, ok let me check it
edited: so... the problem is from nvidia broadcast :D
@AdonNeet If you add
-ito 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
@AdonNeet If you add
-ito 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.
for me it was Webex
The normal Installer from the Website can also tell you which process is blocking the installation. For me it was Chrome.
@AdonNeet If you add
-ito 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.
I cannot thank you enough. I was completely stomped figuring out what was blocking the install.
If you do not want to leave the powershell session, you can see what is currently running with:
> Get-Process
NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName
------ ----- ----- ------ -- -- -----------
31 31.90 24.41 0.00 10400 0 apigateway
13 15.82 14.18 0.00 6772 0 app-service
...
If you know the application, figure out the ProcessName, in my case it was Google Chrome and its ProcessName is chrome:
Get-Process | grep -i chrome
26 51.23 104.38 1.23 6176 2 chrome
25 28.52 74.91 0.22 8620 2 chrome
...
I then killed the instances and applied the upgrade via:
> Stop-Process -Name chrome && winget upgrade --id OBSProject.OBSStudio --silent
Still same problem :(
@yannara I still believe using interactive flag -i is the easiest way to see which process is blocking and then terminate it so you can install OBS.
https://github.com/microsoft/winget-cli/issues/1675#issuecomment-1582357844
@yannara I still believe using interactive flag
-iis the easiest way to see which process is blocking and then terminate it so you can install OBS.
yep.... I am trying to automate the entire solution, there will be no manual command input for this....
@yannara I still believe using interactive flag
-iis the easiest way to see which process is blocking and then terminate it so you can install OBS. #1675 (comment)yep.... I am trying to automate the entire solution, there will be no manual command input for this....
Ahh, I see. The only solution I can think of is you have a list of known processes to close do what k0pernikus did here https://github.com/microsoft/winget-cli/issues/1675#issuecomment-3485734647.
On another machine, the offending programs were:
- Signal Desktop App
- Loigtech's Logi Tune
I know this is old but today i get the error from chrome, some how now even chrome was a webcam.... commenting for future reference