bach intune writes that down from your setup file.
intune.md: how to wrap the file with Microsoft’s Win32 Content Prep Tool and what to enter in Intunedetect.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, useinstaller.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.1can’t be compared by Intune’s registry rule; use the script. - Apps with an access key need
--key-filein the install command, with the key file in the package.
--json: install_command, uninstall_command, run_as, detection_key, detection_script.