visual studio – Error running downloaded vs_installer.exe on Windows: “This app can’t run on your PC”


I have successfully downloaded Visual Studio Installer using curl with the following command:

C:\Windows\System32\curl.exe -o vs_installer.exe https://aka.ms/vs/17/release/vs_installer.exe

However, when I attempt to run vs_installer.exe --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended --passive, I encounter an error message stating:

This app can't run on your PC
To find a version for your PC, check with the software publisher.

enter image description here

I am unsure how to resolve this issue and would appreciate any guidance. Has anyone else encountered this problem or knows what might be causing it? My goal is install the VIsual Studio Community from the cmd command line.

Leave a Reply

Your email address will not be published. Required fields are marked *