mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-31 17:42:13 +02:00
install an app id on Windows, to enable Windows 8 notifications without the need to install an extra fallback shortcut to the startmenu
This commit is contained in:
@@ -34,6 +34,9 @@
|
||||
|
||||
!define NSI_PATH "${SOURCE_PATH}/admin/win/nsi"
|
||||
|
||||
;define app id needed for Windows 8 notifications
|
||||
!define AppUserModelId org.tomahawk-player.Tomahawk
|
||||
|
||||
;-----------------------------------------------------------------------------
|
||||
; Installer version
|
||||
;-----------------------------------------------------------------------------
|
||||
@@ -400,6 +403,7 @@ SectionGroup "Shortcuts"
|
||||
CreateDirectory "$SMPROGRAMS\Tomahawk"
|
||||
CreateShortCut "$SMPROGRAMS\Tomahawk\LICENSE.lnk" "$INSTDIR\LICENSE.txt"
|
||||
CreateShortCut "$SMPROGRAMS\Tomahawk\Tomahawk.lnk" "$INSTDIR\tomahawk.exe"
|
||||
WinShell::SetLnkAUMI "$SMPROGRAMS\Tomahawk\Tomahawk.lnk" "${AppUserModelId}"
|
||||
CreateShortCut "$SMPROGRAMS\Tomahawk\Release notes.lnk" "$INSTDIR\NOTES.txt"
|
||||
CreateShortCut "$SMPROGRAMS\Tomahawk\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
||||
SetShellVarContext current
|
||||
@@ -544,6 +548,8 @@ Section Uninstall
|
||||
;Start menu shortcuts.
|
||||
!ifdef OPTION_SECTION_SC_START_MENU
|
||||
SetShellVarContext all
|
||||
WinShell::UninstAppUserModelId "${AppUserModelId}"
|
||||
WinShell::UninstShortcut "$SMPROGRAMS\Tomahawk\Tomahawk.lnk"
|
||||
RMDir /r "$SMPROGRAMS\Tomahawk"
|
||||
SetShellVarContext current
|
||||
!endif
|
||||
|
Reference in New Issue
Block a user