Couldn't install Microsoft.Net.4.8.FullRedist.20H2 when I try to install Visual Studio 2022

Nguyễn Văn Mạnh 0 Reputation points
2024-01-17T14:11:18.5566667+00:00
I was trying to install VS2022 on my Windows 10 enterprise version 21H2 (OS build 19044.3570)
and got this error down below. Please help me solve this issue. Thanks!


=====================
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.Net.4.8.FullRedist.20H2,version=4.8.9037.6' failed to install.
    Search URL
        https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.4.8.FullRedist.20H2;PackageAction=Install;ReturnCode=193
    Details
        Command executed: "C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.4.8.FullRedist.20H2,version=4.8.9037.6\dotNetFxLatest-x86-x64-AllOS-ENU.exe" /q /norestart /KeepAUPaused /ChainingPackage Visual_Studio_15_Setup /CEIPconsent /log "C:\Users\username\AppData\Local\Temp\dd_setup_20240116092157_001_Microsoft.Net.4.8.FullRedist.20H2.log"
        Return code: 193
        Return code details: %1 is not a valid Win32 application.
    Log
        C:\Users\username\AppData\Local\Temp\dd_setup_20240116092157_001_Microsoft.Net.4.8.FullRedist.20H2.log
    Impacted workloads
        ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=17.8.34129.139,productarch=x64)
        Azure development (Microsoft.VisualStudio.Workload.Azure,version=17.8.34129.139)
        Visual Studio core editor (Microsoft.VisualStudio.Workload.CoreEditor,version=17.8.34129.139)
    Impacted components
        .NET Framework 4.8 development tools (Microsoft.Net.ComponentGroup.4.8.DeveloperTools,version=17.8.34129.139)
        .NET Framework 4.8 targeting pack (Microsoft.Net.Component.4.8.TargetingPack,version=17.8.34129.139)
        Visual Studio core editor (Microsoft.VisualStudio.Component.CoreEditor,version=17.8.34129.139)
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,092 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,406 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 30,816 Reputation points Microsoft Vendor
    2024-01-18T03:35:55.95+00:00

    Hi @Nguyễn Văn Mạnh, 

    Welcome to Microsoft Q&A! 

    Please try the following:

    1. Check for Windows update and ensure that you have admin permission to install VS.
    2. If you have any anti-virus software or group policy, please temporarily disable them.
    3. Go to the folder: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.4.8.FullRedist.20H2,version=4.8.9037.6 and manually run the dotNetFxLatest-x86-x64-AllOS-ENU.exe. then, go to the Visual Studio Installer and repair/retry the installation.
    4. Remove the folder: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.4.8.FullRedist.20H2,version=4.8.9037.6 and repair the VS installation. 

    Sincerely,

    Anna


    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.  


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.