Visual C++ 2012 Redistributable Registry Wrong - Advanced Installer Community
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Visual C++ 2012 Redistributable Registry Wrong

The default registry entry for Install Conditions for the prerequisite "Visual C++ Redistributable for Visual Studio 2012 x86" is incorrect on Advanced Installer 10.5.2. It defaults to

HKLM\Software\Microsoft\DevDiv\vc\Servicing\11.0\RuntimeMinimum\Version

However, simply running the vcredist_x86 for VC2012 does not generate that registry entry. If you install Visual Studio 2012 you get that registry entry but not just from running the vcredist_x86.exe redistributable on a target system. All our systems are Win7 64.

It appears that the redistributable does create a registry entry elsewhere and is located in

HKLM\SOFTWARE\Wow6432Node\Microsoft/VisualStuidio\11.0\VC\Runtimes\x86

It sets the "Installed" entry to a value of 1.
RegistryEntry.jpg
RegistryEntry.jpg (65.97 KiB) Viewed 32952 times
However, I cannot access the HKLM\SOFTWARE\Wow6432Node folder in IS when creating a new Install Condition. It simply is not even listed in the Select Registry Values dialog. How do I specify a key located in Wow6432Node ?

At this point I'm having to run the vcredist_x86 every time the install is run - even for an update. That makes it very slow since the vcredist_x86 for VC2012 takes a while to install just by itself. Any suggestions?

Thanks,
Phil
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

Hi Phil,

I searched the "HKLM\Software\Wow6432Node\Microsoft\DevDiv\vc\Servicing\11.0\RuntimeMinimum\Version" registry location on a Windows 7 64-bit Operating System and I found that it exists only if the "Visual C++ Redistributable for Visual Studio 2012 x86" prerequisite is installed.

Also, please keep in mind that the registry entries under Wow6432Node are automatically searched if the "Use 64-bit locations when evaluating conditions on a 64-bit machine" option is not checked.

You can also take a look on the Select Registry Key missing entries thread which debates a similar problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

That's interesting since I verified on the target machine that registry entry "
HKLM\Software\Microsoft\DevDiv\vc\Servicing\11.0\RuntimeMinimum\Version" did NOT exist prior to running my app's installation which includes the VC2012 redistributable as a prerequisite. Then I ran the install which definitely installed the VC2012 redistributable confirmed by Control Panel and the fact that my apps didn't crash immediately with the "missing DLL" message. Afterward, I checked the registry again and that registry entry still did not exist (after refreshing the registry editor). But I did see the other registry entry in the Wow6432Node entry appear. That would seem to indicate that the "
HKLM\Software\Microsoft\DevDiv\vc\Servicing\11.0\RuntimeMinimum\Version" entry is indeed not the one correct one.

BTW - On my development platform, I do have that registry entry but thought that was probably due to Visual Studio being installed.

I have also seen other threads (in MSDN) saying that the VC2012 redistributable does not provide any indication via the registry that it is installed. I'm not sure about that though but I've seen that discussion multiple times out on the web.

I'll do a little more testing and also look at checking the "Use 64 bit locations" and add a new install condition registry requirement for the Wow6432Node entry that appears to be created.

I gather nobody else is complaining about this issue? Odd that I've seen it happen now on two separate target machines.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

Hi,

As I mentioned in my previous post, the Wow6432Node registry entries are automatically searched if the "Use 64 bit locations" option is not enabled, even if this node is not specified in the path of the install condition.

So, if the path of the install condition is "HKLM\Software\Microsoft\DevDiv\vc\Servicing\11.0\RuntimeMinimum\Version" and the "Use 64 bit locations" option is not enabled, the application will search for the "HKLM\Software\Wow6432Node\Microsoft\DevDiv\vc\Servicing\11.0\RuntimeMinimum\Version" registry location on a Windows 7 64-bit Operating System.

In order to test an install condition you can use the [Evaluate] button available on the "Install Condition" tab of a prerequisite. You can also enable and disable the "Use 64 bit locations" option and see the difference.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

Thanks Eusebiu - I'll do some more testing and let you know.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

You're welcome. Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

Hi Eusebiu,

I still believe there is a problem with installing the VC2012 redistributable. I'm using the standard registry string populated by Advanced Installer which is:

HKLM\Software\Microsoft\DevDiv\vc\Servicing\11.0\RuntimeMinimum\Version

I also have "Use 64-bit locations when evaluating conditions on a 64-bit machine" checked.

Here's the screen shot:
Image1.jpg
Image1.jpg (187.23 KiB) Viewed 32921 times
Running the install does indeed install the redistributable but immediately afterward it pops up the Warning 4154 message saying it was not installed correctly. However it was installed correctly.
Image2.jpg
Image2.jpg (25.28 KiB) Viewed 32921 times
I'm installing the redistributable with the following command lines:

