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

OBS Studio (exit code 6) another program using this

Open denelon opened this issue 1 year ago • 20 comments

If we can confirm exit code 6 is returned because another program is using OBS Studio, we should add the appropriate expected return code to the manifest.

 i had this problem with  Exitcode: 6 and obsstudio through winget upgrade obsproject.obsstudio. i found out it was because of skype. used powershell. winget upgrade obsproject.obsstudio didn't work. used cmd as admin. winget upgrade obsproject.obsstudio didn't work. restarted. winget upgrade obsproject.obsstudio didn't work. deinstalled obsstudio. winget install obsproject.obsstudio didn't work. downloaded the exe from obsstudio-site, executed it and surprisingly it said, it can't be installed because of ... SKYPE? maybe skype used obsproject as webcam, idk. killed skype. started winget install obsproject.obsstudio. worked.

Originally posted by @hueldoeu in https://github.com/microsoft/winget-cli/issues/245#issuecomment-1535125237

denelon avatar May 04 '23 17:05 denelon

closing skype wasn't difficult. i am satisfied so far with ms products. what really is annoying is e. g. Microsoft Visual C++ 2005 Redistributable Microsoft.VCRedist.2005.x86 8.0.59193 8.0.61001 winget Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.30… Microsoft.VCRedist.2013.x86 12.0.30501.0 12.0.40664.0 winget

i can't winget upgrade them (wingen't upgrade). the thunderbirds are my problem. i f*ed up my windows 10. next pc won't have this problem. what really is strange is that microsoft doesn't have control on it's own products like i said these Microsoft Visual C++ Redistributable OR MS Teams! doesn't microsoft want to be the better zoom? i have been at so many online-seminars. teams is a pain in the a. even skype wasn't too bad. teams is difficult to use. difficult to handle. first version of zoom was SUPER! winget upgrade teams isn't also possible. thats why i will delete it soon on this pc and use the browser-version of teams. the android version of teams is also BAD. the Microsoft Visual C++ Redistributable are from an x-ray program called myray, company name cefla from italy. winget.txt

hueldoeu avatar May 04 '23 18:05 hueldoeu

If we can confirm exit code 6 is returned because another program is using OBS Studio, we should add the appropriate expected return code to the manifest.

The code is already in the manifest - https://github.com/microsoft/winget-pkgs/blob/9079fe0d5924279749c00f0cbbc4d80d26dfdfb1/manifests/o/OBSProject/OBSStudio/29.1.0/OBSProject.OBSStudio.installer.yaml#L14-L16

However, I will note that it should be packageInUseByApplication

  • https://github.com/microsoft/winget-cli/issues/2491
  • https://github.com/microsoft/winget-cli/issues/2492
  • #105972

Trenly avatar May 04 '23 20:05 Trenly

the thunderbirds are my problem.

Based on the file you provided, it seems like the Thunderbird issues may be happening because there are two separate versions of Thunderbird installed. I know that winget uninstall Mozilla.Thunderbird -v 78.5.1 won't work in your scenario, but perhaps winget uninstall 'Mozilla Thunderbird 78.5.1 (x64 de)' will work. Then you will have only one version of Thunderbird which should allow you to run the upgrade

Trenly avatar May 04 '23 20:05 Trenly

the thunderbirds are my problem.

Based on the file you provided, it seems like the Thunderbird issues may be happening because there are two separate versions of Thunderbird installed. I know that winget uninstall Mozilla.Thunderbird -v 78.5.1 won't work in your scenario, but perhaps winget uninstall 'Mozilla Thunderbird 78.5.1 (x64 de)' will work. Then you will have only one version of Thunderbird which should allow you to run the upgrade

well ....... you have to emphasise MY and not the word problem. the thunderbird is my own problem and shouldn't stress anybody besides me. it's my own fault and was just an experiment. i have a mail-adress similar to gmail but i pay for it and it's from my country. i access the mails via imap and i wanted to have a mail-client like thunderbird which starts from my SOHO-server so that every client-pc can access the mails. i failed. i lost. i have installed thunderbird on the server, i have set up the target of where the mails will be downloaded (server is better because huge free storage and centralized). didn't really pay out and then i have installed thunderbird on each client-PC and access on the data and save the data on the server. this also didn't work so well. so i decided to just connect windows mail and calender (soon called one outlook or sth like that) and thunderbird on every client-PC directly with the mail-server over imap smtp and yes, this works. sadly the data will be downloaded on every pc simultanously, so i decided to create an extra partition on an extra drive and yes thunderbird is downloading and uploading everything on the extra partition, where it's installed.

i am very sure that with a new installation the thunderbird-problem will be solved. i learned from my mistakes and that maybe in the future there will be a software for collaborative working on one mail-adress via imap and smtp but not now.

i have to buy new PCs for my office since windows 11 isn't supported so the thunderbird problem will be solved.

i really wish a revolution for e-mail like i can easily set up a mail server with postfix, but it will not be accepted by the most freemails like gmail or yahoo mail or outlook and i wish something like i have set up a mail adress by some company, university, something like that and they have some extra software because it's not hard using email-clients en masse but the data will be stored multiple times each on a client-PC. why not stored on a server, which gets the mail via imap and WAN and the client-PCs just communicate with the SOHO-server in LAN and the data is only saved on the SOHO-server and ofcourse the e-mail server.

webmail is also possible like appsuite webmail or ms exchange (roundcube and especially horde are forbidden due security reasons) but then again they download through browsers like firefox their data and store them in a temp-folder or sth like that.

all in all i can say that i have only one thunderbird per client-PC and i use winget to see if there's an update available and update directly inside of thunderbird.

hueldoeu avatar May 04 '23 20:05 hueldoeu

