Difference between Visual Studio Redistributable and Visual Studio SP1 - visual-studio

Are there many redistributable packages? If so, how do I know which package to download?

You will need the redistributables for any of the environments you develop in. Note the "full" versions for the .net Frameworks contain both 32-bit and 64-bit versions.
http://msdn.microsoft.com/en-us/library/5a4x27ek.aspx
You can select other versions (.net 3.5, etc) from the "Other versions" link at the top of the page.
For C++, the VC2010 redistributables are here:
x86 - http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84
x64 - http://www.microsoft.com/downloads/en/details.aspx?FamilyID=BD512D9E-43C8-4655-81BF-9350143D5867

The visual studio SP1 redistributable fixes issues (bugs) in visual studio and updates the security
-> Use this if you have VS and want to update
The visual studio redistributable puts updated versions of assemblies, packages and dlls on your machine
-> Use these if you have programs that depend on the updated packages

If using InstallShield, you should update your MSMs to point to the new Visual C++ libraries.

Related

Where is the Visual C++ Update 2 Runtime

Visual Studio 2015 Update 2 has been released for 7 days. Where can I download the Visual C++ Update 2 runtime so I can run the applications compiled with Visual C++ 2015 Update 2?
Here is the download
Microsoft Visual C++ 2015 Redistributable installs run-time components
of Visual C++ libraries. These components are required to run C++
applications that are developed using Visual Studio 2015 Update 3 and
link dynamically to Visual C++ libraries. The packages can be used to
run such applications on a computer even if it does not have Visual
Studio 2015 installed. These packages also install run-time components
of C Runtime (CRT), Standard C++, MFC, C++ AMP, and OpenMP libraries.
Microsoft Visual C++ 2015 Redistributable includes bug fixes to the
runtime DLLs and also the latest versions for KB 2999226.
There are two files in the Visual Studio 2015 Update 2 VC++ Redistributable package.
vc_redist.x64.exe (v14.0.23918.0).
https://download.microsoft.com/download/0/5/0/0504B211-6090-48B1-8DEE-3FF879C29968/vc_redist.x64.exe
vc_redist.x86.exe (v14.0.23918.0).
https://download.microsoft.com/download/0/5/0/0504B211-6090-48B1-8DEE-3FF879C29968/vc_redist.x86.exe
For those that care, the x64 version sets the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VC\Servicing\14.0\RuntimeMinimum\UpdateVersion (REG_SZ) to the value "14.0.23918".
For the x86 version, check for the existence of the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall{2e085fd2-a3e4-4b39-8e10-6b8d35f55244} If it exists, the update is already installed.

Visual Studio 2010 x64 Compiler on Windows 10

I've installed Visual Studio 2010 Express but I need the x64 compiler toolset. I can not install the compiler toolset with the Windows 7.1 SDK on my Windows 10 machine, it says ".NET Framework 4 is not installed".
How can I get the x64 compilers of Visual Studio 2010?
For me it worked with the following steps (older Visual Studio version can be downloaded through https://www.visualstudio.com/vs/older-downloads/ (required login))
Install Microsoft Visual Studio 2010 Express (en_visual_studio_2010_vc_express_web_installer_x86_516528)
Install Microsoft Visual Studio 2010 SP1 (mu_visual_studio_2010_sp1_web_installer_x86_651694)
Install Microsoft SDK (from https://www.microsoft.com/en-us/download/details.aspx?id=8279). Note that when running the installer a warning will appear saying that "some components cannot be installed". Just ignore this (press OK) and continue with the installation using the default settings. Note that the 64-bit C++ compiler is not installed at this point.
Install KB2519277 (from https://www.microsoft.com/en-us/download/details.aspx%3Fid=4422).
Both the 32- and 64-bit Visual Studio 2010 C++ compilers should now be installed.
Note that I'm not sure if all the above steps are actually necessary and if the order is strictly relevant (e.g. it might also work without installing SP1 or installing SP1 later) but this is what worked for me.
I found an installer for VS 2010 Professional on CNet: http://download.cnet.com/Microsoft-Visual-Studio-2010-Professional/3000-2212_4-10618634.html It installed the x64 compilers as well.

Why the massive overhead in a visual studio install

I install visual studio 2013 ultimate on a x64, and i get with is components from 2005 and a whole bunch for x86 ?!
Microsoft Visual C++ 2005 redistributable x86
It also , if i am not mistaken, gives me a version of visual studio 2010 as well as tooling and files only associated for those versions. There was no option to negate this. Do i really need all of this?

how to make standalone visual studio application which can run on any system without having visual studio

I made an application using VS 2010 and want to run that application on other system which don't have VS 2010.
How can i make my app independent of dependency from VS 2010,so that it can run on any system without installing VS 2010.
If this is a managed application then you need only the appropriate .NET framework version on the target machine (and of course any other dependencies your app may have).
If this is a native application then you need the VC++ 2010 Redistributable package. You need however the redistributable that matches your VS 2010 version (RTM or with SP1) and the project target architecture (x86, x86, IA64). Here are the links for the VC++ 2010 redistributables:
x86
VS 2010 RTM
VS 2010 with SP1
x64
VS 2010 RTM
VS 2010 with SP1
IA64
VS 2010 RTM
VS 2010 with SP1
You need to create an installer for it. The installer will install the .NET framework and any other requirements you may have.
I googled 'creating installer in visual studio 2010' and got some encouraging results.
Examples from results:
https://www.youtube.com/watch?v=IEgE51Lcpg0
http://msdn.microsoft.com/en-us/library/t71a733d.aspx
http://msdn.microsoft.com/en-us/library/ee942965%28v=vs.100%29.aspx
Search for ClickOnce in case the application needs to run for noon Admin users (installs to local user folders).

Visual Studio 2003 Merge Modules

I am using Visual Studio 2005 to make an install. The application has a dependency on a DLL that was built with MFC 7.1 (from Visual Studio 2003).
Are there merge modules for MFC 7.1 or other redistributables like there are for MFC 8? Where could they be found?
These merge modules are usually located in %ProgramFiles%\Common Files\Merge Modules.
Look for these files:
vc_user_crt71_rtl_x86_---.msm (has msvcr71.dll)
vc_user_mfc71_rtl_x86_---.msm (has mfc71.dll)
vc_user_stl71_rtl_x86_---.msm (has msvcp71.dll)
vc_user_mfc71_loc_rtl_x86_---.msm (has mfc71*.dll localized versions)
I would expect the merge modules for MFC 7.1 to be in %ProgramFiles%\Microsoft Visual Studio .NET 2003\redist, assuming that you have Visual Studio 2003 installed. (However, I can't verify that because I don't have Visual Studio on this PC.)

Resources