Can we install VC++ 2015 Redistributable Package in custom location, where as non-administrator has rights to access? - visual-c++

We have VC++ projects in VS 2008 and Wpf Projects in 2010. We want to migrate both of them to Visual Studio 2015.
The biggest problem we face, while a new user needed to install our software is, he need to install the pre-requisite of installing VC++ Redistributable Package, which requires Administrator rights. Then he need to install our application via clickonce server.
We want to ease this part - installing VC++ Redistributable Package.
Is the new 2015 VC++ Redistributable can be installed in my application path, without requiring administrator rights? I could not the spot the link to download VS 2015 VC++ R P link - please provide.
I got the suggestion of using /MT (linking statically) from below link, but we want the application to be statble (as we also dispatch patches), we don't want a library conflict.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/a8d4ca59-c295-43bf-b34e-518fe2f7977c/vc-2015-redistributable-package?forum=vclanguage#667db896-f517-4fa5-b5b7-b5b0c3d12d52
Please, help.

I believe no, you can't do that.
Read this article at VC++ team blog: Introducing the Universal CRT, where James McNellis said:
App-local deployment of the Universal CRT is not supported.

Related

Which Redistributable Package for MSVC 2013? there are multiple

I am a bit confused with which version of the MSVC Redistributables for Visual Studio 2013 I need to include with my installer when people install my application.
I have been including and auto-installing what I thought was the correct vcredist_x64.exe, but upon installation on a brand new Win10 box, it needed a different vcredist_x64.exe.
How do I know which is the correct redistributable for my developed-with-visual-studio-2013 application when there are multiple versions of the x64 vcredist_x64.exe?
I also noticed that there is "update 5" for visual studio 2013 - if I install this update, does that change the redistributable I need to include in my installer?
This is the official page where you can download the latest redistributable: Visual C++ Redistributable Packages for Visual Studio 2013. There is also Redist directory with appropriate installers somewhere inside Visual Studio 2013 installation directory.
It is possible that you had redist for older version of VS2013 that you used for building your application.

Create a setup file in Visual Studio 2012

I have a windows form project and I want to create an installation package for this project. How can I create a setup file in Visual Studio 2012 ? My project is without data base.
How to create a Setup package using Visual Studio 2012.NET?
Microsoft released the Visual Studio Installer Project extension in April of this year, the catch is it's for VS2013, not VS2012.
http://blogs.msdn.com/b/visualstudio/archive/2014/04/17/visual-studio-installer-projects-extension.aspx
The 'lite' InstallShield option remains in VS if you need something with more flexibility.
Advanced Installer also has a free version that includes an extension for VS. This is a commercial tool but the extension is included in the free edition as I said, for more advanced features you need to purchase a Professional or higher licenses and edit the project direct from Advanced Installer GUI, not from VS. (but you can still use the project in the VS solution, so you get the MSI built at the end of your build process)
Visual Studio setup projects (vdproj) are not supplied with VS 2012
There are several solutions for you:
You could use InstallShield instead.
If you don't want or
can't use InstallShield for any reason, you could try WiX. This
toolset builds Windows installation packages from XML source code.
If you only use Windows Presentation Foundation (.xbap), Windows Forms (.exe), console application (.exe), or Office solution (.dll) you could look at ClickOnce. To use this you should right click on the project file in the solution explorer and select "Publish" from the pop-up menu.
Alternatively you can use previous version of Visual Studio (2010).

Can an application built with VC++ 2010 run reliably with just the VC++ 2013 redistributable installed?

So here is my situation: We have some applications built using VC++ 2010, but others are now built with VC++ 2013.
In the past, when setting up a client machine, only VC++ 2010 Redistributable was installed, but with the development of some of these applications now in VC++ 2013 we need to install the VC++ 2013 Redistributable.
I know that the Redistributable packages are installed side by side and that applications developed in VC++ 2010 will go to their appropriate file set if it exists on the machine.
But can a VC++ 2010 project run reliably with just the VC++ 2013 redistributable installed?
This question occurred to be when I saw that Microsoft named the VC++ 2010 and 2013 redistributable install files the same. For example, vcredist_x86.exe.
Thanks for your time!
No, your VS2010 built app will need msvcr100.dll (etcetera), the VS2013 installer will deploy msvcr120.dll
Doing anything to force VS2010 to use the VS2013 runtime library is very unlikely to turn out well. The new C++11 language standard has caused lots of upheaval in the runtime libraries. The good kind of upheaval, but not exactly very compatible with old compilers.
You must therefore install the VS2010 runtime libraries as well.

Corrupt C runtime library?

I'm using Visual Studio Professional 2012 (with Update 2) and since I have a project that needs to be built with the VC++ 2010 toolset I also installed Visual C++ 2010 Express (with SP1).
I use the newer 2012 IDE also for the older projects. So for these projects I set the Platform Toolset to v100. And when I also set the runtime library to /MT or /MTd I get the following error:
error LNK1127: library is corrupt
for libcpmt.lib or libcpmtd.lib, depending on the configuration.
What could be wrong here?
Installation history:
VS2012 Professional
Windows 7 SDK
Uninstalled VS2012 and Windows SDK
VC++ 2010 Express
VS2012 Professional
If I understood correctly, you installed VS2010 after installing VS2012? If not, please edit your question to make it clear.
This sequence of installations is not recommended by Microsoft, and there are plenty of caveats and ReadMe's to navigate in order to find out what's happened.
I suggest that the best thing to do is to reinstall VS2012 (or do a repair install), then see what - if anything - is still broken.

Direct link to VC++ 2010 SP1 Redistributable from custom installer

I have installer that contains vcredist_x86.exe / vcredist_x64.exe so if user machine does not have VC++ redistributable installed then I install it.
However, the size of vcredist_x86.exe / vcredist_x64.exe is quite large ~5MB, which may be a problem for a small application.
Is there a direct (and permanent) link to Microsoft site that I could use instead of adding vcredist files to my installer?
Or may be there is even better way to solve such problem?
P.S. I am aware that user machine would have to be online - this is OK.
Here are the direct links for MSVC 2010 redists:
MSVC 2010 SP1 Redist x86 English
http://download.microsoft.com/download/C/6/D/C6D0FD4E-9E53-4897-9B91-836EBA2AACD3/vcredist_x86.exe
MSVC 2010 SP1 Redist x64 English
http://download.microsoft.com/download/A/8/0/A80747C3-41BD-45DF-B505-E9710D2744E0/vcredist_x64.exe
As you can see from those URLs, Microsoft is using UUIDs to index all their downloads, which looks like a good design decision and suggests that those links are indeed going to remain valid for a long time.
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)

Resources