Problems to register .NET DLLs - 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!

debian69
Posts: 9
Joined: Mon May 02, 2011 3:57 pm

Problems to register .NET DLLs

Hi folks,
I have a problem to build an MSI Package containing some .Net (Version 2) DLLs which have to get registered automatically by the package. I used the Properties / Registration Dialogue on the Files and Folders Page to mark them for Auto Registration / Register .Net Assembly with Synchronization Option "Disabled". Every time I did it like this the Advanced Installer (Version 9.4) replied "The selected file could not be registered". What did I do wrong? I think it's no problem of the DLLs, because I used a script for registration up to now and had no problems. The script calles the regasm-Tool like this:

Code: Select all

set DOTNETDIR=C:\Windows\Microsoft.NET\Framework\v2.0.50727
set REGASM=%DOTNETDIR%\regasm.exe
%REGASM% TSystems.Agev.Mmi.Bookmark.dll 
...
In an try and error attempt I switched the Synchronization Option to "Buildtime". That was ok for the installer until I tried to build the package. It's no surprise that it generated the error message "The xy.dll could not be registered" at build time. Surprisingly the Advanced Installer built the package after I switched the Synchronization Option of every DLL to "Disabled" (then I got the known error message) and back to "Buildtime". Do you have an explanation for this strange behaviour? Is there any solution to these problems?
By the way: the 'trick' only works for one built. Next time I started the Advanced Installer, I got the error message again.

Best regards,
Thorsten Baumeister
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problems to register .NET DLLs

Hi Thorsten and welcome to Advanced Installer forums,

Here's a Auto register assembly similar post that applies as answer to this as well.

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

Return to “Common Problems”