|
|
|
|
#1 |
|
Senior Member
Join Date: Nov 2013
Location: Iran
Posts: 343
|
hi
i use for change Service Start Type from code: HTML Code:
SimpleSC::SetServiceStartType "wuauserv" "2" ;automatic SimpleSC::SetServiceStartType "wuauserv" "3" ;manual SimpleSC::SetServiceStartType "wuauserv" "4" ;disabled thanks |
|
|
|
|
|
#2 |
|
Member
Join Date: Sep 2005
Location: Sitting next to my desk
Posts: 56
|
Check out this:
http://blogs.technet.com/b/askperf/a...tic-start.aspx This signature is currently on vacation! |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Feb 2007
Posts: 672
|
How about SimpleSC::SetServiceDelayedAutoStartInfo?
|
|
|
|
|
|
#4 | |
|
Senior Member
Join Date: Nov 2013
Location: Iran
Posts: 343
|
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? when i use from: HTML Code:
SimpleSC::SetServiceDelayedAutoStartInfo "wuauserv" "5" Pop $0 MessageBox MB_OK "$0" my service is start and Start type in automatic (delayed start)!!!!! |
|
|
|
|
|
|
#5 | |
|
Major Dude
Join Date: Feb 2007
Posts: 672
|
Why do you use 5 as a parameter?
Only 0 and 1 are supported... Quote:
|
|
|
|
|
|
|
#6 | |
|
Senior Member
Join Date: Nov 2013
Location: Iran
Posts: 343
|
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 |
|
|
|
|
|
|
#7 | ||
|
Major Dude
Join Date: Feb 2007
Posts: 672
|
So, what is not working?
Rereading your post it says that it's working: Quote:
MSDN says you should Quote:
|
||
|
|
|
|
|
#8 | |
|
Senior Member
Join Date: Nov 2013
Location: Iran
Posts: 343
|
Quote:
im so sorry this work and set Startup Type service to AUTOMATIC: HTML Code:
SimpleSC::SetServiceStartType "wuauserv" "2" ;automatic HTML Code:
SimpleSC::SetServiceDelayedAutoStartInfo "wuauserv" "1" after i use them together: HTML Code:
SimpleSC::SetServiceStartType "wuauserv" "2" ;Set Automatic SimpleSC::SetServiceDelayedAutoStartInfo "wuauserv" "1" ;Set Automatic To Delay Start It was a mistake on my behalf ![]() Thanks For Help Mr jpderuiter My Problem Solved |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|