guypb
Posts: 28
Joined: Thu Dec 18, 2008 5:16 pm

Registering a DLL for Excel x64

I have a dll which will work for both 64bit & 32bit Excel.
I have it set to autoregister and have added the type library.
It installs lovely on 32 bit, but whilst it installs and "so say" registers on 64 bit, it doesn't work in Excel.
I can then manually register the file using 64bit REGASM and it starts working.

I changed my advanced installer package type to x64 and it still didn't register correctly.

How do i create a package that knows which version of regasm to use for both 32bit & 64bit - is it not a standard feature of autoregister?
guypb
Posts: 28
Joined: Thu Dec 18, 2008 5:16 pm

Re: Registering a DLL for Excel x64

OK so I found the external tools - how do I specify one for 32bit and one for 64 bit?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Registering a DLL for Excel x64

Hello,

You can try to use both regasm versions (32-bit and 64-bit) to generate registry files and compare them:
-> if the files are different, you can import those files in the Registry page and condition their installation (How do I install resources based on the Operating System version?)
-> if the files are not different, simply add two .DLLs in the Files and Folders page(How do I install two files with the same name in the same folder?) and set one's component with "64-bit Component" option from the Organization page (press F8 key while the file is selected in the Files and Folders page)

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
guypb
Posts: 28
Joined: Thu Dec 18, 2008 5:16 pm

Re: Registering a DLL for Excel x64

I've tried your suggestions - which make sense - but I can't get the dll to register or code base on the 64bit side. I must be missing something simple.
Is it to do with the COM side and the CLSID that creates?
guypb
Posts: 28
Joined: Thu Dec 18, 2008 5:16 pm

Re: Registering a DLL for Excel x64

To clarify, I can't seem to add "auto register file" when not in the system folder.
guypb
Posts: 28
Joined: Thu Dec 18, 2008 5:16 pm

Re: Registering a DLL for Excel x64

OK - to further clarify, I have got round all the setting up issues.
I have the 2 folders, both contain the dll & tlb. One folder is set at 64 bit, one not. Both dlls are set to auto-register.

When I install however it always appears to register as 32 bit, not 64 bit. I have no idea what I am doing wrong!!!
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: Registering a DLL for Excel x64

Hi,

I'm not sure why the dll is not registered as 64 bits.
Please make sure the component DLL belongs to is marked as "64-bit Component" from the Organization page.
If you still are encountering this behavior, please send us the aip file and a verbose log to support at advancedinstaller dot com so we can investigate them.

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”