Old 8th July 2019, 18:18   #1
Brojan
Junior Member
 
Join Date: Jul 2019
Posts: 2
Talking Show timer on the installationpage

code:
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
Brojan is offline   Reply With Quote
Old 8th July 2019, 18:58   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,164
I don't see how this is useful but here you go:

PHP Code:
!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 
$$100
    IntOp 
$$/ ${mywait}
    
DetailPrint "Silly wait: $2%"
    
Sleep 500
${Next}
SetDetailsPrint lastused
DetailPrint 
"Get back to work!"
SectionEnd 

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 8th July 2019, 19:07   #3
Brojan
Junior Member
 
Join Date: Jul 2019
Posts: 2
Thanks for the quick answer!

Not really useful, but a little easteregg for the user.
Brojan is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump