mirror of
https://github.com/LegacyUpdate/LegacyUpdate.git
synced 2025-01-22 06:01:50 -05:00
Allow TaskbarProgress to run on Vista
This commit is contained in:
parent
a234b98ea5
commit
d66604b6b2
2 changed files with 8 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue