Search code examples
visual-studioinstallationvstovisual-studio-2022visual-studio-installer

VSTO can not installed with Visual Studio 2022 Installer


I rent absolutely free

Edition Windows 10 Pro
Version 20H2
Installed on    ‎2/‎7/‎2023
OS build    19042.1706
Experience  Windows Feature Experience Pack 120.2212.4170.0

With Excel installed and Activated by hosting provider

Microsoft Office LTSC Professional Plus 2021
Version 2108 (build 14332.20447 Click-to-Run)

Than I try to install to this new machine VS 2022 community from official site

Unfortunately VSTO tools is impossible to install, I see a lot of times the same error

VSTO installation Error

What I need to do? I need VSTO.

I receive advice to download firstly and install after full download. In this case I have this error.

Something going wrong

What going wrong I don't understand. This VM placed to datacenter in Germany with good connection and preinstalled and activated legal copy Windows 10 and Excel.


Solution

  • Most probably you are dealing with a connection problem. You may try to repair your VS installation at a later point of time.

    You may consider downloading a local installation package, select the Download all, then install option in the dropdown at the bottom of the Workloads tab of the Visual Studio Installer. The purpose of this feature is to frontload the downloading of the Visual Studio packages onto the same computer that you plan on eventually installing Visual Studio on. By downloading the packages locally first, you can then safely disconnect from the internet before you install Visual Studio.

    download all, then install

    Also you can download the installer locally by using a command line. And only then you can launch the installer for the Visual Studio, so you will not face with such problems. Read more about that in the Create an offline installation package of Visual Studio for local installation article.