Cannot install Visual Studio Professional 2022

Anonymous
2025-09-04T18:32:49.86+00:00

Hello!

I am trying to reinstall Visual Studio Professional 2022 after having some problems with it, but unfortunately running the installer does not work. I have fully uninstalled the previous version. There appears to be a single version of the .NET SDK left on my machine, but I can't remove that from the Control Center. When I attempt to uninstall it, it instructs me to uninstall the SDK from Visual Studio (which I can't install...). Any help would be greatly appreciated!

Logs:

Something went wrong with the install.
You can troubleshoot the package failures by:
    1. Search for solutions using the search URL below for each package failure
    2. Modify your selections for the affected workloads or components and then retry the installation
    3. Remove the product from your machine and then install again
If the issue has already been reported on the Developer Community, you can find solutions or workarounds there. If the issue has not been reported, we encourage you to create a new issue so that other developers will be able to find solutions or workarounds. You can create a new issue from within the Visual Studio Installer in the upper-right hand corner using the "Provide feedback" button.
================================================================================
Package 'Microsoft.VisualStudio.Setup.Configuration,version=3.12.2140.44225' failed to install.
    Search URL
        https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.Setup.Configuration;PackageAction=Install;ReturnCode=1638
    Details
        MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.Setup.Configuration,version=3.12.2140.44225\Microsoft.VisualStudio.Setup.Configuration.msi, Properties:  REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1  ALLUSERS="1"  MSIFASTINSTALL="7" 
        Return code: 1638
        Return code details: Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
    Log
        C:\Users\WBOCHNOWIC\AppData\Local\Temp\dd_setup_20250904135024_022_Microsoft.VisualStudio.Setup.Configuration.log
    Impacted workloads
        Visual Studio core editor (Microsoft.VisualStudio.Workload.CoreEditor,version=17.14.36015.10)
    Impacted components
        Visual Studio core editor (Microsoft.VisualStudio.Component.CoreEditor,version=17.14.36015.10)
Developer technologies | Visual Studio | Setup
0 comments No comments

3 answers

Sort by: Most helpful
  1. Susmitha T (INFOSYS LIMITED) 2,700 Reputation points Microsoft External Staff
    2025-09-08T09:50:49.21+00:00

    Hope you are doing good! Thank you for reaching out. Please find the answer below.

     

    1. Run InstallCleanup with Specific Version Parameter: Even if you've used InstallCleanup.exe, ensure you're running it with the correct version flag: InstallCleanup.exe -i 17
    This targets Visual Studio 2022 specifically. Run this from an elevated command prompt (Run as Administrator).

     

    2. Manual Registry and File Cleanup: If the cleanup tool doesn’t fully remove the setup configuration: Navigate to C:\Program Files (x86)\Microsoft Visual Studio\2022 and delete the folder manually.
    Open Registry Editor (regedit) and search for: Microsoft.VisualStudio.Setup.Configuration Delete any lingering keys related to this package. Be cautious and back up your registry before making changes.

     

    3. Repair Windows Installer Services: Corrupted system files or Windows Installer services can block installations:
    Run System File Checker: sfc /scannow
    Run Check Disk: chkdsk C: /r
    These commands help repair system-level issues that may interfere with installations.

     

    4. Use Visual Studio Installer Repair Option: If the installer opens but fails midway:
    Open Visual Studio Installer. Click on the edition (if listed) → More → Repair. This can reacquire missing files and reset the environment.

     

    5. Reimage as Last Resort: If all else fails and logs show persistent malformed metadata or JSON parsing errors, Microsoft engineers have suggested that reimaging the machine may be the only viable solution.

     

    Kindly check the below reference: https://developercommunity.visualstudio.com/t/CannotInstallVisualStudio2022ProfessionalEdition/1092…

    If issue still persist, we’ll be happy to assist further if needed." Kindly mark the answer as accepted if the issue resolved".

    Was this answer helpful?


  2. Susmitha T (INFOSYS LIMITED) 2,700 Reputation points Microsoft External Staff
    2025-09-05T08:01:37.1+00:00

    Hope you are doing good! Thank you for reaching out. 

     You're running into a classic installer conflict: error code 1638 means “Another version of this product is already installed.” Even though you’ve uninstalled Visual Studio, remnants of the Microsoft.VisualStudio.Setup.Configuration package are still lingering, blocking the reinstallation.

    Kindly follow the below steps to remove:

    1. Manually Uninstall the Conflicting Package Open Control Panel → Programs and Features ->Look for Microsoft Visual Studio Setup Configuration or similar ->If it appears, uninstall it manually.

     
    If it doesn’t show up or refuses to uninstall:
    2. Use Microsoft’s Install Cleanup Tool ->Download the InstallCleanup.exe tool from Microsoft.
    Run it from an elevated command prompt: InstallCleanup.exe -full
    This will remove all traces of Visual Studio, including setup configuration files.

     
    3.Restart Your Computer: Sometimes, pending installations or updates can block new installations. Restart your machine to ensure that no processes are holding onto Visual Studio files.

     

    If issue still persist after following the steps, we’ll be happy to assist further if needed." Kindly mark the answer as accepted if the issue resolved".

    Was this answer helpful?


  3. Bruce (SqlWork.com) 84,946 Reputation points
    2025-09-04T23:11:09.57+00:00

    you will need to go thru the detailed log to find the actual issue. see:

    https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/installation/troubleshoot-installation-issues

    generally the issues are partially installed or corrupted components. also did you reboot to finish any pending installs.

    Was this answer helpful?

    0 comments No comments

Your answer

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