소스 검색

fix(nsis): properly handle Webview2 download return value (#11139)

port of #11131 to 2.x
Amr Bashir 10 달 전
부모
커밋
544328d5a3
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 0
      .changes/bundler-nsis-webview2-success.md
  2. 1 1
      crates/tauri-bundler/src/bundle/windows/nsis/installer.nsi

+ 5 - 0
.changes/bundler-nsis-webview2-success.md

@@ -0,0 +1,5 @@
+---
+"tauri-bundler": "patch:bug"
+---
+
+Fix NSIS installer failing to determine whether webview installer downloaded correctly or not.

+ 1 - 1
crates/tauri-bundler/src/bundle/windows/nsis/installer.nsi

@@ -541,7 +541,7 @@ Section WebView2
         DetailPrint "$(webview2Downloading)"
         NSISdl::download "https://go.microsoft.com/fwlink/p/?LinkId=2124703" "$TEMP\MicrosoftEdgeWebview2Setup.exe"
         Pop $0
-        ${If} $0 = 0
+        ${If} $0 == "success"
           DetailPrint "$(webview2DownloadSuccess)"
         ${Else}
           DetailPrint "$(webview2DownloadError)"