Use 64-bit locations not working - Advanced Installer Community
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Use 64-bit locations not working

I'm using the AI Pro 11.1 build 56565 on a Win7 64 bit system.

I'm installing the VC++ 2012 x86 redistributable as a pre-requisite. The default Install Condition AI uses for this is to check the following registry entry:

HKLM\SOFTWARE\Microsoft\DevDiv\VC\Servicing\11.0\RuntimeMinimum\Version

If it doesn't find this entry, then it tells the user that the redistributable did not install successfully.

The problem is that this registry entry is only valid for 32-bit systems. If installing on a 64-bit system, the redistributable writes it here instead:

HKLM\SOFTWARE\Wow6432Node\Microsoft\DevDiv\VC\Servicing\11.0\RuntimeMinimum\Version

I thought that by checking the "Use 64-bit locations when evaluating conditions on a 64-bit machine" checkbox under Install Conditions would look in the correct location if installing on a 64-bit system but it does not. It always reports that it wasn't installed correctly.

I do not see any documentation about where AI looks if this checkbox is checked. But apparently it's not in the Wow6432Node section that is used on 64-bit Windows.

I was able to resolve the issue by adding both of the registry entries and selecting "Install only if all conditions are false". That way both the 32-bit and 64-bit registry locations are checked to confirm installation of the prerequisite.

However, I would think AI needs to either default both registry entries if you're using the VC++ 2012 redistributable or the "Use 64-bit locations..." checkbox should cause it to check the Wow6432Node. If I forget to add the additional registry entry as an install condition, then the vast majority of Win7 users (which are 64-bit) will be calling me saying the redistributable didn't install when it really did.

Thanks
Phil
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Use 64-bit locations not working

Hi Phil,

The problem is that you enabled the option "Use 64-bit locations...". This make the installer perform the registry search in another location.

Let me explain. On 32 bit machines you have the normal registry path you mentioned. On 64-bit machines you have two registry areas, the one for x86 apps, which is all entries found under "Wow6432Node"
and the one for 64-bit applications, which on 64 bit machines is identical with the registry path from x86 machines.

So if you have left the option "use 64-bit locations..." unchecked the error should have not appeared and you would not be required to add the second search manually. Our installers detect that they are
running on x64 or x86 machines and they automatically redirect the registry search to Wow6432Node key on x64 machines, so you don't have to enter this key manually in the registry path visible in the project.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”