Skip to content

Commit 544328d

Browse files
authored
fix(nsis): properly handle Webview2 download return value (#11139)
port of #11131 to 2.x
1 parent 5621174 commit 544328d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": "patch:bug"
3+
---
4+
5+
Fix NSIS installer failing to determine whether webview installer downloaded correctly or not.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ Section WebView2
541541
DetailPrint "$(webview2Downloading)"
542542
NSISdl::download "https://go.microsoft.com/fwlink/p/?LinkId=2124703" "$TEMP\MicrosoftEdgeWebview2Setup.exe"
543543
Pop $0
544-
${If} $0 = 0
544+
${If} $0 == "success"
545545
DetailPrint "$(webview2DownloadSuccess)"
546546
${Else}
547547
DetailPrint "$(webview2DownloadError)"

0 commit comments

Comments
 (0)