Skip to content

Commit 67ae887

Browse files
committed
fix
1 parent 9dfc322 commit 67ae887

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

plugins/win-dshow/virtualcam-module/virtualcam-install.bat.in

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,31 @@ goto checkAdmin
1111
goto end
1212
)
1313

14-
:detectArch
15-
if /i "%PROCESSOR_ARCHITECTURE%"=="ARM64" goto installARM64DLL
16-
goto checkDLL
17-
1814
:checkDLL
1915
echo Checking for 32-bit Virtual Cam registration...
2016
reg query "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{@VIRTUALCAM_GUID@}" >nul 2>&1
2117
if %errorLevel% == 0 (
2218
echo 32-bit Virtual Cam found, skipping install...
2319
echo.
20+
goto CheckDLLContinue
2421
) else (
2522
echo 32-bit Virtual Cam not found, installing...
2623
goto install32DLL
2724
)
2825

2926
:CheckDLLContinue
27+
if /i "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
28+
echo Checking for ARM64 Virtual Cam registration...
29+
reg query "HKLM\SOFTWARE\Classes\CLSID\{@VIRTUALCAM_GUID@}" >nul 2>&1
30+
if %errorLevel% == 0 (
31+
echo ARM64 Virtual Cam found, skipping install...
32+
echo.
33+
goto endSuccess
34+
) else (
35+
echo ARM64 Virtual Cam not found, installing...
36+
goto installARM64DLL
37+
)
38+
)
3039
echo Checking for 64-bit Virtual Cam registration...
3140
reg query "HKLM\SOFTWARE\Classes\CLSID\{@VIRTUALCAM_GUID@}" >nul 2>&1
3241
if %errorLevel% == 0 (
@@ -49,12 +58,12 @@ goto checkAdmin
4958
if %errorLevel% == 0 (
5059
echo 32-bit Virtual Cam successfully installed
5160
echo.
61+
goto checkDLLContinue
5262
) else (
5363
echo 32-bit Virtual Cam installation failed
5464
echo.
5565
goto end
5666
)
57-
goto checkDLLContinue
5867

5968
:install64DLL
6069
echo Installing 64-bit Virtual Cam...

0 commit comments

Comments
 (0)