I'm building an Outlook add-in that runs on a 64-bit OS with a 64-bit Outlook.
However, I'm unable to get the right pointer size in order to trigger the RedemptionLoader code to load the 64-bit DLL file... It always gave me a pointer size of 4.
I've read the following and also followed their suggestions, but no go...
Why is 'IntPtr.size' 4 on Windows 64 bit?
IntPtr on a 32-bit OS and UInt64 on a 64-bit OS
So in my project, a C# project in Visual Studio 2015, I've set it to Any CPU, and then in my 64 bit WiX Setup project, I've made sure that it has the x64 as the $(Platform). Like so,
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
When I try to load my add-in and dump out the pointer size "Pointer size? " + IntPtr.Size
, it just prints 4 instead of the 8 that I'm expecting...
What else am I missing...?
Windows 10 64 bit
Office 365, Outlook 64 bit
Both OS and Outlook are 64 bit:
Even during the installation of the add-in, Add-in Express detected and installed as the 64-bit version without throwing out any error...
Add-in Express Registrator Log File: 01/11/2017 15:36:47
Installation directory: C:\WINDOWS\Installer\
Registrator version: 8.4.4395.0
Operating System: Microsoft Windows 10 Professional (build 14393), 64-bit
Process Owner: System
Command Line: "C:\WINDOWS\Installer\MSI5FB0.tmp" /install="C:\Program Files\Blah\Blah.dll" /log=%RoamingAppDataFolder%/Blah
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: System
UAC (User Account Control): On
--------------------------------------------------------------
15:36:47 0448 Starting the add-in registration process.
15:36:47 0448 Loading mscoree.dll
15:36:47 0448 Success.
15:36:47 0448 .NET Framework installation directory:
15:36:47 0448 The latest version of .NET Framework: 'v4.0.30319'
15:36:47 0448 Loading CLR: v4.0.30319.
15:36:47 0448 Calling CLRCreateInstance method.
15:36:47 0448 Success.
15:36:47 0448 Calling GetRuntime method.
15:36:47 0448 Success.
15:36:47 0448 Checking if the hosting API of .NET Framework v4.0 beta is installed.
15:36:47 0448 The hosting API is up to date.
15:36:47 0448 Calling GetInterface method for the CorRuntimeHost interface.
15:36:47 0448 Success.
15:36:47 0448 Starting CLR...
15:36:47 0448 Success.
15:36:47 0448 Getting the CLR version.
15:36:47 0448 The CLR v4.0.30319 has been initialized successfully.
15:36:47 0448 Creating a new domain setup.
15:36:47 0448 Success.
15:36:47 0448 The 'shadow copy' is disabled.
15:36:47 0448 Creating a new application domain.
15:36:47 0448 Success.
15:36:47 0448 Getting the base directory for the domain.
15:36:47 0448 Success. The directory is 'C:\Program Files\Blah\'.
15:36:47 0448 Searching for the Add-in Express core library.
15:36:47 0448 Success. The 'AddinExpress.MSO.2005.dll' file is found.
15:36:47 0448 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
15:36:47 0448 Assembly identity is 'AddinExpress.MSO.2005'.
15:36:47 0448 Success.
15:36:47 0448 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
15:36:47 0448 Success.
15:36:47 0448 Calling the managed registration procedure (DISPID = 1610743823).
15:36:48 0448 Registration success.
15:36:48 0448 The add-in registration process is completed with HRESULT = 0.