Best Relevance for Checking the Existence or Version of a Program

Is there a way to state this relevance without restating the file path?

(not exists file “c:\Program Files\Cylance\Optics\CyOptics.exe”) OR ((version of it as string as version < “2.0.1000.311” as version) of file “c:\Program Files\Cylance\Optics\CyOptics.exe”)

I have the following, but I think it is not very readable.

(version of file “c:\Program Files\Cylance\Optics\CyOptics.exe” as string as version | “0.0.0.0” as version) < “2.0.1000.311” as version

Try the following (had to change it to hit your double cases)

not exists file "c:\Program Files\Cylance\Optics\CyOptics.exe" whose (version of it >= "2.0.1000.311")

maybe registry settings will help you . First you have to check under “***\CurrentVersion\Uninstall” for DisplayName

(value "DisplayVersion" of it as string) of keys whose (value "DisplayName" of it as string as lowercase contains "CyOptics") of keys "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of (x64 registries;x32 registries)