trouble to installing vs-general

Saeed Pooladzadeh 241 Reputation points
2021-12-20T14:48:12.47+00:00

Hello,

I have trouble installing the VisualStudio-general. You can get more information and details here:

https://developercommunity.visualstudio.com/t/Instaling-error-at-the-end-of-process/1610757?entry=myfeedback&space=8

Please guide me if you have any information.

regards,
Saeed

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,151 Reputation points Microsoft External Staff
    2021-12-21T02:48:26.203+00:00

    Hi @Saeed Pooladzadeh ,

    Welcome to Microsoft Q&A!

    Please have a try with fixing DISM:

    1. Run the following command: DISM.exe /Online /Cleanup-image /Restorehealth
      i. Note: It might take several minutes for the command to complete
    2. Run the following command: DISM.exe /Online /Cleanup-image /startcomponentcleanup
    3. Run the following command: sfc /scannow
      i. Note: It might take several minutes for the command to complete
    4. Enable TrustedInstaller
      i. sc config trustedinstaller start=auto
      ii. reboot the system.

    Then, please clear your %temp% folder and repair the 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.

    0 comments No comments

  2. Saeed Pooladzadeh 241 Reputation points
    2021-12-25T17:50:32.39+00:00

    Though I did what you told but still can't install VS!

    160426-v-erroe.png

    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.KB5003304,version=4.8.4375.4,chip=x64,machinearch=x64' failed to install.  
        Search URL  
            https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.4.8.KB5003304;PackageAction=Install;ReturnCode=-2147418113  
        Details  
            Command executed: "C:\Windows\system32\dism.exe" /online /quiet /norestart /add-package /packagepath:"C:\Users\Saeed\AppData\Local\Temp\c309c323-12cc-4ab0-8610-d4946aa365e1\Windows10.0-KB5003304-x64-NDP48.cab" /logPath:"C:\Users\Saeed\AppData\Local\Temp\dd_setup_20211225210651_001_Microsoft.Net.4.8.KB5003304.log"  
            Return code: -2147418113  
            Return code details: Catastrophic failure  
        Log  
            C:\Users\Saeed\AppData\Local\Temp\dd_setup_20211225210651_001_Microsoft.Net.4.8.KB5003304.log  
        Impacted workloads  
            .NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=17.0.31804.368)  
            ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=17.0.31804.368)  
            Visual Studio core editor (Microsoft.VisualStudio.Workload.CoreEditor,version=17.0.31804.368)  
        Impacted components  
            .NET Framework 4.8 development tools (Microsoft.Net.ComponentGroup.4.8.DeveloperTools,version=17.0.31804.368)  
            .NET Framework 4.8 targeting pack (Microsoft.Net.Component.4.8.TargetingPack,version=17.0.31804.368)  
            Visual Studio core editor (Microsoft.VisualStudio.Component.CoreEditor,version=17.0.31804.368)  
    

    But I'm not sure if I did no.4 correct:

    160455-powershell-error.png

    Please help me.

    Saeed

    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.