patch by jerry - fixes ShellExecAsUser usage

This commit is contained in:
Nick Bolton 2013-05-02 13:08:04 +00:00
parent 65b8f480e8
commit 87380937da
1 changed files with 4 additions and 5 deletions

View File

@ -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