find office version - Advanced Installer Community
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

find office version

Hello,
I need to recognise if a specific version of Access is installed.
In advanced Installer I've found the AI_DETECTED_OFFICE_ACCESS_VERSION variable but it seems it do not make any difference between 32bit and 64 installations from Microsoft office.
It important becqause Access files could only be opened same the same version as the one with which they have been created.
Do I have en possible to search for a specific version of office (32 or 64) with advanced installer?
Regards,
Éric.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: find office version

Hello Éric,

Unfortunately, we do not have predefined support for that, but yes, it is possible.

For instance, you can perform a registry search and make use of the "Search the 64-bit portion of the registry" option:
search.png
search.png (89.55 KiB) Viewed 3058 times

For instance, I've recently created a how-to for installing an Office Add-In based on Office bitness and, as a condition, I have used a search that is looking in the following location:

HKLM:\SOFTWARE\Microsoft\Office\16.0\Access\InstallRoot\Path

(when the "Search the 64-bit portion of the registry" option is used)

and for the following path:

HKLM:\SOFTWARE\WOW6432NODE\Microsoft\Office\16.0\Access\InstallRoot\Path

otherwise.

Basically, if the first registry exists, it means that the 64-bit is installed and if the second registry exists, it means that the 32-version is installed (on a 64-bit machine). This is due to the WOW6432NODE registry entry, which is used especially to redirect 32-bit packages information on 64-bit machines.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”