register assembly not working

Got a problem you cannot solve? Try here.
SteveRing
Posts: 42
Joined: Wed Jan 13, 2010 3:24 pm
Location: United States

Re: register assembly not working

Post by SteveRing »

I don't think I have one. I have 3rd party assemblies, but I don't know what language they are in, or if they are supposed to register as COM objects. I could write a small one and send the dll and/or project to you.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: register assembly not working

Post by giaviv »

SteveRing,

That definitely could work. Type up an assembly in C++ and send the solution over to me at support at installaware.com
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
SteveRing
Posts: 42
Joined: Wed Jan 13, 2010 3:24 pm
Location: United States

Re: register assembly not working

Post by SteveRing »

I sent you the project. The email also has some vb code to test the registration.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: register assembly not working

Post by giaviv »

Dear SteveRing,

I compiled the assembly you sent me and registered it with IA - I then ran the VB code and I was able to use the assembly, namely it was installed into the GAC. Is this not the case on your end?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
SteveRing
Posts: 42
Joined: Wed Jan 13, 2010 3:24 pm
Location: United States

Re: register assembly not working

Post by SteveRing »

The last project targeted the 3.5 framework instead of 4.0. I sent you a new project, with an installer, that doesn't register on my machine (at least via the installer).
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: register assembly not working

Post by giaviv »

Dear SteveRing,

Thank you. We are now looking into this - I will keep you updated.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
SteveRing
Posts: 42
Joined: Wed Jan 13, 2010 3:24 pm
Location: United States

Re: register assembly not working

Post by SteveRing »

any luck with this?
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: register assembly not working

Post by giaviv »

Dear SteveRing,

Are you trying to register the assembly to your gac? By calling regasm /codebase you are NOT registering the assembly into the GAC, but registering it from its current location.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
SteveRing
Posts: 42
Joined: Wed Jan 13, 2010 3:24 pm
Location: United States

Re: register assembly not working

Post by SteveRing »

I'm trying to register an assembly in the gac. I'm not using /codebase. Did the example I sent you (the second one using the 4.0 framework) work for you? As you can see in the msi code in the installer example that was with it, it doesn't use /codebase.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: register assembly not working

Post by giaviv »

Dear SteveRing,

I compiled the .NET 4 project that you sent me. The assembly will successfully register to the GAC using the gacutil command, but it wont be loaded when reflected on. The same thing happens when I register it with IA. What am I missing here?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
SteveRing
Posts: 42
Joined: Wed Jan 13, 2010 3:24 pm
Location: United States

Re: register assembly not working

Post by SteveRing »

As far as I know you're not missing anything. You've duplicated the problem. The assembly gets installed to the GAC (GAC_32) and will work as a .net assembly, but it doesn't get registered as a com object (regasm).

You can open a dos window (as an admin) go to the correct folder under GAC_32 and run regasm, without codebase, by hand and it will work.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: register assembly not working

Post by giaviv »

Yes, you are right in that it successfully installed to the GAC. However, if you run regasm AFTER registering your assembly to the GAC, regasm fails (just like IA)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
SteveRing
Posts: 42
Joined: Wed Jan 13, 2010 3:24 pm
Location: United States

Re: register assembly not working

Post by SteveRing »

I didn't include c++ runtime 10 in the installer because I assumed you'd already have it installed. If not, it's a required runtime. Is that the problem?
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: register assembly not working

Post by giaviv »

Dear SteveRing,

That isn't the problem - I indeed have VC++ 2010 runtimes installed. Are you experiencing things any differently? Are you able to call regasm on an assembly you registered to the GAC with IA / gacutil?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply