473,387 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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/de...erProperty.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

Nov 22 '05 #1
2 4157
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

"Takuya Matsumoto" <ad*************************************@sakaecorp .co.jp>
wrote in message news:uI****************@TK2MSFTNGP12.phx.gbl...
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/de...erProperty.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


Nov 22 '05 #2
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


"Takuya Matsumoto" <ad*************************************@sakaecorp .co.jp>
wrote in message news:ub**************@TK2MSFTNGP11.phx.gbl...
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

"Takuya Matsumoto" <ad*************************************@sakaecorp .co.jp> wrote in message news:uI****************@TK2MSFTNGP12.phx.gbl...
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/de...erProperty.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


Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stangonline.com | last post by:
Ok, im familiar with typical troubleshooting of this type on problem, but I do not do any programming myself. Im hoping you guys can help me with an install problem that I am having. I have an...
2
by: Takuya Matsumoto | last post by:
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...
2
by: mtpollack | last post by:
Hi, I have an application that depends, for successful deployment, on a COM dll that needs to be registered on the user's machine. How do I include te registration of this dll in my setup...
2
by: George C | last post by:
Hi, What's the difference between C# 2002 Standard and Professional versions? I am currently using C#.net 2002 Standard Edition and would like to know how to create deployment / installation...
4
by: Howard Kaikow | last post by:
When I build a setup project, the dependency in the setup project is tied to the version in which it was built. Is there a way to build a setup project that can be used in both versions of the...
9
by: Simon Jefferies | last post by:
Hello, How can I register my own .NET DLL through a setup project? In other words perform a regasm on a dll? Thanks In Advance Regards Simon Jefferies Tools Programmer, Headfirst...
5
by: Nathan | last post by:
I have a VB project with a setup project in the same solution. Each time I rebuild the setup project, I change the Version number in the setup project's properties. Is there any way for my VB...
0
by: unknown; | last post by:
hi i've got a problem about howto register a COM in a Visual Studio 2005 setup-project. this is the situation: i've got a project (unmanaged C++ ATL that will generate a COM dll as result)....
1
by: =?Utf-8?B?UmljaA==?= | last post by:
I use "Click Once" Deployment from VS2005. Works like a charm. I have to deploy a console app and an MS Access ADP. The console app invokes the ADP. I copy the ADP to the application files to be...
2
by: linuxfedora | last post by:
I have written a C# program which has an activeX control (abc.ocx) in Visual Studio 2005, and used the setup and deployment project to create an setup.exe and setup.msi that act as an installer. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.