X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=scripts%2Fbuild%2FSnoreNotify.nsh;fp=scripts%2Fbuild%2FSnoreNotify.nsh;h=a83aecd2e19fcac9850abcfa0c2e9d722387bfc0;hb=790343b02aae49c517597a2d01678a2d087b5081;hp=0000000000000000000000000000000000000000;hpb=c32396569adc792cf569e017bcd306bb891692ae;p=quassel.git diff --git a/scripts/build/SnoreNotify.nsh b/scripts/build/SnoreNotify.nsh new file mode 100644 index 00000000..a83aecd2 --- /dev/null +++ b/scripts/build/SnoreNotify.nsh @@ -0,0 +1,22 @@ +!include LogicLib.nsh +!include WordFunc.nsh + +Function SnoreWinVer + ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion + ${VersionCompare} "6.2" $R0 $R0 + ${If} $R0 == 1 + Push "NotWin8" + ${Else} + Push "AtLeastWin8" + ${EndIf} +FunctionEnd + +!macro SnoreShortcut path exe appID + Call SnoreWinVer + Pop $0 + ${If} $0 == "AtLeastWin8" + nsExec::ExecToLog '"${SnoreToastExe}" -install "${path}" "${exe}" "${appID}"' + ${Else} + CreateShortCut "${path}" "${exe}" + ${EndIf} +!macroend