Skip to content

Commit

Permalink
fix(nsis): properly handle Webview2 download return value (#11139)
Browse files Browse the repository at this point in the history
port of #11131 to 2.x
  • Loading branch information
amrbashir authored Sep 26, 2024
1 parent 5621174 commit 544328d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/bundler-nsis-webview2-success.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-bundler": "patch:bug"
---

Fix NSIS installer failing to determine whether webview installer downloaded correctly or not.
2 changes: 1 addition & 1 deletion crates/tauri-bundler/src/bundle/windows/nsis/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 544328d

Please sign in to comment.