Click here to Skip to main content
15,914,481 members
Home / Discussions / C#
   

C#

 
GeneralRe: Type.GetFields Method (BindingFlags) Pin
George_George5-Jun-08 0:43
George_George5-Jun-08 0:43 
GeneralRe: Type.GetFields Method (BindingFlags) Pin
Vega024-Jun-08 23:51
Vega024-Jun-08 23:51 
GeneralRe: Type.GetFields Method (BindingFlags) Pin
George_George5-Jun-08 0:52
George_George5-Jun-08 0:52 
Questionhow to add new windows service by using C# code Pin
wasimsharp4-Jun-08 19:36
wasimsharp4-Jun-08 19:36 
AnswerRe: how to add new windows service by using C# code Pin
Parwej Ahamad4-Jun-08 19:58
professionalParwej Ahamad4-Jun-08 19:58 
GeneralRe: how to add new windows service by using C# code Pin
wasimsharp4-Jun-08 20:02
wasimsharp4-Jun-08 20:02 
GeneralRe: how to add new windows service by using C# code Pin
mav.northwind4-Jun-08 20:16
mav.northwind4-Jun-08 20:16 
AnswerRe: how to add new windows service by using C# code Pin
telha4-Jun-08 20:44
telha4-Jun-08 20:44 
Well there are certain ways to add a service to your windows registered services.
1) You can use the InstallUtil tool that comes with the .Net Framework;Go to the Visual Studio Command prompt and there type InstallUtil Path-to-Assembly-to-be-installed-as-service
This is a manual procedure.

2) Create a new setup project using the Visual Studio Setup Wizard and then under the "File System Editor" add the output (the assembly that you want to install as service", after this go to "Custom Actions Editor", you will see four folders there, 1- Install, 2- Commit, 3- Rollback and 4- Uninstall, right click on Install and click on "Add Custom Action" from the resulting menu, under the result dialog, locate the application folder and locate the assembly of the service that you just added in Application Folder, double click on this assembly.
Now when you run the setup project, the service will be added to your windows services if everything goes well.

For both the procedures, you would need to go to windows services console and start the service manually.

Muhammad Talha

GeneralRe: how to add new windows service by using C# code Pin
wasimsharp4-Jun-08 20:46
wasimsharp4-Jun-08 20:46 
GeneralRe: how to add new windows service by using C# code Pin
wasimsharp4-Jun-08 23:44
wasimsharp4-Jun-08 23:44 
AnswerRe: how to add new windows service by using C# code Pin
telha5-Jun-08 2:06
telha5-Jun-08 2:06 
GeneralRe: how to add new windows service by using C# code Pin
wasimsharp5-Jun-08 21:47
wasimsharp5-Jun-08 21:47 
QuestionWhich Event is Fire ! Pin
nomi4-Jun-08 18:39
nomi4-Jun-08 18:39 
AnswerRe: Which Event is Fire ! Pin
Nouman Bhatti4-Jun-08 18:49
Nouman Bhatti4-Jun-08 18:49 
QuestionRe: Which Event is Fire ! Pin
nomi4-Jun-08 19:11
nomi4-Jun-08 19:11 
AnswerRe: Which Event is Fire ! Pin
Guffa4-Jun-08 19:18
Guffa4-Jun-08 19:18 
QuestionRe: Which Event is Fire ! Pin
nomi4-Jun-08 19:21
nomi4-Jun-08 19:21 
AnswerRe: Which Event is Fire ! Pin
Nouman Bhatti4-Jun-08 19:59
Nouman Bhatti4-Jun-08 19:59 
GeneralRe: Which Event is Fire ! Pin
nomi4-Jun-08 20:07
nomi4-Jun-08 20:07 
GeneralRe: Which Event is Fire ! Pin
Nouman Bhatti4-Jun-08 20:21
Nouman Bhatti4-Jun-08 20:21 
GeneralRe: Which Event is Fire ! Pin
nomi4-Jun-08 20:24
nomi4-Jun-08 20:24 
RantRe: Which Event is Fire ! Pin
Nouman Bhatti4-Jun-08 20:56
Nouman Bhatti4-Jun-08 20:56 
Generalyar there is only one instance for image update nothing Except this ! Pin
nomi4-Jun-08 21:13
nomi4-Jun-08 21:13 
AnswerRe: Which Event is Fire ! Pin
wasimsharp4-Jun-08 21:27
wasimsharp4-Jun-08 21:27 
AnswerRe: Which Event is Fire ! Pin
telha5-Jun-08 2:23
telha5-Jun-08 2:23 

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.