Skip to content
⌘ NSIS Forum Archive

Progress status of silent installation

8 posts

romko#

Progress status of silent installation

Hello,

We make silent setup for remote install/uninstall. One thing is very important - progress status of current installation process. Is any way to get % progress from setup. How to get ErrorCode I know 🙂
kichik#
You can manually write the status to some file or the registry. Won't work with more than one installer running, but it's the best idea I can think of right now.
darthvader#
I was searching for the exact answer to the question posted the romko. Does anyone know how to get the status of the installation progress?
darthvader#
Sorry for asking a dumb question, but How do we get the status(progress) of the installation? Do we need to manually calculate it?
Afrow UK#
You can get the current progress bar position by sending PBM_GETPOS to the control with SendMessage.

Stu
darthvader#
Thanks for the reply. The variable PBM_GETPOS is not defined in Winmessages.nsh.So i guess i need to use the System plugin.
kichik#
No need for the System plug-in. SendMessage and get you the return value.
SendMessage $HANDLE ${PBM_GETPOS} 0 0 $0
# $0 will be the pos