Uninstalling Visual Studio with Intune

Frenzel, Sophia 40 Reputation points
Oct 10, 2024, 9:20 AM

Hi,

I'm trying to setup Visual Studio Professional 2022 with Intune/Company Portal. The install-process is working, but I am experiencing some problems with the uninstallation. My uninstall command is “C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe” uninstall --installPath “C:\Program Files\Microsoft Visual Studio\2022\Professional” which is working just fine in the cmd, but when I try to uninstall via Company Portal it fails.

I'm getting the following errors:

  • Uninstall Failed - Error unzipping downloaded content. (0x87D30067)
  • Uninstall Failed - The application was still detected after uninstallation completed successfully (0x87D1041D)

It is an Win32-App which is run as system in Intune.

I did not find any helpful information in the Logs (C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log)

What am I missing?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,336 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,407 questions
0 comments No comments
{count} votes

Accepted answer
  1. JM 1,061 Reputation points
    Oct 10, 2024, 5:24 PM
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. ZhoumingDuan-MSFT 14,870 Reputation points Microsoft Vendor
    Oct 11, 2024, 3:09 AM

    @Frenzel, Sophia, Thanks for posting in Q&A.

    From your description, I know you failed to uninstall Visual Studio using Intune.

    Based on my research, here are some links with useful information you can refer.

    https://techcommunity.microsoft.com/t5/microsoft-intune/unable-to-uninstall-visual-studio-pro-2022-via-intune/m-p/3929858

    https://www.reddit.com/r/SCCM/comments/kr6nj2/visual_studio_2019_uninstall_command_not_working/

    Non-official, just for reference.

    For the Error unzipping downloaded content. (0x87D30067), it means the file is unzipping from C:\Program Files (x86)\Microsoft Intune Management Extension\Content\Staging<id> to C:\Program Files (x86)\ Microsoft Intune Management Extension\Content\Staged folder. Please ensure the folders are excluded from Antivirus software. Also exclude C:\Windows\IMECache as well.

    Meanwhile, sometimes file name length may also cause issue. Please change the application name with a simple name and try again.

    Also, here is a thread with same error and someone has posted some useful information you can refer.

    https://video2.skills-academy.com/en-us/answers/questions/1382583/error-unzipping-downloaded-content-(0x87d30067)

    Please check above information, if there is any update, feel free to contact us.

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.