win-dshow: Update virtualcam installer scripts

Remove the registry key check for the virtual camera module installer.
The regsvr32 will perform this check itself, so we don't need to if the
registration is already present. However, if we want to update the path,
simply checking that the key exists will prevent us from being able to
update the path in the future, and as necessary for OBS v33+. This also
corrects the incorrect file paths to the modules in the new core plugin
structure.
This commit is contained in:
Joel Bethke
2026-10-14 13:46:43 -04:00
committed by Ryan Foster
parent 685c2dec5f
commit b92a28ffdf
2 changed files with 8 additions and 32 deletions
@@ -11,33 +11,10 @@ goto checkAdmin
goto end
)
:checkDLL
echo Checking for 32-bit Virtual Cam registration...
reg query "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{@VIRTUALCAM_GUID@}" >nul 2>&1
if %errorLevel% == 0 (
echo 32-bit Virtual Cam found, skipping install...
echo.
) else (
echo 32-bit Virtual Cam not found, installing...
goto install32DLL
)
:CheckDLLContinue
echo Checking for 64-bit Virtual Cam registration...
reg query "HKLM\SOFTWARE\Classes\CLSID\{@VIRTUALCAM_GUID@}" >nul 2>&1
if %errorLevel% == 0 (
echo 64-bit Virtual Cam found, skipping install...
echo.
) else (
echo 64-bit Virtual Cam not found, installing...
goto install64DLL
)
goto endSuccess
:install32DLL
echo Installing 32-bit Virtual Cam...
if exist "%~dp0\data\core\win-dshow\obs-virtualcam-module32.dll" (
regsvr32.exe /i /s "%~dp0\data\core\win-dshow\obs-virtualcam-module32.dll"
if exist "%~dp0\core\win-dshow\data\obs-virtualcam-module32.dll" (
regsvr32.exe /i /s "%~dp0\core\win-dshow\data\obs-virtualcam-module32.dll"
) else (
regsvr32.exe /i /s obs-virtualcam-module32.dll
)
@@ -50,12 +27,11 @@ goto checkAdmin
echo.
goto end
)
goto checkDLLContinue
:install64DLL
echo Installing 64-bit Virtual Cam...
if exist "%~dp0\data\core\win-dshow\obs-virtualcam-module64.dll" (
regsvr32.exe /i /s "%~dp0\data\core\win-dshow\obs-virtualcam-module64.dll"
if exist "%~dp0\core\win-dshow\data\obs-virtualcam-module64.dll" (
regsvr32.exe /i /s "%~dp0\core\win-dshow\data\obs-virtualcam-module64.dll"
) else (
regsvr32.exe /i /s obs-virtualcam-module64.dll
)
@@ -12,13 +12,13 @@ goto checkAdmin
)
:uninstallDLLs
if exist "%~dp0\data\core\win-dshow\obs-virtualcam-module32.dll" (
regsvr32.exe /u /s "%~dp0\data\core\win-dshow\obs-virtualcam-module32.dll"
if exist "%~dp0\core\win-dshow\data\obs-virtualcam-module32.dll" (
regsvr32.exe /u /s "%~dp0\core\win-dshow\data\obs-virtualcam-module32.dll"
) else (
regsvr32.exe /u /s obs-virtualcam-module32.dll
)
if exist "%~dp0\data\core\win-dshow\obs-virtualcam-module64.dll" (
regsvr32.exe /u /s "%~dp0\data\core\win-dshow\obs-virtualcam-module64.dll"
if exist "%~dp0\core\win-dshow\data\obs-virtualcam-module64.dll" (
regsvr32.exe /u /s "%~dp0\core\win-dshow\data\obs-virtualcam-module64.dll"
) else (
regsvr32.exe /u /s obs-virtualcam-module64.dll
)