mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
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:
parent
ea546451dc
commit
304f3e7a15
@ -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}"
|
||||
)
|
||||
|
||||
|
BIN
contrib/NSIS/AccessControl.zip
Normal file
BIN
contrib/NSIS/AccessControl.zip
Normal file
Binary file not shown.
BIN
contrib/NSIS/Plugins-i386-ansi/AccessControl.dll
Normal file
BIN
contrib/NSIS/Plugins-i386-ansi/AccessControl.dll
Normal file
Binary file not shown.
BIN
contrib/NSIS/Plugins-i386-unicode/AccessControl.dll
Normal file
BIN
contrib/NSIS/Plugins-i386-unicode/AccessControl.dll
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user