Click here to Skip to main content
15,888,019 members
Home / Discussions / C#
   

C#

 
QuestionHow to create global variables in C#? Pin
Vitaliy Vorontsov13-Mar-03 6:10
Vitaliy Vorontsov13-Mar-03 6:10 
AnswerRe: How to create global variables in C#? Pin
leppie13-Mar-03 6:36
leppie13-Mar-03 6:36 
AnswerRe: How to create global variables in C#? Pin
Xiangyang Liu 刘向阳13-Mar-03 6:40
Xiangyang Liu 刘向阳13-Mar-03 6:40 
AnswerRe: How to create global variables in C#? Pin
kaschimer13-Mar-03 6:40
kaschimer13-Mar-03 6:40 
AnswerRe: How to create global variables in C#? Pin
Robert Hinrichs13-Mar-03 7:45
Robert Hinrichs13-Mar-03 7:45 
GeneralRe: How to create global variables in C#? Pin
Jeff J13-Mar-03 8:16
Jeff J13-Mar-03 8:16 
AnswerRe: How to create global variables in C#? Pin
Adam Turner13-Mar-03 11:02
Adam Turner13-Mar-03 11:02 
QuestionHow to update a Windows Service Pin
Chris Hansson13-Mar-03 5:55
Chris Hansson13-Mar-03 5:55 
Perhaps this should be in the general .NET forum, but what the heck.

I've written a program, in C#, that runs as a service. I have done the installer so it will install the service on the system.

However what I cannot figure out (and probably because paying for all this Microsoft software made me so broke I cannot afford the approriate book) is how to handle the case where the service is already installed when setup is being run.

The installer will just say "Service is already installed" and rollback the entire installation. What I want to achive is that the executable for the service is updated and the service restarted.

I figured maybe I could do a check to see if the service was installed, stop it and then delete it, before the installer installs the new version,but I can't seem to find a method to actually remove a service from the system either.

Any pointers would be highly appreciated.

/CMH
AnswerRe: How to update a Windows Service Pin
Xiangyang Liu 刘向阳13-Mar-03 6:27
Xiangyang Liu 刘向阳13-Mar-03 6:27 
GeneralDefault argument values Pin
Alexandru Savescu13-Mar-03 4:23
Alexandru Savescu13-Mar-03 4:23 
GeneralRe: Default argument values Pin
Daniel Turini13-Mar-03 4:45
Daniel Turini13-Mar-03 4:45 
GeneralRe: Default argument values Pin
Alexandru Savescu13-Mar-03 5:00
Alexandru Savescu13-Mar-03 5:00 
GeneralRe: Default argument values Pin
Daniel Turini13-Mar-03 5:17
Daniel Turini13-Mar-03 5:17 
GeneralRe: Default argument values Pin
Alexandru Savescu13-Mar-03 5:28
Alexandru Savescu13-Mar-03 5:28 
GeneralRe: Default argument values Pin
Andy Smith13-Mar-03 6:46
Andy Smith13-Mar-03 6:46 
GeneralRe: Default argument values Pin
Nick Parker13-Mar-03 8:22
protectorNick Parker13-Mar-03 8:22 
GeneralCasting userdefined parameter class Pin
Venkatraman12-Mar-03 20:18
Venkatraman12-Mar-03 20:18 
GeneralRe: Casting userdefined parameter class Pin
leppie13-Mar-03 6:19
leppie13-Mar-03 6:19 
GeneralSynchronized collections Pin
Don Miguel12-Mar-03 19:47
Don Miguel12-Mar-03 19:47 
GeneralRe: Synchronized collections Pin
Kannan Kalyanaraman12-Mar-03 21:24
Kannan Kalyanaraman12-Mar-03 21:24 
GeneralRe: Synchronized collections Pin
James T. Johnson13-Mar-03 11:33
James T. Johnson13-Mar-03 11:33 
GeneralRe: Synchronized collections Pin
Don Miguel13-Mar-03 19:44
Don Miguel13-Mar-03 19:44 
Generalsharing data Pin
chito12-Mar-03 19:41
chito12-Mar-03 19:41 
GeneralMultiple DataBindings to the same control Pin
Adam Turner12-Mar-03 17:44
Adam Turner12-Mar-03 17:44 
GeneralCentering a form in the screen Pin
Baatezu_Not_Home12-Mar-03 11:42
sussBaatezu_Not_Home12-Mar-03 11:42 

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.