![]() |
Service Start Type automatic delayed start
hi
i use for change Service Start Type from code: HTML Code:
SimpleSC::SetServiceStartType "wuauserv" "2" ;automaticthanks |
Check out this:
http://blogs.technet.com/b/askperf/a...tic-start.aspx |
How about SimpleSC::SetServiceDelayedAutoStartInfo?
|
Quote:
I knew can change a value in registry for change Start Type to automatic delayed start. but i I do not want change value in registry and i want do this work with NSIS command. This is a bug in!!!! if nsis haven't a parameter for change Start Type to automatic delayed start? Quote:
HTML Code:
SimpleSC::SetServiceDelayedAutoStartInfo "wuauserv" "5"my service is start and Start type in automatic (delayed start)!!!!! |
Why do you use 5 as a parameter?
Only 0 and 1 are supported... Quote:
|
Quote:
i before test all parameters 0 till 5 later. when copy command to that post i not change 5 to 1. i test again parameters 0 and 1 but not work |
So, what is not working?
Rereading your post it says that it's working: Quote:
MSDN says you should Quote:
|
Quote:
im so sorry this work and set Startup Type service to AUTOMATIC: HTML Code:
SimpleSC::SetServiceStartType "wuauserv" "2" ;automaticHTML Code:
SimpleSC::SetServiceDelayedAutoStartInfo "wuauserv" "1"after i use them together: HTML Code:
SimpleSC::SetServiceStartType "wuauserv" "2" ;Set AutomaticIt was a mistake on my behalf :confused: Thanks For Help Mr jpderuiter My Problem Solved |
| All times are GMT. The time now is 17:33. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.