By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,165 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,165 IT Pros & Developers. It's quick & easy.

setup creation

P: n/a
Hi I have made a windows service in C#.Net
Now I want to create a setup of this service
http://www.codeproject.com/dotnet/si...owsservice.asp
I read this article
Now my service is also using com dll
I also want that dll to be registered on server(or computer) on which that
service will be installed
How can i do that.I am using visual studio.net 2003
Feb 8 '06 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Hello Ankit,

Register the dll with regsvr32 command. It will work fine.

Open command prompt and type
regsvr32 dllpath+dllname

Thanks,
Kris

Feb 8 '06 #2

P: n/a
Hi Ankit,
Welcome to MSDN Newsgroup!

If you want to register COM DLL with a specified tool, RegSvr32.exe will
help you.
You could get more information about RegSvr32.exe from the following site:
Title: Regsvr32
URL:http://technet2.microsoft.com/Window...1c026-0b9d-43c
4-a38c-a03b508204d91033.mspx

If you want to register COM DLL programmatically in your application code,
you could invoke DllRegisterServer from COM DLL directly. DllRegisterServer
function exposed by COM DLL will help us to register DLL on the machine. If
you need sample code about this, please feel free to tell me and I'll send
it to you.
I hope the above information is helpful for you. If you have any questions
or concerns, please let me know. Thanks for your understanding and have a
nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
Subject: setup creation
Date: Wed, 8 Feb 2006 17:49:24 +0530
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <um**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-upwest-117.11.246.61.touchtelindia.net 61.246.11.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.languages.csharp:384396
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi I have made a windows service in C#.Net
Now I want to create a setup of this service
http://www.codeproject.com/dotnet/si...owsservice.asp
I read this article
Now my service is also using com dll
I also want that dll to be registered on server(or computer) on which that
service will be installed
How can i do that.I am using visual studio.net 2003


Feb 9 '06 #3

P: n/a
I have been given comdll in release mode and I make
C# windows service which is using that.
As i register that on my system using regsvr32 my service works fine
But now I want to create setup of my service which should automatically
register that dll on system on which service will be installed
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:4W*************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,
Welcome to MSDN Newsgroup!

If you want to register COM DLL with a specified tool, RegSvr32.exe will
help you.
You could get more information about RegSvr32.exe from the following site:
Title: Regsvr32
URL:http://technet2.microsoft.com/Window...1c026-0b9d-43c
4-a38c-a03b508204d91033.mspx

If you want to register COM DLL programmatically in your application code,
you could invoke DllRegisterServer from COM DLL directly.
DllRegisterServer
function exposed by COM DLL will help us to register DLL on the machine.
If
you need sample code about this, please feel free to tell me and I'll send
it to you.
I hope the above information is helpful for you. If you have any questions
or concerns, please let me know. Thanks for your understanding and have a
nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
Subject: setup creation
Date: Wed, 8 Feb 2006 17:49:24 +0530
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <um**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-upwest-117.11.246.61.touchtelindia.net
61.246.11.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:38439 6
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi I have made a windows service in C#.Net
Now I want to create a setup of this service
http://www.codeproject.com/dotnet/si...owsservice.asp
I read this article
Now my service is also using com dll
I also want that dll to be registered on server(or computer) on which that
service will be installed
How can i do that.I am using visual studio.net 2003

Feb 9 '06 #4

P: n/a
Hi Ankit,
Thanks for your update!

In this scenario, I suggest you add relevant code in your service to
register COM dll. You just only use LoadLibrary and GetProcAddress API to
invoke DllRegisterServer exposed from COM DLL. The DllRegisterServer
function will help us to register the COM DLL on the machine.

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
References: <um**************@TK2MSFTNGP12.phx.gbl> <4W*************@TK2MSFTNGXA01.phx.gbl>Subject: Re: setup creation
Date: Thu, 9 Feb 2006 12:00:29 +0530
Lines: 67
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <OA**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-har-194.148.246.61.touchtelindia.net 61.246.148.194
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.languages.csharp:384663
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

