Purpose: a fundamental thing to know when creating a Custom Detection script in SCCM 2012
Creating a custom application detection script will require one thing to be understood before you begin scripting: How the SCCM understands that the application is installed or is not installed. You might think that if your script is returning true or false, or if it is returning zero or one – you would have found the syntax, but you are wrong.
|Application Detected||When VBS echos anything. You can Echo “Failed” or “Success” or “Jacks Hairy Monkey is climbing the trees again” and the application is detected.|
|Application Not Detected||Do not echo anything, and the application is considered not found.|
|Application Detected||When PS returns anything.|
|Application Not Detected||Do not return anything, and the application is considered not found.|
Have not done any SCCM work with this script language, so will assume one of the previous will work.