Managing apps and software deployment through Microsoft Intune
Error 0x87D1041C means Intune considers the installation successful, but the app isn’t detected afterward. This almost always points to a detection rule or detection-script problem, not the silent install command itself.
For this scenario (UltraViewer as a Win32 app):
- Validate that the app really installs
- On a test device, run the same silent install command used in Intune.
- Confirm UltraViewer appears under Settings > Apps > Installed apps and that it launches correctly.
- If it doesn’t install, fix the install command first; Intune can’t detect what isn’t there.
- Fix the detection rules
- If using built-in detection (file/registry):
- Identify a reliable marker that exists only when UltraViewer is installed (for example, its EXE path under
C:\Program FilesorC:\Program Files (x86)or a specific registry key/value the installer creates). - Configure Intune detection to look for that exact file or registry key.
- Identify a reliable marker that exists only when UltraViewer is installed (for example, its EXE path under
- If using a custom detection script:
- Ensure the script follows Intune’s rules:
- Exit code 0 = app detected.
- Exit code non‑zero = app not detected.
- STDOUT must contain data when the app is detected.
- STDERR must be empty; any data written to STDERR makes Intune treat the app as not installed, even with exit code 0.
- Encode the script as UTF‑8 BOM as recommended.
- Ensure the script follows Intune’s rules:
- If the script exits with non‑zero, Intune reports not installed.
- If the script exits 0 but writes anything to STDERR, Intune reports not installed.
- If the script exits 0 and writes something (anything) to STDOUT and nothing to STDERR, Intune reports installed.
- If using built-in detection (file/registry):
- Re-check status in Intune
- After adjusting detection, redeploy or sync the device.
- In the Intune admin center, go to Apps > All apps, select the UltraViewer Win32 app, and review Device install status to confirm the detection state.
- If still failing, collect diagnostics
- Use Collect diagnostics on the app’s Installation details pane to gather logs from the device and review for detection script errors or path/registry mismatches.
In summary, the most probable cause is a misconfigured detection rule or detection script (exit code/STDOUT/STDERR behavior), not the silent install command, assuming the app installs and runs correctly when tested manually.
References: