mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
tomahawk:// handler stuff on windows
This commit is contained in:
@@ -457,6 +457,12 @@ Section -post
|
|||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tomahawk" "NoModify" "1"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tomahawk" "NoModify" "1"
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tomahawk" "NoRepair" "1"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tomahawk" "NoRepair" "1"
|
||||||
|
|
||||||
|
; Register tomahawk:// protocol handler
|
||||||
|
WriteRegStr HKCR "tomahawk" "" "URL: Tomahawk Protocol"
|
||||||
|
WriteRegStr HKCR "tomahawk\DefaultIcon" "" $INSTDIR\tomahawk.exe,1
|
||||||
|
WriteRegStr HKCR "tomahawk\shell" "" "open"
|
||||||
|
WriteRegStr HKCR "tomahawk\shell\open\command" "" '"$INSTDIR\tomahawk.exe" "%1"'
|
||||||
|
|
||||||
SetDetailsPrint textonly
|
SetDetailsPrint textonly
|
||||||
DetailPrint "Finsihed."
|
DetailPrint "Finsihed."
|
||||||
SectionEnd
|
SectionEnd
|
||||||
@@ -516,6 +522,8 @@ Section Uninstall
|
|||||||
DeleteRegValue HKLM "Software\Tomahawk" ""
|
DeleteRegValue HKLM "Software\Tomahawk" ""
|
||||||
DeleteRegKey HKLM "Software\Tomahawk"
|
DeleteRegKey HKLM "Software\Tomahawk"
|
||||||
|
|
||||||
|
DeleteRegKey HKCR "tomahawk"
|
||||||
|
|
||||||
;Start menu shortcuts.
|
;Start menu shortcuts.
|
||||||
!ifdef OPTION_SECTION_SC_START_MENU
|
!ifdef OPTION_SECTION_SC_START_MENU
|
||||||
SetShellVarContext all
|
SetShellVarContext all
|
||||||
|
Reference in New Issue
Block a user