From 87380937da063725e491290560f72395e9d6bcc4 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Thu, 2 May 2013 13:08:04 +0000 Subject: [PATCH] patch by jerry - fixes ShellExecAsUser usage --- res/synergy.nsh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/res/synergy.nsh b/res/synergy.nsh index eebbe90b..b0d05ca5 100644 --- a/res/synergy.nsh +++ b/res/synergy.nsh @@ -28,6 +28,8 @@ !define icon "..\res\synergy.ico" !define controlPanelReg "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" +!addplugindir "..\res" + !define MUI_ICON ${icon} !define MUI_UNICON ${icon} @@ -243,10 +245,7 @@ SectionEnd Function .onInstSuccess - ; TODO: makensis won't accept this any more for some reason. - ; start the GUI automatically. - ;ShellExecAsUser::ShellExecAsUser "" "$INSTDIR\synergy.exe" SW_SHOWNORMAL - - Exec "$INSTDIR\synergy.exe" + ; relies on !addplugindir + ShellExecAsUser::ShellExecAsUser "" "$INSTDIR\synergy.exe" SW_SHOWNORMAL FunctionEnd