I have been given comdll in release mode and I make
C# windows service which is using that.
As i register that on my system using regsvr32 my service works fine
But now I want to create setup of my service which should automatically
register that dll on system on which service will be installed
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:4W*************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,
Welcome to MSDN Newsgroup!

If you want to register COM DLL with a specified tool, RegSvr32.exe will
help you.
You could get more information about RegSvr32.exe from the following site: Title: Regsvr32
URL:http://technet2.microsoft.com/Window...1c026-0b9d-43c 4-a38c-a03b508204d91033.mspx

If you want to register COM DLL programmatically in your application code, you could invoke DllRegisterServer from COM DLL directly.
DllRegisterServer
function exposed by COM DLL will help us to register DLL on the machine.
If
you need sample code about this, please feel free to tell me and I'll send it to you.
I hope the above information is helpful for you. If you have any questions or concerns, please let me know. Thanks for your understanding and have a
nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
Subject: setup creation
Date: Wed, 8 Feb 2006 17:49:24 +0530
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <um**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-upwest-117.11.246.61.touchtelindia.net
61.246.11.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:3843 96
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi I have made a windows service in C#.Net
Now I want to create a setup of this service
http://www.codeproject.com/dotnet/si...owsservice.asp
I read this article
Now my service is also using com dll
I also want that dll to be registered on server(or computer) on which thatservice will be installed
How can i do that.I am using visual studio.net 2003



Feb 10 '06 #5

P: n/a
I also want that when i am creating setup
there is a folder named database which contains two .cvd files.I want this
folder to be included in setup(that is it also gets copied where i am
running the setup)
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,
Thanks for your update!

In this scenario, I suggest you add relevant code in your service to
register COM dll. You just only use LoadLibrary and GetProcAddress API to
invoke DllRegisterServer exposed from COM DLL. The DllRegisterServer
function will help us to register the COM DLL on the machine.

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
References: <um**************@TK2MSFTNGP12.phx.gbl>

<4W*************@TK2MSFTNGXA01.phx.gbl>
Subject: Re: setup creation
Date: Thu, 9 Feb 2006 12:00:29 +0530
Lines: 67
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <OA**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-har-194.148.246.61.touchtelindia.net 61.246.148.194
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:38466 3
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

I have been given comdll in release mode and I make
C# windows service which is using that.
As i register that on my system using regsvr32 my service works fine
But now I want to create setup of my service which should automatically
register that dll on system on which service will be installed
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:4W*************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,
Welcome to MSDN Newsgroup!

If you want to register COM DLL with a specified tool, RegSvr32.exe will
help you.
You could get more information about RegSvr32.exe from the following site: Title: Regsvr32
URL:http://technet2.microsoft.com/Window...1c026-0b9d-43c 4-a38c-a03b508204d91033.mspx

If you want to register COM DLL programmatically in your application code, you could invoke DllRegisterServer from COM DLL directly.
DllRegisterServer
function exposed by COM DLL will help us to register DLL on the machine.
If
you need sample code about this, please feel free to tell me and I'll send it to you.
I hope the above information is helpful for you. If you have any questions or concerns, please let me know. Thanks for your understanding and have
a
nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
Subject: setup creation
Date: Wed, 8 Feb 2006 17:49:24 +0530
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <um**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-upwest-117.11.246.61.touchtelindia.net
61.246.11.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:38439 6
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi I have made a windows service in C#.Net
Now I want to create a setup of this service
http://www.codeproject.com/dotnet/si...owsservice.asp
I read this article
Now my service is also using com dll
I also want that dll to be registered on server(or computer) on which thatservice will be installed
How can i do that.I am using visual studio.net 2003


Feb 10 '06 #6

P: n/a
problem solved
by mistake take comdll in debug mode instead of release
sorry
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,
Thanks for your update!

In this scenario, I suggest you add relevant code in your service to
register COM dll. You just only use LoadLibrary and GetProcAddress API to
invoke DllRegisterServer exposed from COM DLL. The DllRegisterServer
function will help us to register the COM DLL on the machine.

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
References: <um**************@TK2MSFTNGP12.phx.gbl>

