mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(nsis): use runtime ${If} check to clean up deep link on uninstall (#10103)
This commit is contained in:
5
.changes/nsis-deep-link-uninstall.md
Normal file
5
.changes/nsis-deep-link-uninstall.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-bundler": "patch:bug"
|
||||
---
|
||||
|
||||
Fix NSIS uninstaller failing to clean up deep links
|
||||
@@ -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}}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user