Use full paths when calling cmd and msiexec

This commit is contained in:
bitraid 2019-01-17 19:57:03 +02:00
parent 052d07d371
commit 9cf44ef534
No known key found for this signature in database
GPG Key ID: 140D99CA504654D3
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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