Skip to content
⌘ NSIS Forum Archive

Show timer on the installationpage

3 posts

Brojan#

Show timer on the installationpage

Section "ABC" Section0
SetDetailsView show
DetailPrint "Continuing the installation in 10 seconds"
Sleep 10000
DetailPrint "Get back to work!"
SectionEnd

Hello guys,

I want a timer to appear on the installation page after the sleep timer starts. Is it possible to do this with the DetailPrint Command? Thanks in advance.

Regards
Brojan
Anders#
I don't see how this is useful but here you go:

!include LogicLib.nsh
Section
SetDetailsView show
DetailPrint "Continuing the installation in 10 seconds"
SetDetailsPrint textonly
!define /math mywait 1000 * 10
${ForEach} $1 0 ${mywait} + 500
    IntOp $2 $1 * 100
    IntOp $2 $2 / ${mywait}
    DetailPrint "Silly wait: $2%"
    Sleep 500
${Next}
SetDetailsPrint lastused
DetailPrint "Get back to work!"
SectionEnd