Use full paths when calling cmd and msiexec
This commit is contained in:
parent
052d07d371
commit
9cf44ef534
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue