error while installing VisualStudio (error code : 1)

I can’t download VisualStudio, how fix it?

Not sure this is the right place for such a question.
Perhaps you should look on Visual Studio support website. Which version are you trying to install?

Often these errors mean corrupt installation package, or an attempt to install it previously failed and this left over some stuff. Make sure you have no VS leftovers in your Program Files folders.

Try installing Visual Studio Code or Visual Studio Community and see how it works.

Got the same error while installing Unity. I got visual studio 2017 already installed. Any fixes yet?

I have got this issue and the problem is fixed, can continue the installation after uninstalling the old version of Visual Studio and removing the installation folder of Visual Studio (at C:\Program Files (x86)\Microsoft Visual Studio\2017 on Windows) that might still exist.
Hope this helps!

I was receiving this error message when attempting to update Unity 2020.3.26f1. I updated from Visual Studio 2019 11.16.4 to VS Studio 2019 11.16.9. I retried the Unity update and it completed.
,I had Visual Studio 2019 11.16.4 installed and I received this error. I updated to Visual Studio 2019 11.16.9 and the error went away during update and the Unity update completed successfully.

Actually it should be asked here because this is a common error when using the Unity Windows installer. I also just got the same message during my Unity install. It’s terribly unfortunate there are no longer any good 3rd party C# editors out there 'cuz VS sucks (it’s slow, big, and can really mess up your Unity scripting editing - it often creates duplicate scripts and introduces a lot of issues into Unity that really should just be non-issues.)