Skip to content
⌘ NSIS Forum Archive

Image disappear on click

3 posts

gerwinf#

Image disappear on click

In my installerer i want to open a image (with some instructions) which dissapears when clicking on it. Is that possible?

Now i have this function (a bmp which dissapears after 5 sec). But i want to keep it on screen untill the user clicks on it.

Function .onInit
SetOutPath $TEMP
File /oname=spltmp.bmp "logo.bmp"

advsplash::show 5000 469 281 -1 $TEMP\spltmp

Pop $0 ; $0 has '1' if the user closed the splash screen early,
; '0' if everything closed normally, and '-1' if some error occurred.

Delete $TEMP\spltmp.bmp

FunctionEnd
Anders#
you can't just use a long timeout like 999999 or something? did not check, but -1 might also work