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

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

Wed Jan 29, 2020 9:12 pm

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: 4345
Joined: Wed Jun 13, 2018 7:49 am

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

Thu Jan 30, 2020 9:02 am

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: 6
Joined: Wed Jan 29, 2020 8:56 pm
Contact: Website Twitter

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

Thu Jan 30, 2020 3:53 pm

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: 4345
Joined: Wed Jun 13, 2018 7:49 am

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

Mon Feb 03, 2020 8:40 am

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”