Registering COM in VS.NET C# Standard Version Setup Project

T

Takuya Matsumoto

Greetings to all,

I am creating a setup project for a COM component I created in C#, but I
can't get the component to be registered in the client system.
What I would like to achieve is an equivalent of manually registering it
with "gacutil.exe" and then with "regasm.exe".

I went though the support documents and read the below, but the options I
have are differenct:
http://msdn.microsoft.com/library/d...en-us/vsintro7/html/vxgrfRegisterProperty.asp

Could it be because I only have C# 2003 Standard Version?
The project I am using is a "Setup Project", not "Deployment Project"as the
latter is not available on the Standard Version.
The options I have under "register" are "vsdraCOM" and
"vsdraCOMRelativePath" of which I have tried both.

Any thoughts?

Thanks!

Takuya
 
T

Takuya Matsumoto

Further to my previous post, I've been trying to figure it out and something
strange is happening with regasm.exe.

What I did was create a registry file by using:
regasm control.dll /reg:control.reg
then import the reg file to the Setup Project.

I then installed the control by running the installer, but this doesn't seem
to do the job.
So,I manually registered it using regasm whithout uninstalling the
installer, then the control works happily.

It seems like the regasm does more work when it registers a file than what
it creates in the reg file.

Is it possible?

Takuya
 
T

Takuya Matsumoto

Again further to my previous post, I did more tests/experiments.

I checked the registry after installing with the installer, and the some of
the entries are there.
It seems like the entries created when I used the "regasm control.dll
/regfile:control.reg" are registered with the vsdraCOM option in the
"register" item of the Setup Project, but the actual application still does
not run.
When I do "regasm control.dll" manually, it then works perfectly (and the
gacutil).

I'm lost as to where this difference in the registration comes from.
Also, I would really like to find out how the control.dll can be registered
into Global Assembly Cache automatically using the installer.

Your help is very much appreciated.

Cheers,

Takuya
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top