Skip to content

Commit

Permalink
fix(nsis): use runtime ${If} check to clean up deep link on uninsta…
Browse files Browse the repository at this point in the history
…ll (#10103)
  • Loading branch information
Legend-Master authored Jun 24, 2024
1 parent e13ea53 commit faf282c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/nsis-deep-link-uninstall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-bundler": "patch:bug"
---

Fix NSIS uninstaller failing to clean up deep links
4 changes: 2 additions & 2 deletions tooling/bundler/src/bundle/windows/templates/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,9 @@ Section Uninstall
; Delete deep links
{{#each deep_link_protocols as |protocol| ~}}
ReadRegStr $R7 SHCTX "Software\Classes\\{{protocol}}\shell\open\command" ""
!if $R7 == "$\"$INSTDIR\${MAINBINARYNAME}.exe$\" $\"%1$\""
${If} $R7 == "$\"$INSTDIR\${MAINBINARYNAME}.exe$\" $\"%1$\""
DeleteRegKey SHCTX "Software\Classes\\{{protocol}}"
!endif
${EndIf}
{{/each}}


Expand Down

0 comments on commit faf282c

Please sign in to comment.