<4W*************@TK2MSFTNGXA01.phx.gbl>
Subject: Re: setup creation
Date: Thu, 9 Feb 2006 12:00:29 +0530
Lines: 67
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <OA**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-har-194.148.246.61.touchtelindia.net 61.246.148.194
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:38466 3
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

I have been given comdll in release mode and I make
C# windows service which is using that.
As i register that on my system using regsvr32 my service works fine
But now I want to create setup of my service which should automatically
register that dll on system on which service will be installed
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:4W*************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,
Welcome to MSDN Newsgroup!

If you want to register COM DLL with a specified tool, RegSvr32.exe will
help you.
You could get more information about RegSvr32.exe from the following site: Title: Regsvr32
URL:http://technet2.microsoft.com/Window...1c026-0b9d-43c 4-a38c-a03b508204d91033.mspx

If you want to register COM DLL programmatically in your application code, you could invoke DllRegisterServer from COM DLL directly.
DllRegisterServer
function exposed by COM DLL will help us to register DLL on the machine.
If
you need sample code about this, please feel free to tell me and I'll send it to you.
I hope the above information is helpful for you. If you have any questions or concerns, please let me know. Thanks for your understanding and have
a
nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
Subject: setup creation
Date: Wed, 8 Feb 2006 17:49:24 +0530
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <um**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-upwest-117.11.246.61.touchtelindia.net
61.246.11.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:38439 6
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi I have made a windows service in C#.Net
Now I want to create a setup of this service
http://www.codeproject.com/dotnet/si...owsservice.asp
I read this article
Now my service is also using com dll
I also want that dll to be registered on server(or computer) on which thatservice will be installed
How can i do that.I am using visual studio.net 2003


Feb 10 '06 #7

P: n/a
problem solved
thanks for help
"Ankit Aneja" <ef*****@newsgroups.nospam> wrote in message
news:uS*************@TK2MSFTNGP12.phx.gbl...
I also want that when i am creating setup
there is a folder named database which contains two .cvd files.I want this
folder to be included in setup(that is it also gets copied where i am
running the setup)
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,
Thanks for your update!

In this scenario, I suggest you add relevant code in your service to
register COM dll. You just only use LoadLibrary and GetProcAddress API to
invoke DllRegisterServer exposed from COM DLL. The DllRegisterServer
function will help us to register the COM DLL on the machine.

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
References: <um**************@TK2MSFTNGP12.phx.gbl>

<4W*************@TK2MSFTNGXA01.phx.gbl>
Subject: Re: setup creation
Date: Thu, 9 Feb 2006 12:00:29 +0530
Lines: 67
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <OA**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-har-194.148.246.61.touchtelindia.net
61.246.148.194
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:3846 63
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

I have been given comdll in release mode and I make
C# windows service which is using that.
As i register that on my system using regsvr32 my service works fine
But now I want to create setup of my service which should automatically
register that dll on system on which service will be installed
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:4W*************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,
Welcome to MSDN Newsgroup!

If you want to register COM DLL with a specified tool, RegSvr32.exe
will
help you.
You could get more information about RegSvr32.exe from the following

site:
Title: Regsvr32

URL:http://technet2.microsoft.com/Window...1c026-0b9d-43c
4-a38c-a03b508204d91033.mspx

If you want to register COM DLL programmatically in your application

code,
you could invoke DllRegisterServer from COM DLL directly.
DllRegisterServer
function exposed by COM DLL will help us to register DLL on the
machine.
If
you need sample code about this, please feel free to tell me and I'll

send
it to you.
I hope the above information is helpful for you. If you have any

