Check if program exists

How would you check if a program exists?
would FileTests.exist?('C:\Program Files\{name}\{name}.exe') work?
Working off of your example
Code:
FileTest.exist?('C:/path/to/file.exe')
Is there a specific reason for this?
To be honest it could simply fail if the player out of curiosity or convenience changes the name of the executable. Plus for security reasons it shouldn't look for any executable. What if the executable does exist but was compromised by a virus?

Original thread: https://forums.rpgmakerweb.com/threads/check-if-program-exists.126477/