Skip to content

Commit

Permalink
Move retry down
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Aug 23, 2024
1 parent da34e94 commit c366f77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tooling/bundler/src/bundle/windows/templates/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,9 @@ Section WebView2
${EndIf}
${Else}
!if "${MINIMUMWEBVIEW2VERSION}" != ""
retry:
${VersionCompare} "${MINIMUMWEBVIEW2VERSION}" "$4" $R0
${If} $R0 = 1
${VersionCompare} "${MINIMUMWEBVIEW2VERSION}" "$4" $R0
${If} $R0 = 1
update_webview:
DetailPrint "$(installingWebview2)"
${If} ${RunningX64}
ReadRegStr $R1 HKLM "SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate" "path"
Expand All @@ -575,12 +575,12 @@ Section WebView2
${If} $1 = 0
DetailPrint "$(webview2InstallSuccess)"
${Else}
MessageBox MB_ICONEXCLAMATION|MB_ABORTRETRYIGNORE "$(webview2InstallError)" IDIGNORE ignore IDRETRY retry
MessageBox MB_ICONEXCLAMATION|MB_ABORTRETRYIGNORE "$(webview2InstallError)" IDIGNORE ignore IDRETRY update_webview
Quit
ignore:
${EndIf}
${EndIf}
${EndIf}
${EndIf}
!endif
${EndIf}
SectionEnd
Expand Down

0 comments on commit c366f77

Please sign in to comment.