Morning,

Stumbled upon this issue and thanks to Process Monitor I was able to determine why the installer was failing with the message: "Installer failed with exit code: 6"

Found OBS Studio [OBSProject.OBSStudio] Version 29.1.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 6
Files modified by the installer are currently in use by a different application. Exit the applications then try again.

Turns out that Microsoft Teams (Teams.exe) was somehow interfering with the installer. Closing it solved the issue.

Untitled

kristapsesterlins avatar May 16 '23 06:05 kristapsesterlins

OBS has built-in functionality to mimic a webcam as an output device. So it's about every messaging app that may use it. I have succesfully updated after closing Discord and Telegram. Thanks for the tip

Dum4G avatar May 16 '23 09:05 Dum4G

I found another blocker, LogiTune, an app by Logitech to manage certain Logitech hardware.

carlosm3011 avatar Aug 16 '23 15:08 carlosm3011

I found another blocker, LogiTune, an app by Logitech to manage certain Logitech hardware.

logitech has always been a PITA (pain in the A**) especially for windows 11 memory integrity their logitech driver

hueldoeu avatar Aug 16 '23 15:08 hueldoeu

OBS has built-in functionality to mimic a webcam as an output device. So it's about every messaging app that may use it. I have succesfully updated after closing Discord and Telegram. Thanks for the tip

This statement is holding up. For me, it was Nvidia Broadcast blocking the installation.

PurplProto avatar Aug 30 '23 16:08 PurplProto

For whatever reason, but in my case it was "Podman Desktop" which was blocking the installation. Is it possible to enforce it?

clicks avatar Jan 14 '24 11:01 clicks

Garmin Express and Deepl also seem to block upgrading.

WegnerDan avatar Mar 14 '24 09:03 WegnerDan

The application Playnite also prevents upgrading. Seems to be due to CefSharp.BrowserSubprocess.

Corgi avatar Mar 21 '24 15:03 Corgi

How do you guys figure out which program is preventing it from upgrading? are you just trial and erroring by disabling certain apps through your task manager? Especially keen to know how you got to that screenshot page @kristapsesterlins EDIT: Thanks for linking me to that tool @kristapsesterlins!

SnoepNFTs avatar Mar 22 '24 19:03 SnoepNFTs

How do you guys figure out which program is preventing it from upgrading? are you just trial and erroring by disabling certain apps through your terminal? Especially keen to know how you got to that screenshot page @kristapsesterlins

exclusion principle through task manager

hueldoeu avatar Mar 22 '24 20:03 hueldoeu

How do you guys figure out which program is preventing it from upgrading? are you just trial and erroring by disabling certain apps through your terminal? Especially keen to know how you got to that screenshot page @kristapsesterlins

Hi,

The tool in the screenshot is Process Monitor - https://learn.microsoft.com/en-us/sysinternals/downloads/procmon

kristapsesterlins avatar Mar 22 '24 20:03 kristapsesterlins

even edge wants to be an attention-wh0r3 Screenshot 2024-03-24 180448 the problem is now that i can't deactivate edge. restarting the computer didn't help.

hueldoeu avatar Mar 24 '24 17:03 hueldoeu

even edge wants to be an attention-guy Screenshot 2024-03-24 180448 the problem is now that i can't deactivate edge. restarting the computer didn't help.

Technically you could remove it by using christitustech his window utility in an elevated powershell type: irm christitus.com/win | iex > head to tweaks > advanced tweaks > select remove ms edge and run the tweaks > edge should now be removed. If you are heavily invested into Office365, Onedrive and MS teams I wouldn't recommend this as it can break things. but if you don't its a safe option to do so

SnoepNFTs avatar Mar 24 '24 20:03 SnoepNFTs

in my case, wezterm, my terminal from which I was running the command was blocking OBS

image

atahrijouti avatar Mar 26 '24 13:03 atahrijouti

even edge wants to be an attention-guy Screenshot 2024-03-24 180448 the problem is now that i can't deactivate edge. restarting the computer didn't help.

Technically you could remove it by using christitustech his window utility in an elevated powershell type: irm christitus.com/win | iex > head to tweaks > advanced tweaks > select remove ms edge and run the tweaks > edge should now be removed. If you are heavily invested into Office365, Onedrive and MS teams I wouldn't recommend this as it can break things. but if you don't its a safe option to do so

had to cmd (as Administrator) => tasklist taskkill /f /im msedge.exe taskkill /f /im msedgewebview2.exe https://www.youtube.com/watch?v=WeJNOypsWDM one task was very nasty (msedgewebview2) and when i have killed it in the task manager, it killed other msedgewebview2's too and revived them instantly. i looked for the path and renamed the file msedgewebview2.exe in C:\Program Files (x86)\Microsoft\EdgeWebView\Application\122.0.2365.92 to msedgewebview22.exe. then i killed msedgewebview2 in the task manager again. it didn't appear again. then cmd => winget upgrade obsproject.obsstudio and upgrade was successful. i rerenamed msedgewebview22 back to msedgewebview2, but doubleclick on it or opening edge didn't allow it to come back to task manager, it was missing. restarting the PC (win10) helped to revive msedgewebview2.exe, letting it to appear on task manager.

hueldoeu avatar Mar 26 '24 13:03 hueldoeu

I encountered this problem as well, and found that Facebook's Messenger app was using OBS for some reason.

DoronLGN avatar Apr 03 '24 16:04 DoronLGN

I have the same problem For me it was Playnite

journeym avatar Apr 09 '24 08:04 journeym

The response code has been updated for a while now, so WinGet should show the correct error message.

Close with reason: Resolved;

Trenly avatar May 01 '24 03:05 Trenly