set sane default if not set for timer value

This commit is contained in:
Mario Fetka 2013-06-26 15:42:01 +02:00
parent eebee8e756
commit ceebf8b68e
3 changed files with 20 additions and 1 deletions

View File

@ -1,7 +1,7 @@
DefVar $MSVersion$ DefVar $MSVersion$
Set $MSVersion$ = GetMsVersionInfo Set $MSVersion$ = GetMsVersionInfo
DefVar $sereby_timer_value$ DefVar $sereby_timer_value$
Set $sereby_timer_value$ = GetProductProperty("sereby_timer_value", "40") Set $sereby_timer_value$ = GetProductProperty("sereby_timer_value", "5")
DefVar $sereby_timer_enabled$ DefVar $sereby_timer_enabled$
Set $sereby_timer_enabled$ = GetProductProperty("sereby_timer_enabled", "1") Set $sereby_timer_enabled$ = GetProductProperty("sereby_timer_enabled", "1")
DefVar $sereby_dotnet1.1$ DefVar $sereby_dotnet1.1$

View File

@ -74,6 +74,11 @@ else
Sub "%ScriptPath%\delsub3264.ins" Sub "%ScriptPath%\delsub3264.ins"
endif endif
if FileExists("%ScriptPath%\timer3264.ins")
comment "Start timer sub section"
Sub "%ScriptPath%\timer3264.ins"
endif
if FileExists("%ScriptPath%\config3264.ins") if FileExists("%ScriptPath%\config3264.ins")
comment "Start config sub section" comment "Start config sub section"
Sub "%ScriptPath%\config3264.ins" Sub "%ScriptPath%\config3264.ins"

14
CLIENT_DATA/timer3264.ins Normal file
View File

@ -0,0 +1,14 @@
if ( strLength($sereby_timer_value$) = "0" )
Set $sereby_timer_value$ = 5
opsiservicecall_sereby_timer_value
endif
[opsiservicecall_sereby_timer_value]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_timer_value",
"$sereby_timer_value$",
"%opsiserviceUser%"
]