diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2015-04-27 19:21:32 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2015-04-28 13:10:07 +0200 |
commit | 762e4ec390a39e21f30ee736d14fddd4f9c953a4 (patch) | |
tree | 8af49b5a1e97e0a46b6d7a146407642e31b41580 | |
parent | 06c0d08d05f9fd8f67fde72b4289c226714d1f29 (diff) |
nsis: Add InstallBalloonService helper
It uses this SimpleSC plugin to install the balloon service rather than
manual command invocation
-rw-r--r-- | spice-guest-tools.nsis | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/spice-guest-tools.nsis b/spice-guest-tools.nsis index 57c1bd1..b149484 100644 --- a/spice-guest-tools.nsis +++ b/spice-guest-tools.nsis @@ -200,11 +200,9 @@ FunctionEnd Function InstallBalloonDriver Call InstallDriver - Call GetDriverSubdir - Pop $0 - StrCpy $0 "$INSTDIR\drivers\$0\blnsvr.exe -i" - nsExec::ExecToLog $0 - nsExec::ExecToLog 'net start BalloonService' + + Call InstallBalloonService + FunctionEnd Function InstallDriver @@ -301,3 +299,15 @@ Function InstallVdAgentService Call InstallService FunctionEnd + +Function InstallBalloonService + Call GetDriverSubdir + Pop $0 + StrCpy $0 "$INSTDIR\drivers\$0\blnsvr.exe" + + Push "Balloon Service" + Push $0 + Push "BalloonService" + Call InstallService + +FunctionEnd |