Managing apps and software deployment through Microsoft Intune
@Thiago Beier Thanks for posting in our Q&A.
For this issue that they work on the device but show "failed" in intune, it seems that the return code is not in Success Code type. We can refer to the following article to add the return code to make the app installation status is "installed".
https://learn.microsoft.com/en-us/mem/intune/apps/apps-win32-add#step-2-program
Hope the above information will help.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.