Click here to Skip to main content
15,915,857 members
Home / Discussions / C#
   

C#

 
GeneralRemoted C# Windows Media Player Pin
dkarlton6-Apr-05 11:52
dkarlton6-Apr-05 11:52 
GeneralXSD Viewer Pin
Aaron Schaefer6-Apr-05 11:25
Aaron Schaefer6-Apr-05 11:25 
GeneralC# Resize a control question Pin
elapid6-Apr-05 10:39
elapid6-Apr-05 10:39 
GeneralRe: C# Resize a control question Pin
Christian Graus6-Apr-05 18:57
protectorChristian Graus6-Apr-05 18:57 
GeneralHiding a DataColumn in a DataGrid Pin
obelisk296-Apr-05 10:38
obelisk296-Apr-05 10:38 
GeneralRe: Hiding a DataColumn in a DataGrid Pin
Kodanda Pani6-Apr-05 17:06
Kodanda Pani6-Apr-05 17:06 
GeneralRe: Hiding a DataColumn in a DataGrid Pin
Luis Alonso Ramos6-Apr-05 17:15
Luis Alonso Ramos6-Apr-05 17:15 
GeneralCreating a dynamic Windows Service... Pin
jabaron136-Apr-05 9:42
jabaron136-Apr-05 9:42 
I've created a C# windows service and I am able to install the service with no problems. However, the way that my service works is that it listens and responds to the client on a particular port. The port that the service listens on is configurable through a properties file so that the service port is configured at run time.

What I would like to do is be able to install my web service on to the same server more than once. For example, I'd like to have the windows service executable exist in two separate directories but with the same name. For example:

InstallUtil c:\FolderA\MyWinService.exe
InstallUtil c:\FolderB\MyWinService.exe

where FolderA win service is configured to listen on one port and FolderB win service configured to listen on a different port. However, you have to set the service name in code as follows:

this.serviceInstaller1.ServiceName = "My Win Service";

My question is this. Is there a way to expose the ServiceName as an option that may be set during the InstallUtil call so that I may do what I wish or must I create a second MyWinService2.exe with a different service name?

Thank you,
Jim





Jim
Generalproblems with Overlapped IO WriteFile() Pin
Member 16244276-Apr-05 9:18
Member 16244276-Apr-05 9:18 
GeneralCreating and running DTS Packages in C# Pin
JMichael24686-Apr-05 6:22
JMichael24686-Apr-05 6:22 
GeneralRe: Creating and running DTS Packages in C# Pin
Jon Sagara6-Apr-05 9:33
Jon Sagara6-Apr-05 9:33 
GeneralRe: Creating and running DTS Packages in C# Pin
J4amieC6-Apr-05 11:09
J4amieC6-Apr-05 11:09 
GeneralRe: Creating and running DTS Packages in C# Pin
JMichael24684-Aug-05 6:16
JMichael24684-Aug-05 6:16 
GeneralProblem with Invoke Pin
Snowjim6-Apr-05 6:13
Snowjim6-Apr-05 6:13 
GeneralRe: Problem with Invoke Pin
afinnell7-Apr-05 6:35
afinnell7-Apr-05 6:35 
GeneralMaking an app color space aware Pin
ehcseapine6-Apr-05 5:50
ehcseapine6-Apr-05 5:50 
QuestionHow to dial a computer? Pin
yateee6-Apr-05 5:47
yateee6-Apr-05 5:47 
GeneralEvent problem Pin
_eulogy_6-Apr-05 5:44
_eulogy_6-Apr-05 5:44 
GeneralRe: Event problem Pin
afinnell7-Apr-05 6:39
afinnell7-Apr-05 6:39 
GeneralRe: Event problem Pin
_eulogy_7-Apr-05 8:16
_eulogy_7-Apr-05 8:16 
GeneralRe: Event problem Pin
afinnell8-Apr-05 14:14
afinnell8-Apr-05 14:14 
GeneralRe: Event problem Pin
_eulogy_9-Apr-05 1:02
_eulogy_9-Apr-05 1:02 
GeneralEnvironment Error Pin
Sabry19056-Apr-05 5:25
Sabry19056-Apr-05 5:25 
Generalinsert data to oracle table Pin
IvyLee6-Apr-05 5:19
IvyLee6-Apr-05 5:19 
GeneralFormat a STRING into a FLOAT Pin
Seraphin6-Apr-05 4:56
Seraphin6-Apr-05 4:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.