Skip to main content
Microsoft Intune needs to know how to install and remove an app and how to tell it’s installed. bach intune writes that down from your setup file.
It writes:
  • intune.md: how to wrap the file with Microsoft’s Win32 Content Prep Tool and what to enter in Intune
  • detect.ps1: a detection script that counts this version or a newer one as installed, so Intune doesn’t downgrade apps that updated themselves. Leave “Run script as 32-bit process” off.

Per user or machine-wide

For deployment to devices, use installer.scope = "machine"; Intune runs setup as SYSTEM. A per-user app is deployed to users with install behavior User and detected with detect.ps1.

Notes

  • Commands assume the default folder; adjust the uninstall command if you use --dir.
  • A version like 2.0.0-beta.1 can’t be compared by Intune’s registry rule; use the script.
  • Apps with an access key need --key-file in the install command, with the key file in the package.
With --json: install_command, uninstall_command, run_as, detection_key, detection_script.