mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-08-17 03:40:23 +03:00
fix(nsis): use runtime ${If}
check to clean up deep link on uninstall (#10103)
This commit is contained in:
parent
e13ea53a26
commit
faf282ca6c
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}}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user