Browse Source

fix(Windows): Fix starting qTox from installer

Regular ShellExecAsUser plugin doesn't support Unicode. Change to their
"Unicode Update" version. See
https://nsis.sourceforge.io/ShellExecAsUser_plug-in#Download

Missed when updating installers to Unicode mode in
9f84184ba8
reviewable/pr6518/r2
Anthony Bilinski 3 years ago
parent
commit
beb38fa33b
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 2
      buildscripts/build_nsisshellexecasuser_windows.sh
  2. 11
      buildscripts/download/download_nsisshellexecasuser.sh

2
buildscripts/build_nsisshellexecasuser_windows.sh

@ -8,4 +8,4 @@ set -euo pipefail @@ -8,4 +8,4 @@ set -euo pipefail
"$(dirname "$0")"/download/download_nsisshellexecasuser.sh
cp ShellExecAsUser.dll /usr/share/nsis/Plugins/x86-unicode
cp unicode/ShellExecAsUser.dll /usr/share/nsis/Plugins/x86-unicode

11
buildscripts/download/download_nsisshellexecasuser.sh

@ -17,16 +17,15 @@ @@ -17,16 +17,15 @@
set -euo pipefail
NSISSHELLEXECASUSER_HASH=8fc19829e144716a422b15a85e718e1816fe561de379b2b5ae87ef9017490799
NSISSHELLEXECASUSER_HASH=79bdd3e54a9ba9c30af85557b475d2322286f8726687f2e23afa772aac6049ab
source "$(dirname "$0")/common.sh"
# Backup: https://web.archive.org/web/20171008011417/http://nsis.sourceforge.net/mediawiki/images/c/c7/ShellExecAsUser.zip
download_file http://nsis.sourceforge.net/mediawiki/images/c/c7/ShellExecAsUser.zip
download_file https://nsis.sourceforge.io/mediawiki/images/1/1d/ShellExecAsUserUnicodeUpdate.zip
if ! check_sha256 "$NSISSHELLEXECASUSER_HASH" ShellExecAsUser.zip; then
if ! check_sha256 "$NSISSHELLEXECASUSER_HASH" ShellExecAsUserUnicodeUpdate.zip; then
exit 1
fi
unzip ShellExecAsUser.zip
rm ShellExecAsUser.zip
unzip ShellExecAsUserUnicodeUpdate.zip
rm ShellExecAsUserUnicodeUpdate.zip

Loading…
Cancel
Save