Forum Discussion

AndyDawson's avatar
AndyDawson
Copper Contributor
May 17, 2024

Visual Studio component Microsoft.Net.4.X.X.FullRedist install error when using application deployme

I've recently hit an issue with deployment of Visual Studio using an application deployment in Configuration Manager.

 

I am attempting to deploy a few workloads and have the following in the response.json file:

  • "includeRecommended": true
  • "includeOptional": true
  • "Microsoft.VisualStudio.Workload.ManagedDesktop"
  • "Microsoft.VisualStudio.Workload.ManagedGame"
  • "Microsoft.VisualStudio.Workload.NetWeb"

 

When installing the above using an application deployment, the deployment completes, however it generates a warning and thus Configuration Manager marks the installation as failed. If we run the Visual Studio Installer application on the machine that VS is deployed to, we see an error:

Couldn’t install Microsoft.Net.4.X.X.FullRedist (when we initially looked at this it was version 4.8.1 that was installed as part of the deployment).

 

Following quite a lot of digging (see https://developercommunity.visualstudio.com/t/Items-in-1774-fail-to-install-when-usi/10486002?ftype=problem) I have been told that '.NET installer uses high compression and needs about ~540MB of memory to run the decompression process. SCCM's "Application" deployment is limited to a little less than 512MB of memory. Can you please check if you are using "Application" deployment, and if this issue repro when you change deployment to "Package"?'.


While deploying VS as a package does work, we lose all of the goodness that an application deployment gives us (including the ability to supercede an old version with a newer one).


Is there any way to increase the amount of RAM available to the application type deployment on the client in Configuration Manager?

No RepliesBe the first to reply

Resources