Registering AddIns

Registering AddIns

Anonymous
Not applicable
346 Views
3 Replies
Message 1 of 4

Registering AddIns

Anonymous
Not applicable
I have tried to register my AddIns on different computers, and I have found that "regasm.exe myaddin.dll" will not work. I need to use "regasm.exe /codebase myaddin.dll". This works, but it wil produce a errormessage too.

(I tried the good old regsvr32.exe, but that did not work either...)

"Registering an unsigned assembly with /codebase ..."

I am pretty new to VB .NET, so can anybody please tell me how to create a signed assembly? OR, is there a better/easyer way to get my AddIns registered?

I also have trouble unregistering my addin, probably same reason...

Ronny
0 Likes
347 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Hi,

first of all at the moment I don't code with VB.net, I use the good old VB6 because of the similarity to VBA.

But as far as I know, "regasm.exe" registers a .NET-assembly like "regsvr32.exe" does it for normal DLL's.

Does the other computer have the same .NET version installed as the computer you build the add-in.dll ?

What error comes when you use "regasm.exe add-in.dll" ? This should work.
I don't know for what the "regasm.exe add-in.dll /codebase" (that's the right order) is good for.
Always try "regasm.exe add-in.dll /verbose" or "regasm.exe add-in.dll /codebase /verbose" to get a more detailed output of what "regasm.exe" does and post it here.

You know "regasm.exe" or "regsvr32.exe" only registers the DLL to Windows. You have to register it to Inventor also, to let Inventor know, that this DLL is an Add-In (see API help for details).

CU,
Guido
0 Likes
Message 3 of 4

Anonymous
Not applicable
I use VB.net because of the possibilities in uning the new components like the notifyicon and other "cool stuff".

Yes, the other computers have the same version of .net as my coding computer.

If I use regasm.exe add-in.dll I get no error messages, but Inventor does not load the addIn. If I use /codebase it works but I cet a error, or warning, saying that using /codebase on a unsigned assembly is "not very wise" (I do not remember the exact words, I sit on my home PC now). I am not shure it is something to worry about, though... Actually I think the /codebase is the right way to do it, I just need to do something else too...???

Or, perhaps it is best to ure the /regfile:regfile.reg option and then just merge the reg-file into the registry???

I need to test some more, but if anyone have a easy solytion, then please let me know.
I have found some information about signing assemblies, this might be the ansver.
http://msdn2.microsoft.com/en-us/library/aa719592(VS.71).aspx
0 Likes
Message 4 of 4

Anonymous
Not applicable
Using VB.Net, you should only have to use regasm,
if you use the templates supplied by Autodesk. There
is a module in the templates named AddInRegistration.vb
that handles the stuff you used to put in a seperate
reg file. Don't know anything about the /codebase thing
though. But I also know if you don't use signed assemblies
(maybe even if you do), you'll want to use a code
obfuscator with .net, unless you don't care if anyone
decompiles your code.

Bob S.

Ruffen wrote:
0 Likes