mirror of https://github.com/tauri-apps/tauri
fix(nsis): check main binary name is not empty (#11000)
* Check main binary name is not empty * Missing !=
This commit is contained in:
parent
b13cb208a3
commit
def875193a
|
@ -638,7 +638,8 @@ Section Install
|
|||
|
||||
; Remove old main binary if it doesn't match new main binary name
|
||||
ReadRegStr $0 SHCTX "${UNINSTKEY}" "MainBinaryName"
|
||||
${If} $0 != "${MAINBINARYNAME}.exe"
|
||||
${If} $0 != ""
|
||||
${AndIf} $0 != "${MAINBINARYNAME}.exe"
|
||||
Delete "$INSTDIR\$0"
|
||||
${EndIf}
|
||||
|
||||
|
|
Loading…
Reference in New Issue