Jamie.Garroch
Posts: 8
Joined: Wed Jan 29, 2020 8:56 pm
Contact: Website Twitter

Create duplicate HKLM registry keys for Office 32/64 add-in installer

I'm building an add-in installer for Microsoft Office. The AI package is defined as 32 bit and activates the add-in (which is 32 and 64 bit compatible) for All Users via the HKLM hive of the registry.

Acording to this Microsoft Article, the bitness of the Office application determines which of these two locations it looks at when activating add-ins for All Users:

MSO32 bit on WIN64 bit => HKEY_LOCAL_MACHINE\Software\WOW6432Node\...
MSO64 bit on WIN64 bit => HKEY_LOCAL_MACHINE\Software\...

Hence the add-in is tied to the bitness of Office, not to the bitness Windows and hence the AI package definition.

What I would like to do is create duplicate keys in both locations, whenever installing this 32-bit package on Wind64. How can I achieve that?
I live, breathe and sleep PowerPoint automation, so you don't have to!
https://brightcarbon.com
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Create duplicate HKLM registry keys for Office 32/64 add-in installer

Hello Jamie and welcome to Advanced Installer forum,

Due to the number of user who've been asking for this, I have created a How-To in which I explain how this can be done. Please have a look over it here:

Install Office AddIn based on Office bitness

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jamie.Garroch
Posts: 8
Joined: Wed Jan 29, 2020 8:56 pm
Contact: Website Twitter

Re: Create duplicate HKLM registry keys for Office 32/64 add-in installer

Oh my goodlness. I searched for ahes for a post like that. Thank you SO much Catalin. I'm trying it out now with a PowerPoint application add-in (as oposed to a VSTO one).
I live, breathe and sleep PowerPoint automation, so you don't have to!
https://brightcarbon.com
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Create duplicate HKLM registry keys for Office 32/64 add-in installer

You are always welcome, Jamie!

I am really glad this was of help for you.

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

Return to “Building Installers”