@TechUST,Thanks for posting in Q&A.
Based on my search, I found that we can create a custom detection script to detect if the win32 app has been successfully installed (whether the script get the expected result after execution), and you can use the end result of the execution of your script as a flag to determine whether it has been executed correctly on the device.
Here are some links about how to create a custom script you can refer.
https://www.reddit.com/r/Intune/comments/n5bl72/understanding_custom_detection_scripts/
https://andrewstaylor.com/2022/04/19/demystifying-intune-custom-app-detection-scripts/
Non-official, just for reference.
Hope it will help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.