questions
or concerns, please let me know. Thanks for your understanding and have
a
nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
>From: "Ankit Aneja" <ef*****@newsgroups.nospam>
>Subject: setup creation
>Date: Wed, 8 Feb 2006 17:49:24 +0530
>Lines: 10
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>X-RFC2646: Format=Flowed; Original
>Message-ID: <um**************@TK2MSFTNGP12.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.csharp
>NNTP-Posting-Host: dsl-upwest-117.11.246.61.touchtelindia.net
>61.246.11.117
>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl
>microsoft.public.dotnet.languages.csharp:3843 96
>X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>
>Hi I have made a windows service in C#.Net
>Now I want to create a setup of this service
>http://www.codeproject.com/dotnet/si...owsservice.asp
>I read this article
>Now my service is also using com dll
>I also want that dll to be registered on server(or computer) on which

that
>service will be installed
>How can i do that.I am using visual studio.net 2003
>
>
>


Feb 10 '06 #8

P: n/a
Hi Ankit ,
Thanks for your update!
I am glad to know that the problem has been resolved now. It's my pleasure
to work with you!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
References: <um**************@TK2MSFTNGP12.phx.gbl> <4W*************@TK2MSFTNGXA01.phx.gbl>
<OA**************@TK2MSFTNGP12.phx.gbl>
<#K**************@TK2MSFTNGXA01.phx.gbl>Subject: Re: setup creation
Date: Fri, 10 Feb 2006 11:28:44 +0530
Lines: 117
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <uc**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-upwest-187.11.246.61.touchtelindia.net 61.246.11.187
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.languages.csharp:384961
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

problem solved
by mistake take comdll in debug mode instead of release
sorry
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGXA01.phx.gbl.. .
Hi Ankit,
Thanks for your update!

In this scenario, I suggest you add relevant code in your service to
register COM dll. You just only use LoadLibrary and GetProcAddress API to
invoke DllRegisterServer exposed from COM DLL. The DllRegisterServer
function will help us to register the COM DLL on the machine.

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
From: "Ankit Aneja" <ef*****@newsgroups.nospam>
References: <um**************@TK2MSFTNGP12.phx.gbl>

<4W*************@TK2MSFTNGXA01.phx.gbl>
Subject: Re: setup creation
Date: Thu, 9 Feb 2006 12:00:29 +0530
Lines: 67
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <OA**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: dsl-har-194.148.246.61.touchtelindia.net 61.246.148.194Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:3846 63
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

I have been given comdll in release mode and I make
C# windows service which is using that.
As i register that on my system using regsvr32 my service works fine
But now I want to create setup of my service which should automatically
register that dll on system on which service will be installed
""TerryFei"" <v-******@online.microsoft.com> wrote in message
news:4W*************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,
Welcome to MSDN Newsgroup!

If you want to register COM DLL with a specified tool, RegSvr32.exe will help you.
You could get more information about RegSvr32.exe from the following

site:
Title: Regsvr32

URL:http://technet2.microsoft.com/Window...1c026-0b9d-43c
4-a38c-a03b508204d91033.mspx

If you want to register COM DLL programmatically in your application

code,
you could invoke DllRegisterServer from COM DLL directly.
DllRegisterServer
function exposed by COM DLL will help us to register DLL on the machine. If
you need sample code about this, please feel free to tell me and I'll

send
it to you.
I hope the above information is helpful for you. If you have any

questions
or concerns, please let me know. Thanks for your understanding and have a
nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
>From: "Ankit Aneja" <ef*****@newsgroups.nospam>
>Subject: setup creation
>Date: Wed, 8 Feb 2006 17:49:24 +0530
>Lines: 10
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>X-RFC2646: Format=Flowed; Original
>Message-ID: <um**************@TK2MSFTNGP12.phx.gbl>
>Newsgroups: microsoft.public.dotnet.languages.csharp
>NNTP-Posting-Host: dsl-upwest-117.11.246.61.touchtelindia.net
>61.246.11.117
>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl
>microsoft.public.dotnet.languages.csharp:3843 96
>X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
>
>Hi I have made a windows service in C#.Net
>Now I want to create a setup of this service
>http://www.codeproject.com/dotnet/si...owsservice.asp
>I read this article
>Now my service is also using com dll
>I also want that dll to be registered on server(or computer) on which

that
>service will be installed
>How can i do that.I am using visual studio.net 2003
>
>
>



Feb 13 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.