Grytolle
24th June 2010 14:42 UTC
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::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 11:07 UTC
So I tried to add a few sleeps, but that didn't make any difference...
Takhir
26th June 2010 11:15 UTC
May be icon (1031? 1039?) is not really hidden ?
Can you attach min size test script?
Grytolle
26th June 2010 12:59 UTC
Here goes
Takhir
26th June 2010 14:19 UTC
Yes, this is why I added AnimGifPe ;) Looks OK with it. http://nsis.sourceforge.net/AnimGif_plug-in - second link.
Grytolle
26th June 2010 14:25 UTC
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 14:49 UTC
I could see 50% (Core Duo) CPU load with AnimGif, but AnimGifPe was OK for me on Vista. Attached.
Grytolle
26th June 2010 16:05 UTC
I can't click anything in the installer (using your attached exe)
Takhir
27th June 2010 12:40 UTC
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.