Skip to content
⌘ NSIS Forum Archive

AnimGif makes my installer hang up

9 posts

Grytolle#

AnimGif makes my installer hang up

So, I thought it'd be fun to replace the icon in the directory-page with an animated gif, which works fine, except that the installer suddenly requires 47 CPU as shown in Windows Task Manager and that the installer hangs up completely so I have to kill it with Windows Task Manager.

PageEx directory
PageCallbacks directoryPre directoryShow directoryLeave
PageExEnd

Function directoryShow
FindWindow $0 "#32770" "" $HWNDPARENT ;hides the orignal icon successfully
GetDlgItem $1 $0 1031
ShowWindow $1 0

SetOutPath $PLUGINSDIR
File jazzblink.gif
AnimGif:😛lay /NOUNLOAD /HALIGN=0 /VALIGN=0 "$PLUGINSDIR\jazzblink.gif"
FunctionEnd

Function directoryLeave
AnimGif::stop
Delete "$PLUGINSDIR\jazzblink.gif"
FunctionEnd
What am I doing wrong? This is the gif:
Takhir#
Yes, this is why I added AnimGifPe 😉 Looks OK with it. http://nsis.sourceforge.net/AnimGif_plug-in - second link.
Grytolle#
I replaced the dll and recompiled, but the installer still hangs up :\

To be clear: the gif looks fine, but the installer freezes
Takhir#
I could see 50% (Core Duo) CPU load with AnimGif, but AnimGifPe was OK for me on Vista. Attached.
Takhir#
I could reproduce the situation with AnimGifPe after I minimized installer window and could not restore it. Simple way I can offer right now is to use MUI - just re-tested Example1 worked fine. Later I'll try to find time for this issue.