Skip to content
⌘ NSIS Forum Archive

Show installer progress in taskbar (Windows 7)

14 posts

kporter20#

Show installer progress in taskbar (Windows 7)

Hi there.

Is it possible to show installer progress via the taskbar icon in Windows 7?

I have just been installing the latest Paint .NET and noticed that this feature was present?

Thanks
Afrow UK#
This is done via ITaskbarList3::SetProgressValue. One would need to modify NSIS or call this using the System plug-in.

Stu
kporter20#
Originally Posted by MSG View Post
Thanks. I will give this a try! 👍
Animaether#
I've also created a small header for use outside of InstFiles (or other pages with a progressbar) / in conjunction with Anders' plug-in (to change progressbar states, e.g.).


Note that this does -not- replace Anders' plug-in, as Anders' plugin automatically syncs to a progressbar, which is rather useful within InstFiles, whereas the header obviously does not.
Animaether#
Originally Posted by Yathosho View Post
this plugin does nothing for me, at least not with MUI
Just to get the obvious out of the way... you -are- running Windows 7, right?

And if you are.. you are -not- using a custom skinning app that might replace/skin the taskbar... right?
Animaether#
Originally Posted by Yathosho View Post
the example works perfectly
No idea, then... works fine here with MUI2 as well. From the plugin's example code, I merely changed...


; added
!include "MUI2.nsh"
; changed
Outfile "Win7TaskbarProgress_mui2.exe"
; further original code here
!insertmacro MUI_LANGUAGE "English"
Yathosho#
you don't have to use MUI_PAGE_COMPONENTS_SHOW (or similiar - i'm on a mac right now) anymore? that's probably why it didn't work, will test it when i get home!
Animaether#
You do if you want to mess with the components page - but the example invokes the plugin on initialization of the InstFiles page, so anything regarding to a components page should be moot.
Anders#
The plugin will only work when a page has a windows progress bar (The component page has no progress bar, so why are we even talking about it?)
Yathosho#
Originally Posted by Yathosho View Post
you don't have to use MUI_PAGE_COMPONENTS_SHOW (or similiar - i'm on a mac right now) anymore? that's probably why it didn't work, will test it when i get home!
oops, that was a typo. i'm actually used MUI_PAGE_CUSTOMFUNCTION_PRE

and it works with MUI_PAGE_CUSTOMFUNCTION_SHOW. my bad.