port of #11131 to 2.x
@@ -0,0 +1,5 @@
+---
+"tauri-bundler": "patch:bug"
+
+Fix NSIS installer failing to determine whether webview installer downloaded correctly or not.
@@ -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)"