Visual Studio Installer - How to install C++ support on other drive, if possible - c++

I can't change the installation folder for these

Sadly this idea doesn't work, this documentation states that you have to reinstall VS:
You can select a different location only when you first install Visual
Studio. If you've already installed it and want to change the
location, you must uninstall Visual Studio and then reinstall it.
I also can't change the installation path on my computer.

Related

CLion Can't Find Visual Studio Compiler Even Though It's Installed

I'm setting up my CLion compiler to use Visual Studio, but it says that the folder is not found. But the folder does exist. Even when I manually selected the Visual Studio folder, it says it doesn't exist. What can I do to fix this?
Had same problem, in my case the C++/C build tools got uninstalled.
I resolved the issue by running Visual Studio Installer, In Workloads Tab tick "Desktop Development with C++", click install. After installation restart your computer.

Visual Studio: copy installation folder and setup it up to be auto-detected by Qt Creator

I wiped out an old Windows 10 and replaced it with a new Windows 10 by ISO image.
Before wiping out, I copied the folder of Microsoft Visual Studio 2017 Community Edition on old Windows to an external hard disk:
xcopy /E "C:\Program Files (x86)\Microsoft Visual Studio" D:\
Now after reinstalling Windows 10, I copied the VS 2017 folder from external the hard disk to the C:\Program Files (x86)\ folder of new operating system.
I did so to avoid having to download VS 2017 again on new OS.
The problem is other software, like Qt Creator, cannot auto-detect the VS C/C++ compilers. I guess that's because the VS 2017 isn't added to path.
The questions are:
What path should I add to system path in order to VS 2017 to be auto-detected by other software like Qt Creator?
Is there any script which I can run to automatically integrate the VS 2017 to the rest of the operating system.
To answer the questions in your issue:
Copying the content of C:\Program Files (x86)\Microsoft Visual Studio folder is not a recommended way to install VS.
(The complete installation will not only set the Environment variables but also set the related registry keys and values. A simple copy may break this process)
So we always suggest that users install the VS by vs-installer or offline installation package. (Same like what Zlatomir suggests.)
To your actual requirements:
It seems you're just trying to use VC++ compiler in QT Creator instead of developing QT projects in Visual Studio. So build tools for VS package is enough for you.
See this related issue, if we download Build Tools for VS package with corresponding C++ workload, then we can get the compiler the QT needs. There's no need to install the VS IDE for this situation.
And if we need C++ compiler from VS2017, download the Build Tools for VS2017, if we need C++ compiler from VS2015, download the Build Tools for VS2015 Update3. Link of old version about VS Tools see here.
Update:
From the the link older downloads we can see:
Choose the download button according to which version we need. We can find both VS2017 build tools package and VS2015's there.
Usually programs on Windows don't work after you just copy the installation folder.
So right now there is little you can do to fix it, even if you partially fix, you have no way to know if something else will be broken in the future.
So the recommended solution is to download the installer again and create an offline installer for the next time this happens, you can do that by running the online installer with the following parameters: vs_community.exe --layout c:\vslayout --lang en-US (replace vs_community.exe with the actual name of the online installer file, or rename it), for more options, that might require a smaller download (example if you only need native and don't need .net) check the documentation here for the full set of options you have.

Can't run VS 2013 projects even though the redistributable is already installed?

I'm trying to use VS 2015 to build and run a project that was originally created in VS 2013. When I do, it gives me an error message saying I can't run it because MSVCR120D.dll is missing from my computer. I tried to install the VS 2013 redistributables from the microsoft website, but that didn't help. Looking in my System32 folder revealed that even after installing it, all I have is MSVCR120.dll, not MSVCR120D.dll. I also tried downloading the .dll file on its own from opendll.com and placing it in the correct folder, but that did not solve the issue. What do I do here? I have no idea how I'm supposed to install this .dll I need.
Have you tried to set platform toolset to v140 in project properties?

Visual Studio 2013 Ultimate - Missing C++ Projects Templates

I installed fresh install of my Microsoft Visual Studio Ultimate 2013 and launched it. I then went to FILE -> New -> Project and wanted to create new C++ project. However, there is no option for creating such project now (I know it was there before, on my second laptop). I restarted installer and pressed repair, but nothing changed. I also tried to uninstall it and then install it back again. I also have MSVC2015 RC and I can create C++ Projects there. During an installation I was asked if I want to install certain features as well and I did install everything that was offered.
This is how my New Project looks like.
What is going on in there? Did I forget to install something?
I had the same issue with VS2012, some time ago. I've solved installing again. Not sure if VS2013 makes you configure if you want to install "C++ stuff" during the installation process.

NPM Install on Windows 7 issue, no Microsoft.CPP folder

I'm having troubles with npm install on Windows 7.
I'm using Visual Studio 2013 Express and I've also installed Microsoft Build Tools 2013.
I have the Path variable set and I've tried with the --msvs_version parameter in the npm install
It gives me the
error MSB4019: "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Cpp.Default.props" not found
That folder doesn't exist on my computer, I only have
MSBuild\12.0
and
MSBuild\Microsoft
What do I miss to install?? I would be able to compile Node project without having to install the full version of VS, if possible, and honestly, I would be able to do it by installing the minimum required software.
Thank you!