Ensure that KVASD can be executed from non-admin Windows accounts

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5393 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-05-17 16:42:36 +00:00
parent ea546451dc
commit 304f3e7a15
4 changed files with 8 additions and 1 deletions

View File

@ -212,11 +212,18 @@ skip_kvasd:
)
set (CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
; install the kvasd executable
; install the kvasd executable and ensure it can be executed
\${If} $INSTALL_KVASD = \${BST_CHECKED}
\${AndIf} \${FileExists} $KVASD_EXECUTABLE
DetailPrint 'Installing: $INSTDIR\\@WSJT_BIN_DESTINATION@\\kvasd@CMAKE_EXECUTABLE_SUFFIX@'
Rename $KVASD_EXECUTABLE '$INSTDIR\\@WSJT_BIN_DESTINATION@\\kvasd@CMAKE_EXECUTABLE_SUFFIX@'
AccessControl::ClearOnFile '$INSTDIR\\@WSJT_BIN_DESTINATION@\\kvasd@CMAKE_EXECUTABLE_SUFFIX@' '(BU)' 'GenericRead + GenericExecute'
Pop $R0
\${If} $R0 != ok
Pop $R0
MessageBox MB_OK 'Failed to set KVASD file permissions.\\n$R0'
Abort
\${EndIf}
\${EndIf}"
)

Binary file not shown.

Binary file not shown.

Binary file not shown.