PDA

View Full Version : AnimGif makes my installer hang up


Grytolle
24th June 2010, 13:42
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::play /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: http://jazzjackrabbit.net/gry/jazzblink.gif

Grytolle
26th June 2010, 10:07
So I tried to add a few sleeps, but that didn't make any difference...

Takhir
26th June 2010, 10:15
May be icon (1031? 1039?) is not really hidden ?
Can you attach min size test script?

Grytolle
26th June 2010, 11:59
Here goes

Takhir
26th June 2010, 13:19
Yes, this is why I added AnimGifPe ;) Looks OK with it. http://nsis.sourceforge.net/AnimGif_plug-in - second link.

Grytolle
26th June 2010, 13:25
I replaced the dll and recompiled, but the installer still hangs up :\

To be clear: the gif looks fine, but the installer freezes

Takhir
26th June 2010, 13:49
I could see 50% (Core Duo) CPU load with AnimGif, but AnimGifPe was OK for me on Vista. Attached.

Grytolle
26th June 2010, 15:05
I can't click anything in the installer (using your attached exe)

Takhir
27th June 2010, 11:40
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.