PDA

View Full Version : 64bit component registered in WOW6432Node



wiggers
11-26-2012, 10:34 AM
I have a COM DLL (not the one in other post) that I added to the IS Project using the Component Wizard for installation in the GAC. I flagged it as 64bit as it needs to be registered in the 64bit part of the registry. After installation it appears in HKEY_CLASSES_ROOT\WOW6432Node...

When I install manually I use regasm from C:\Windows\Microsoft.NET\Framework64\v2.0.50727 and I have put that path in IS's Tools > Options > .NET for 64bit components.

Why does it get registered in the wrong part of the registry?

wiggers
11-28-2012, 10:11 AM
The build log shows:


Embedding file C:\Program Files (x86)\InstallShield\2012Spring\Redist\Language Independent\x64\ISBEW64.exe into isregsvr.dll

But the components flagged as 64bit still don't get registered properly.

sharon
11-29-2012, 08:49 AM
Hi,

If a .net dll is compiled as MSIL or 64 bit - and component is marked as 64 bit, the registration should be done to the 64 bit part of the registry.

If a .net dll is compiled as 32 bit - even if the component is marked as 64 bit, the registration should be done to the 32 bit part of the registry.

Good Luck,
Sharon.

wiggers
11-29-2012, 09:36 AM
Thanks. The component was MSIL and flagged 64bit, but still ended up being registered as 32bit. I have now deleted and recreated the Components using the wizard and it now seems to be working, but I have no idea why it didn't first time.