mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 03:47:37 +03:00
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
Block a user