Registering dll's and tlb's on Win10 64 bit - Advanced Installer Community
TomB1345634
Posts: 1
Joined: Wed Mar 22, 2023 2:09 pm

Registering dll's and tlb's on Win10 64 bit

Hello,

We have a number of .NET dll's and tlb's registering correctly when the installer is made for Win10 32 bit. However they fail to register when we run the 64 bit version of our installer on a Win10 64 bit machine.

The .NET dll's and tlb's use the auto register option found in the Files and Folders section of Advanced Installer:
dll
Image

tlb
Image

I've searched high and low and I've found a few plausible solutions:

1. Change Advanced Installers path to regasm.exe from the 32 bit path to the 64 bit. This has also failed.

2. Use custom actions "Launch File" to register the dll's and tlb's manually using regasm.exe

Properties:

Code: Select all

File to launch: "[WindowsFolder]\Microsoft.NET\Framework64\" 
Command Line: /codebase "[#pathto.dll]"  /tlb:"[#pathto.tlb]"
Hide program's window: checked
Run as adminL checked
Execution Time

Code: Select all

Immediately: checked
Execution Time

Code: Select all

Wait for custom action to finish before proceeding: checked
Execution Stage Condition

Code: Select all

Install:Checked
Condition: O64 = "TRUE" AND ((&BaseComponents = 3) AND NOT (!BaseComponents = 3))
The custom action appears after the "Finish Execution" predefined actions.

The custom action solution works however it is not suitable solutions for our client. They are a large business and deploy software using SCCM and running a power sheel script of:

Code: Select all

msi.exe [package] /qn
this means the prompts for elevated permissions also result in "No".

We have been using Advanced Installer for a long time now but debating on going back to basics with WIX Toolset to overcomes this single issue.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Registering dll's and tlb's on Win10 64 bit

Hello Tom and welcome to our forums,

I'm assuming that manually registering those DLL files works just fine - please correct me if I'm wrong.

If possible, could you please zip two DLLs and two TLB files and forward them to me by email at support at advancedinstaller dot com so I can further investigate this?

If possible, please upload them somewhere and forward me a download link as sending DLLs as an attachment might get the email blocked.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”