Doesn't work in Win7 x64

Add-in Express™ Support Service
That's what is more important than anything else

Doesn't work in Win7 x64
Win7 x64 + Outlook 2010 
Lucas Sanches




Posts: 18
Joined: 2010-12-30
Hi, I have an environment that's: Windows 7 x64 with Outlook 2010 and OSM doesn't work.

I tried with Outlook 2007 an it's work.

Here is my code:



STDMETHODIMP CConnect::OnStartupComplete (SAFEARRAY ** /*custom*/ )
{
        //I don't get any trouble here
	this->mSecurityManager.CreateInstance("AddInExpress.OutlookSecurityManager"); 
	return S_OK;
}



And...

void __stdcall CConnect::OnMailSend(IDispatch *Item, VARIANT_BOOL Cancel)
{
	try{
		if(this->mSecurityManager){
			this->mSecurityManager->PutDisableOOMWarnings(TRUE); 
			...
			this->mSecurityManager->PutDisableOOMWarnings(FALSE); 
		}else{
			throw "OSM not installed."; << Always go here
		}
	}catch( char *str )
	{
		GravaLog(str);
	}
}

Everytime I ran this code on a machine with Win7 x64 i get "OSM not installed".

I've got the latest version and unregistered the old OCX and register the new one.


If you need any more information pls tell me.

Thanks.
Posted 10 Sep, 2012 15:07:09 Top
Eugene Astafiev


Guest


Hi Lucas,

Do you develop a COM add-in or standalone application?

There is no need to register anything on the development PC. Instead, you need to register the security manager files on the end-user PCs. Please read more about this in the http://www.add-in-express.com/creating-addins-blog/2010/06/16/outlook-security-manager2010-deployment/ article on our technical blog.

Also please make sure that you use the x64 edition of the regsvr32.exe utility. Finally, did you register both files on the target machine (osmax64.ocx, secman64.dll)?
Posted 11 Sep, 2012 08:11:52 Top
Lucas Sanches




Posts: 18
Joined: 2010-12-30
Hi.

It's a COM add-in.

I'm not registering on development PC, I'm trying to register in a test environment(the same of my customer).


Also please make sure that you use the x64 edition of the regsvr32.exe utility.

Where do I find x64 version of regsvr32? Under SysWOW64? Do I need unregister everything and register again with the x64 version?

Yes, I registered both.
Posted 11 Sep, 2012 09:07:14 Top
Eugene Astafiev


Guest


Hi Lucas,

Please use the x64 based regsvr32.exe utility which is located in the C:\Windows\System32\ folder. The SysWOW64 folder provides the x86 edition of the regsvr32.exe utility.
Posted 11 Sep, 2012 10:08:05 Top
Lucas Sanches




Posts: 18
Joined: 2010-12-30
Yes, I tried with this version before.

The UAC has something to worry? It's active on computer.
Posted 11 Sep, 2012 10:13:22 Top
Eugene Astafiev


Guest


Hi Lucas,

Do you run a command line with administrative permissions?
Posted 11 Sep, 2012 10:37:22 Top
Lucas Sanches




Posts: 18
Joined: 2010-12-30
Yes, without administrative permission gives me an error while registering.
Posted 11 Sep, 2012 11:28:27 Top
Eugene Astafiev


Guest


Hi Lucas,

Do you have Outlook 2010 x64 or x86 installed on the problematic PC?
Posted 11 Sep, 2012 11:48:38 Top
Lucas Sanches




Posts: 18
Joined: 2010-12-30
x86...

My windows is x64, do I have to use x86 version of OSM?
Posted 11 Sep, 2012 11:53:28 Top
Eugene Astafiev


Guest


Hi Lucas,

Yep. The http://www.add-in-express.com/creating-addins-blog/2010/05/06/outlook-deployment-bitness-regsvr32/ article states the following:

You register 64-bit files for Outlook 2010 64-bit only (supported by .net and ActiveX editions only), for other versions you register 32-bit ones.


Moreover, you need to use the x86 edition of the regsvr32.exe utility for registering the Security Manager files on the target PC.
Posted 11 Sep, 2012 12:06:13 Top