diff options
author | bitraid <bitraid@protonmail.ch> | 2019-01-17 19:57:03 +0200 |
---|---|---|
committer | bitraid <bitraid@protonmail.ch> | 2019-01-17 19:57:03 +0200 |
commit | 9cf44ef534865c4882847c734c4a07aabc3d8955 (patch) | |
tree | b23ac0808983b667d7e61ef7e5004bf660c19730 | |
parent | 052d07d371e95fd1e9199d320e7f54dfc9bf88e0 (diff) | |
download | qutebrowser-9cf44ef534865c4882847c734c4a07aabc3d8955.tar.gz qutebrowser-9cf44ef534865c4882847c734c4a07aabc3d8955.zip |
Use full paths when calling cmd and msiexec
-rwxr-xr-x | misc/nsis/install.nsh | 2 | ||||
-rwxr-xr-x | misc/nsis/uninstall.nsh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/nsis/install.nsh b/misc/nsis/install.nsh index fc763474b..fa5b20a72 100755 --- a/misc/nsis/install.nsh +++ b/misc/nsis/install.nsh @@ -476,7 +476,7 @@ Function .onInit !insertmacro RemoveOld $R0 "/S _?=$0" ${endif} ${if} $R1 != "" - !insertmacro RemoveOld "msiexec.exe" "/X$R1 /passive /promptrestart" + !insertmacro RemoveOld "$SYSDIR\msiexec.exe" "/X$R1 /passive /promptrestart" ${endif} ${endif} diff --git a/misc/nsis/uninstall.nsh b/misc/nsis/uninstall.nsh index 20add35dd..9d10d05d2 100755 --- a/misc/nsis/uninstall.nsh +++ b/misc/nsis/uninstall.nsh @@ -132,7 +132,7 @@ Section "-Uninstall" ; hidden section, must always be the last one! ; If the uninstaller still exists, use cmd.exe on exit to remove it (along with $INSTDIR if it's empty) ${if} ${FileExists} "$INSTDIR\${UNINSTALL_FILENAME}" - Exec 'cmd.exe /c (del /f /q "$INSTDIR\${UNINSTALL_FILENAME}") & (rmdir "$INSTDIR")' + Exec '"$SYSDIR\cmd.exe" /c (del /f /q "$INSTDIR\${UNINSTALL_FILENAME}") & (rmdir "$INSTDIR")' ${endif} SectionEnd |