1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-29 16:50:11 +02:00

Fix creation of Tomahawk Shortcuts with snorenotify.

This commit is contained in:
Patrick von Reth
2015-09-03 12:06:35 +02:00
parent 9a61278ee3
commit ed468e5a3f
3 changed files with 25 additions and 513 deletions

View File

@@ -77,9 +77,11 @@ ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
!include MUI2.nsh ;Used by APPDATA uninstaller.
!include InstallOptions.nsh ;Required by MUI2 to support old MUI_INSTALLOPTIONS.
!include Memento.nsh ;Remember user selections.
!include ${NSI_PATH}\WinVer.nsh ;Windows version detection. Use different version than shipped with nsis 2 to add Windows 8 detection.
!include WinVer.nsh ;Windows version detection.
!include WordFunc.nsh ;Used by VersionCompare macro function.
!include UAC.nsh ;Used by the UAC elevation to install as user or admin.
!include ${NSI_PATH}\SnoreNotify.nsh ; Macro for creation of a shortcut with a AppUserModelId.
;-----------------------------------------------------------------------------
; Memento selections stored in registry.
@@ -91,15 +93,7 @@ ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
; Setup macros for the creation of a shortcut supporting Windows 8 notifications.
;-----------------------------------------------------------------------------
!define AppUserModelId org.tomahawk-player.Tomahawk
!define SnoreToastExe "$INSTDIR\SnoreToast.exe"
!macro SnoreShortcut path exe appID
${If} ${AtLeastWin8}
nsExec::ExecToLog '"${SnoreToastExe}" -install "${path}" "${exe}" "${appID}"'
${Else}
CreateShortCut "${path}" "${exe}"
${EndIf}
!macroend
;-----------------------------------------------------------------------------
; Modern User Interface (MUI) defintions and setup.