split the common control for the server in its own control script

This commit is contained in:
Mario Fetka 2013-08-16 17:24:34 +02:00
parent 4367b63687
commit 6ff8245e8c
4 changed files with 19 additions and 9 deletions

View File

@ -0,0 +1,8 @@
[DosInAnIcon_stop_server]
net stop tvnserver
ping 127.0.0.1 -n 5 >nul
taskkill /F /IM tvnserver.exe
ping 127.0.0.1 -n 5 >nul
[DosInAnIcon_start_server]
net start tvnserver

View File

@ -136,12 +136,3 @@ DefVar $server_viewonlypassword_set$
Set $server_viewonlypassword_set$ = GetProductProperty("server_viewonlypassword_set", "0")
DefVar $server_viewonlypassword_value_of$
Set $server_viewonlypassword_value_of$ = GetProductProperty("server_viewonlypassword_value_of", "")
[DosInAnIcon_stop_server]
net stop tvnserver
ping 127.0.0.1 -n 5 >nul
taskkill /F /IM tvnserver.exe
ping 127.0.0.1 -n 5 >nul
[DosInAnIcon_start_server]
net start tvnserver

View File

@ -68,6 +68,11 @@ else
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$
if FileExists("%ScriptPath%\control3264.ins")
comment "Include Control sub section"
Sub "%ScriptPath%\control3264.ins"
endif
comment "Stop TightVNC Server"
DosInAnIcon_stop_server

View File

@ -59,7 +59,13 @@ ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$
Message "Uninstalling " + $ProductId$ + " ..."
if FileExists("%ScriptPath%\control3264.ins")
comment "Include Control sub section"
Sub "%ScriptPath%\control3264.ins"
endif
if FileExists("%ScriptPath%\delsub3264.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub3264.ins"
endif