473,378 Members | 1,429 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,378 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 15 '05 #1
2 6070
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 15 '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 15 '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. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.