Archive: Show installer progress in taskbar (Windows 7)


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


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

Stu


http://nsis.sourceforge.net/TaskbarProgress_plug-in


Ah sweet! :)

Stu


Originally posted by MSG
http://nsis.sourceforge.net/TaskbarProgress_plug-in
Thanks. I will give this a try! :up:

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.).
http://nsis.sourceforge.net/Set_Taskbar_button_progress

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.


this plugin does nothing for me, at least not with MUI


Originally posted by Yathosho
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?

win7 - yes
skin - no
the example works perfectly


Originally posted by Yathosho
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"

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!


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.


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?)


Originally posted by 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!
oops, that was a typo. i'm actually used MUI_PAGE_CUSTOMFUNCTION_PRE

and it works with MUI_PAGE_CUSTOMFUNCTION_SHOW. my bad.