windowservice startparameter

This is a discussion on "windowservice startparameter" within the ASP.NET Forum section. This forum, and the thread "windowservice startparameter are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1  
Old Aug 6th, 2004, 10:19
New Member
Join Date: Dec 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
windowservice startparameter

hi

Is there a way to set the startparameter of a windowservice programmatically, for that I can set the starttype to 'automatic'??

maybe in the projectinstaller-class (serviceinstaller)??


to explain a little more:
when the service is installed, you can select it in the Windows Services Control Manager (Programs->Administrative Tools->Services). then right-click it an choose 'properties' and there you can write a startparameter and start the service.
(everytime you close the properties-window, this parameter is deleted...)

i would like to know how i can force the service to keep that parameter....




thanx for any help!!

greets
Sabine
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Aug 6th, 2004, 10:29
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Open the ServiceInstaller properties window, change the StartType property to Automatic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Aug 9th, 2004, 12:39
New Member
Join Date: Dec 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
thanx. but thats not what i need to know. i know how you can change the startTYPE. I need to know how to set the start PARAMETER programmatically (not manually)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Aug 10th, 2004, 11:23
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
The OnStart method has an args() parameter. Have you looked at that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Aug 13th, 2004, 08:36
New Member
Join Date: Dec 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
yes, i looked at the args you get in the onstart().
when you enter a start parameter (manually) when you start the service, you get that as an arg in the onstart.

but: HOW can I set these start parameters other than manually?
can I set an option in the projectinstaller? or what?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Aug 13th, 2004, 08:41
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You can't keep it from being changed, but you can modify the start parameter with code by modifying the registry.

http://www.jsiinc.com/SUBA/tip0300/rh0324.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
windowservice, startparameter

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42