Detecting if Zoom is installed

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

  1. mveras1972

    mveras1972 MDL Novice

    Joined:
    Feb 1, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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 Addicted

    Joined:
    Jul 19, 2018
    Messages:
    909
    Likes Received:
    2,007
    Trophy Points:
    30
    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.
    )