1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(Windows): Correct Program Files directory for 32-bit Windows

Both installers accidentally try to get permissions from the 64-bit Program
Files, introduced in 553bd47e81.
This commit is contained in:
Anthony Bilinski 2022-03-05 19:03:12 -08:00
parent 1063b3d7f9
commit 47406e7422
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -208,7 +208,7 @@ FunctionEnd
Section "Create install directory"
CreateDirectory "$INSTDIR"
nsExec::ExecToStack 'icacls "$PROGRAMFILES64" /save "$TEMP\program-files-permissions.txt"'
nsExec::ExecToStack 'icacls "$PROGRAMFILES" /save "$TEMP\program-files-permissions.txt"'
Pop $0 # return value/error/timeout
Pop $1 # printed text, up to ${NSIS_MAX_STRLEN}
FileOpen $0 "$TEMP\program-files-permissions.txt" r