Check if a program is installed

Hi… I want to be able to do a check before installing a program if it is already installed or not. Can someone tell me what code can be used to check if a program is installed?

Thanks.

-m

Hi @invisikcorp,

Please check this script which will suffice your needs
https://scripts.itarian.com/frontend/web/topic/script-to-check-if-a-certain-program-is-installed-and-report-back-results

kind Regards,
PremJK

Ok that’s cool…

What script command can be used to exit the script (in the case that the program is already installed and I want the script to stop) ?

Hi @invisikcorp,

We won’t stop the script. It will show the output application is installed or not.

Kind Regards,
PremJK

Ok… what is the script command to exit the script?