marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Registering "Any CPU" Assembly on both 32 and 64bit registry

Hi There,

I have an C# assembly that is compiled as "Any CPU". In my installer I have a mixed 32/64 installation, where some components run in 32bit processes and some run in 64bit processes. The problem right now is: This assembly is required by both components.. So i need to register it using the 32 and 64bit "regasms"
If I just select the DLL and choose "register assembly for interop" on advanced installer, it will register it for 32bit, but wont register for 64bit.. if i create a custom action to call regasm from the 64bit framework, it fails the call since the installer loads as 32bit process.

How can i register this assembly in Advanced Installer, for both modes so all my components would work properly?


Thanks,
Marcelo
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Registering "Any CPU" Assembly on both 32 and 64bit regi

Hi Marcelo,

Here're a couple of related threads to help you with this:
Regasm for COMInterop assembly on 64-bit PC
Registering a DLL for Excel x64
if i create a custom action to call regasm from the 64bit framework, it fails the call since the installer loads as 32bit process.
As described in the above thread or our How do I launch a CMD or BAT file? article, you can try to use the "Launch file or open URL Using a 64-bit Launcher" predefined custom action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”