Skip to main content
When you enable Automatic Install on a .exe, .ps1, .deb, .rpm, .sh, or .tar.gz custom package, Primo pre-fills a best-effort osquery using the software name you provided. Automatic Install requires this query to return at least one row when the software is installed — otherwise the agent will keep re-installing the package on every check. Edit the LIKE '%...%' value in the pre-filled query so it matches the exact name the operating system reports for the installed program.

Find the name by package type

Pre-filled query:
How to find the exact name:
  • Fleet host details → installed programs list
  • Apps & features in Windows Settings
  • PowerShell: Get-Package | Where-Object Name -Like '*<name>*'
Example — installer is FalconSensor_Windows.exe, Windows reports the program as CrowdStrike Windows Sensor:

Common mistakes

  • Using the installer filename (Setup.exe) instead of the registered program name (MyApp) — Primo will never detect it as installed and will re-install on every run
  • Forgetting the wildcards ('%name%') — exact-match queries miss version suffixes
  • Using a name that matches multiple unrelated programs — tighten the LIKE pattern with more characters or use = for exact match

Verify before saving

In the software card, after editing the query, target a small device group first and confirm the install behaves as expected before rolling it out fleet-wide.