neoswarm
Posts: 15
Joined: Tue Dec 04, 2012 10:41 pm

x64 or x86: for windows and Outlook

Okay,

I'm attempting a multi-user VSTO add-in for Office 2007/2010

I have it working by selecting 'multi user install' in Install Parameters tab for any MIXED installations (64bit Windows and 32 bit Outlook)

However....the registry doesn't go in the right place for both 64bit Windows and 64bit Outlook.

I read this: http://www.advancedinstaller.com/user-g ... istry.html which is close, but not quite what i'm looking for.

In the case where both versions are 64bit the registry I need to update looks like this:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\add-in ID

(currently and the wrong location it's being placed at:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\Outlook\Addins\add-in ID )

thanks!
mike
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: x64 or x86: for windows and Outlook

Hi Mike,

I'm not sure why the article you mentioned is not quite a solution for your problem.

Did you set the conditions mentioned there (NOT VersionNT64 and VersionNT64)?

I tried to reproduce the behavior but everything worked well to me. Can you please give us more details about your scenario?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
neoswarm
Posts: 15
Joined: Tue Dec 04, 2012 10:41 pm

Re: x64 or x86: for windows and Outlook

I have a 32-bit package type installation....

it's a VSTO 4.0 Outlook add-in (mixed 32/64), so I don't need to handle anything other than the registry.

registry locations must match the version of Outlook (x86/64), not necessarily the OS.

In the case where both OS and Outlook have the same Bitness (both OS and Outlook are either 64bit or 32bit):
the registry I need to update looks like this:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\add-in ID
NOTE: if BOTH outlook AND Windows are 32 bit or 64 bit...it has IDENTICAL key/values

if it's a mixed (64bit OS and 32bit Outlook)
then the registry looks like:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\Outlook\Addins\add-in ID )

My installation works for 32bit and mixed:

My installation does NOT work for 64bit OS and 64bit Outlook, which is placing the registry at:
In the case where both versions are 64bit the registry I need to update looks like this:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\add-in ID

(currently and the wrong location it's being placed at:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\Outlook\Addins\add-in ID

All the values are identical on 32/64.....just the key Wow6432Node that needs to be added/removed based on 32 or 64 bit installation.

Hm, so i think I need to get the Bitness of Outlook in the registry, set it as a property...
if it's "x64", then override my existing registry settings and set the key/values at:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\add-in ID

Am I making sense?
thanks,
mike
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: x64 or x86: for windows and Outlook

Hello Mike,

You can see my response from "check for 64 bit Outlook property" thread.

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

Return to “Building Installers”