Detecting if Zoom is installed

Discussion in 'Scripting' started by mveras1972, Apr 8, 2021.

  1. mveras1972

    mveras1972 MDL Novice

    Feb 1, 2019
    2
    0
    0
    I am trying to create a script, either Batch, Powershell or Visual Basic Script that can detect the presence of Zoom on a computer. However, all the code that I have tried detects everything else except Zoom. Even in the registry, it appears that Zoom has no GUID. I am wondering if anyone knows a method to programmatically detect that Zoom is installed or not. Running Windows 10 20H2 here.
     
  2. Windows_Addict

    Windows_Addict MDL Expert

    Jul 19, 2018
    1,251
    3,437
    60
    Zoom doesn't give the option to change the installation directory in Windows so we can use its fixed location to detect it,
    batch,
    Code:
    if exist "%APPDATA%\Zoom\bin\Zoom.exe" (
    echo Zoom is installed.
    ) else (
    echo Zoom is not installed.
    )
    or if you want to check it's location from registry, you can use this in batch,
    Code:
    for /f "skip=2 tokens=2*" %%a in ('reg query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ZoomUMX" /v InstallLocation 2^>nul') do set "zoomloc=%%b"
    
    if exist "%zoomloc%\Zoom.exe" (
    echo Zoom is installed.
    ) else (
    echo Zoom is not installed.
    )
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...