Error registering 32 bit dll for.NET interop on 64 bit W7 - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Error registering 32 bit dll for.NET interop on 64 bit W7

I have built a project which works without a problem on a 32 bit operating system (Windows 7).

When I try it on Windows 7 64 bit I get the following error: -
MSI (s) (40:E0) [16:53:51:693]: WIN64DUALFOLDERS: Substitution in 'C:\Program Files (x86)\PhoneWare\OPD\CommsWareConsoleClient.exe' folder had been blocked by the 1 mask argument (the folder pair's iSwapAttrib member = 0).
MSI (s) (40:E0) [16:53:51:693]: Executing op: ComponentRegister(ComponentId={C64DCCAB-29F1-49C5-91CC-BB053ED7598D},KeyPath=C:\Program Files (x86)\PhoneWare\OPD\ACOOPDInterface.dll,State=3,,Disk=1,SharedDllRefCount=0,BinaryType=0)
MSI (s) (40:E0) [16:53:51:693]: WIN64DUALFOLDERS: Substitution in 'C:\Program Files (x86)\PhoneWare\OPD\ACOOPDInterface.dll' folder had been blocked by the 1 mask argument (the folder pair's iSwapAttrib member = 0).

The two applications trying to communicate through interop do not do so on teh 64 bit machine. In the 32 bit machine this works great.

What can I do about this please?

Regards,
John
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Error registering 32 bit dll for.NET interop on 64 bit W

A colleague ran the following (which we did in WISE install in a batch file): -
With the MSI 018 install back in place (CCC - > OPD searching broken)

I copied
Regasm.exe
Regasm.exe.config
From the .Net framework 2.x directory on the C drive, into the Phoneware OPD directory and ran :

C:\Program Files (x86)\PhoneWare\OPD>RegAsm.exe ACOOPDInterface.dll /tlb:ACOOPDInterface.tlb > regasmconfig.log

The 'link' between programs now works through the registered DLL I have no idea why but the tlb is irrelevant.

John
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Error registering 32 bit dll for.NET interop on 64 bit W

I got around this by creating a Custom Action and running RegAsm to register the dll.

Should not have had to do this though as the tool should have registered the dll for me.

No worries.

John

Return to “Common Problems”