Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(Windows): Correct Program Files directory for 32-bit Windows
Browse files Browse the repository at this point in the history
Both installers accidentally try to get permissions from the 64-bit Program
Files, introduced in 553bd47.
  • Loading branch information
anthonybilinski committed Mar 6, 2022
1 parent 1063b3d commit 47406e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/qtox.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47406e7

Please sign in to comment.