Skip to content

Commit faf282c

Browse files
fix(nsis): use runtime ${If} check to clean up deep link on uninstall (#10103)
1 parent e13ea53 commit faf282c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": "patch:bug"
3+
---
4+
5+
Fix NSIS uninstaller failing to clean up deep links

tooling/bundler/src/bundle/windows/templates/installer.nsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,9 +679,9 @@ Section Uninstall
679679
; Delete deep links
680680
{{#each deep_link_protocols as |protocol| ~}}
681681
ReadRegStr $R7 SHCTX "Software\Classes\\{{protocol}}\shell\open\command" ""
682-
!if $R7 == "$\"$INSTDIR\${MAINBINARYNAME}.exe$\" $\"%1$\""
682+
${If} $R7 == "$\"$INSTDIR\${MAINBINARYNAME}.exe$\" $\"%1$\""
683683
DeleteRegKey SHCTX "Software\Classes\\{{protocol}}"
684-
!endif
684+
${EndIf}
685685
{{/each}}
686686

687687

0 commit comments

Comments
 (0)