Page 1 of 1

Cannot register Codebase Dlls

Posted: Thu Aug 03, 2017 9:24 am
by Scad
Up to now I could not find a way to register my assembly-Dll codebase, did I miss anything?

As a workaround I wrote myself a little .exe that registers my Dll (2 classes within) and a second one to unregister after uninstallation and used them in commands.
It just provides the funcionality of Regasm.exe (64bit) with codebase option.

Thanks,

Scad

Re: Cannot register Codebase Dlls

Posted: Tue Aug 15, 2017 6:16 am
by Leo
You can find the feature to register assembly-Dlls on the page Register \ Others - .NET Assembly.

Re: Cannot register Codebase Dlls

Posted: Tue Aug 15, 2017 6:58 am
by Scad
I know this, but there is no possibility to register codebase! I've already tested every option in there.

May I just add the entry from msdn (https://msdn.microsoft.com/de-de/librar ... .110).aspx):
Option:
/codebase
Creates a Codebase entry in the registry. The Codebase entry specifies the file path for an assembly that is not installed in the global assembly cache. You should not specify this option if you will subsequently install the assembly that you are registering into the global assembly cache. The assemblyFile argument that you specify with the /codebase option must be a strong-named assembly.

Inside Register \ Others there is no possibility to do so, register as ".NET assembly" only using the Dll-filename doesn't work this way. And it seems that I can't give it any options there.
I tryed to add to the file: "<InstallDir>\MyProgrammDll.dll /codebase" but that also doesn't work.

By the way: I'm using Windows 10 on my current workplace and if I register manually by correctly using the Regasm.exe with the options added, my dll works fine.

So I hope my question is a bit more clear now.

Re: Cannot register Codebase Dlls

Posted: Wed Sep 19, 2018 1:47 pm
by Leo
New version of Actual Installer supports registration of .Net assembly with codebase.
Read more:
http://www.actualinstaller.com/help/deploy-dll.html