winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

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

Open dxnnie opened this issue 5 years ago • 19 comments

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

dxnnie avatar Nov 04 '21 13:11 dxnnie

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.

denelon avatar Nov 04 '21 14:11 denelon

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.

jedieaston avatar Nov 04 '21 15:11 jedieaston

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

dxnnie avatar Nov 04 '21 16:11 dxnnie

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

cjwijtmans avatar Mar 07 '23 19:03 cjwijtmans

@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 🤷

No0Vad avatar May 17 '23 16:05 No0Vad

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

AdonNeet avatar Jun 08 '23 10:06 AdonNeet

@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.

No0Vad avatar Jun 08 '23 10:06 No0Vad

i see, ok let me check it

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

AdonNeet avatar Jun 08 '23 10:06 AdonNeet

@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

frostee81 avatar Feb 02 '24 13:02 frostee81

@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.

acgxv avatar Jul 29 '24 13:07 acgxv

for me it was Webex

redboyhun avatar Apr 09 '25 13:04 redboyhun

The normal Installer from the Website can also tell you which process is blocking the installation. For me it was Chrome.

Shioe1 avatar Jul 01 '25 19:07 Shioe1

@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 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

k0pernikus avatar Nov 04 '25 12:11 k0pernikus

Still same problem :(

yannara avatar Nov 05 '25 10:11 yannara

@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

No0Vad avatar Nov 05 '25 10:11 No0Vad

@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.

#1675 (comment)

yep.... I am trying to automate the entire solution, there will be no manual command input for this....

yannara avatar Nov 05 '25 10:11 yannara

@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. #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.

No0Vad avatar Nov 05 '25 10:11 No0Vad

On another machine, the offending programs were:

  • Signal Desktop App
  • Loigtech's Logi Tune
Image

k0pernikus avatar Nov 19 '25 23:11 k0pernikus

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

spider623 avatar Aug 01 '26 14:08 spider623