The application was not detected after installation completed successfully (0x87D1041C)

Mountain Pond 1,371 Reputation points
2024-06-18T23:20:49.0733333+00:00

Hello,

I already feel pain from the fact that a simple task cannot be implemented normally.

The task is to remove Sophos. It would seem that I have a lot of options:

  1. Use a script (in Devices-Windows-Scripts)
  2. I can create an application that will explicitly remove the program using a script or Win32 application or script. And check if in was removed by script (check in servies or directory exist)
  3. It would be possible to create a compliance policy to check whether the application has been deleted (not works for Proffesional editions).

And all these wonderful ways don’t work.

I settled on adding a win32 application in which the exe file only performs the removal of the application. In the end I managed to get it to work. However, the check fails.

I'm checking with a script. If the file is not found, then exit 0, if the file is found, exit 1 (the application is not uninstalled). Or the same can be done with service checking.

But it doesn't work, I always get error 0x87D1041C.

It's very annoying why other applications work with script verification, but this doesn't work.

My script creates a control file so that I understand what's under the hood.

When I run the installation, it shows that the file was found and Exit 1. Well, after the removal is complete, it checks again and shows that the file was not found and Exit 0.

It would seem that everything is fine, but I get an error instead of success.

User's image

User's image

User's image

Please help me solve the prolem. Thank you.

Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
906 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ZhoumingDuan-MSFT 10,105 Reputation points Microsoft Vendor
    2024-06-19T05:35:35.9233333+00:00

    @Mountain Pond, Thanks for posting in Q&A.

    From your description, I know you you're trying to uninstall Sophos by deploying an .exe program via Intune, but it's failing detection methods.

    Based on my research, the error code means the application was not detected after installation completed successfully, you can check if there exist some related error message and then correct the detection rules in Intune to see whether the issue can be fixed. Or you can change another Detection rules about the application.

    https://www.prajwaldesai.com/intune-win32-app-deployment-error-0x87d1041c/

    Please try above information, if there is any update, feel free to let me know.

    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.

    0 comments No comments

  2. Rahul Jindal [MVP] 9,471 Reputation points MVP
    2024-06-19T06:03:09.32+00:00
    0 comments No comments