Allow TaskbarProgress to run on Vista

This commit is contained in:
Adam Demasi 2024-10-13 13:47:21 +10:30
parent a234b98ea5
commit d66604b6b2
No known key found for this signature in database
GPG key ID: 5D3B26B3D58C7D91
2 changed files with 8 additions and 5 deletions

View file

@ -8,6 +8,7 @@
#include <objbase.h>
#include <shobjidl.h>
#include "main.h"
#include "VersionInfo.h"
static extra_parameters *g_extra;
static ITaskbarList3 *g_taskbarList;
@ -89,6 +90,10 @@ static UINT_PTR NSISPluginCallback(enum NSPIM event) {
PLUGIN_METHOD(InitTaskbarProgress) {
PLUGIN_INIT();
if (!AtLeastWinVista()) {
return;
}
g_extra = extra;
extra->RegisterPluginCallback(g_hInstance, NSISPluginCallback);

View file

@ -67,13 +67,11 @@ Var /GLOBAL AeroWizard.Font
!insertmacro SetBackground $ChildHwnd $4
${Next}
; Activate taskbar progress bar plugin
${If} ${AtLeastWin7}
LegacyUpdateNSIS::InitTaskbarProgress
${EndIf}
; Set up banner and glass
LegacyUpdateNSIS::DialogInit
; Activate taskbar progress bar plugin
LegacyUpdateNSIS::InitTaskbarProgress
!macroend
Function AeroWizardOnShow