Full UI: /quiet /repair /norestart

The only way I am able to successfully have the install complete without errors is if I set the redistributable to always install. That's not good because it takes sometimes 5 minutes or more to install (10x the time VC2010 redistributable took to install).

Any ideas?

Phil
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Visual C++ 2012 Redistributable Registry Wrong

Hi
pdm1999 wrote:I still believe there is a problem with installing the VC2012 redistributable.
It appears that you're NOT using the same file for Visual C++ Redistributable for Visual Studio 2012 x86 prerequisite for the following reasons:
  • your version is v11.0.50727.01 instead of 11.0.50727
  • your vcredist_x86.exe installs a different set of registry keys than the one automatically downloaded by Advanced Installer
    (ie. key should be Servicing\11.0\RuntimeMinimum, your have Runtime\x86)
Please test with the installation kit automatically downloaded by Advanced Installer and let us know the result.

I just want to emphasize one important note from my colleague:
Eusebiu wrote:In order to test an install condition you can use the [Evaluate] button available on the "Install Condition" tab of a prerequisite.
Such a test would display a message box like the one attached.

If you have other questions, please let us know.
Attachments
Evaluate registry key condition
Evaluate registry key condition
vs12red_prereq.png (7.58 KiB) Viewed 32915 times
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

Hi Teodor,

Yes, you're right. I had forgotten that I saw that Microsoft has a newer VC++ 2010 redistributable than what Advanced Installer downloads. So, I downloaded it and replaced the older one from Advanced Installer with it. I made the assumption that it would have the same registry entries but perhaps not. (Why would they change registry entries? But then it is Microsoft we're talking about so logic doesn't always apply.) I switched back to the one Advanced Installer uses and things seems to work okay.

Here is the download URL from Microsoft for the newer redistributable if you need to investigate the differences but I'll plan on sticking with the version you all provide until you update Advanced Installer.
http://www.microsoft.com/en-us/download ... x?id=30679

I did notice one thing that perhaps you could change. When you select the VC++ 2012 preprequisite, the Full UI command line is empty. It probably should have "/quiet" at least on it if not "/quiet /repair /norestart.

Thanks for helping me on this.

Phil
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

I've run into another snag in trying to install my VC2012 application on an XP platform using Advanced Installer. The older VC2012 redistributable that is supplied by Advanced Installer is not compatible with XP:
Image2.jpg
Image2.jpg (51.36 KiB) Viewed 32677 times
The newer VC2012 redistributable (11.0.60610) is compatible with XP but as previously discussed, it apparently uses different registry settings to indicate that it is installed compared to the older one supplied by Advanced Installer. I'm not sure what the correct registry settings are for this new redistributable though so I have to set the install project to always install the redistributable.

Can you update Advanced Installer to include this latest Visual C++ 2012 redistributable and the correct registry settings so that we can install VC2012 applications on XP platforms?

Thanks,
Phil
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

It appears the registry entry for the latest VC++ 2012 redistributable is:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\11.0\VC\Runtimes\x86\Installed = 1

or for 64 bit systems:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\VC\Runtimes\x86\Installed = 1

Phil
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

Hi Phil,
It appears the registry entry for the latest VC++ 2012 redistributable is:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\11.0\VC\Runtimes\x86\Installed = 1

or for 64 bit systems:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\VC\Runtimes\x86\Installed = 1
I found that these registry entries are also created for the older version of "VC++ 2012", so if the older version is installed on a machine, the newer one will not be installed, if these registry entries are used as install conditions, because they will be found on the machine.

If you want to install the new "VC++ 2012" version from an Advanced Installer project you can use the install condition from the attached image. Also, I attached an AIP file with all the registry entries that are created when this new version is installed.

Let us know if this helped.

Best regards,
Eusebiu
Attachments
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.60610.aip
(27.62 KiB) Downloaded 1335 times
VC++ 2012 Install Condition.png
VC++ 2012 Install Condition.png (33.36 KiB) Viewed 32674 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Re: Visual C++ 2012 Redistributable Registry Wrong

Thanks Eusebiu!

Are there plans to update Advanced Installer prerequisites to use the VC redistributable 11.0.60610 since the previous one doesn't install on XP? It's not a problem now that I know how to do it but it would be much simpler to have Advanced Installer use the new one so you could simply pick it from the prerequisite list.

Phil
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: Visual C++ 2012 Redistributable Registry Wrong

Hi
pdm1999 wrote:Are there plans to update Advanced Installer prerequisites to use the VC redistributable 11.0.60610 since the previous one doesn't install on XP?
I've added this improvement to our development list. Thank you for bringing this to our attention.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Visual C++ 2012 Redistributable Registry Wrong

Hello,

This improvement was added in version 10.7 of Advanced Installer released on November 11, 2013.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”