How to uninstall Visual Studio 2022 when uninstaller says it can't find a dependent package (e.g. dependent package is Component.OneApi..._which isn't installed)

cm333 0 Reputation points
2023-02-10T16:02:15.35+00:00

Somehow the Intel OneAPI installer was installed which has hooks into Microsoft Visual Studio 2022. The OneAPI would not install correctly with VS 2022 so I uninstalled OneAPI. Now I cannot uninstall Visual Studio 2022 because the installer (and even the repair option) says "Sorry, something went wrong. The dependent package of Microsoft.VisualStudio.Product.Professional.version=17.0.32126.317 <yadda yadda yadda> cannot be found: Component.OneApi.63b21<yadda yadda yadda>

Pressing the OK button on this dialog dismisses the dialog and nothing is uninstalled or repaired.

This is very similar to a posting which had no mentioned solution, the posting was titled: "VS Professional 2017 - repair installation: The dependent package of 'Microsoft.VisualStudio.Product.Professional,version=15.9.28307.423' cannot be found: Component.Microsoft.VisualStudio.Tools.Applications,version=15.0.27520.3."

Developer technologies | Visual Studio | Setup
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2023-02-13T03:01:05.5933333+00:00

    Hello @cm333 ,

    Welcome to Microsoft Q&A forum.

    Please try to use InstallCleanup.exe tool to remove Visual Studio, see this document: Remove all with InstallCleanup.exe for more details. If InstallCleanup.exe tool doesn’t work, please try to manually remove the following related Visual Studio folders(back up them first just in case):

    C:\Program Files\Microsoft Visual Studio

    C:\Program Files (x86)\Microsoft Visual Studio

    %programdata%\Microsoft\visualstudio\packages

    Feel free to contact us.

    Best Regards,

    Tianyu


    If the answer is the right solution, 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.


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.