- NSIS Discussion
- Animated Image
Archive: Animated Image
Ender7584
10th February 2006 23:10 UTC
Animated Image
Hey,
I don't really want to do this at all, but it's something that higher ups are forcing me to figure out. I know that there are other forum topics on this, but they dead end.
Has anyone made any kind of development regarding an animated image crammed anywhere inside the installer? Preferably gif format, but I'm desperate now and will settle for any image animation. I've tried to appease them with lots and lots of moving updating text, but it's not enough. They need an image.
I was thinking of somehow either using sendmessage to change the image over and over to a different one, but have no idea if that would even work. Has anyone tried it?
ANY information would be greatly appreciated.
Thank you,
Ender7584
dienjd
10th February 2006 23:31 UTC
Check out the embedded banner plugin:
http://nsis.sourceforge.net/wiki/Embedded_Banner
I've only tinkered with it a few minutes a while ago, but the description says GIF is supported, so you should be able to put an animated GIF on your UI.
Takhir
11th February 2006 06:42 UTC
EmbeddedBanner shows not animated gifs, you can change images from script only :( Animate control of InstallOptionsEx implements Windows Animation, but it not supports animated gif as well and require custom page (aren't it?). I remember attempts of animation control dynamic adding to INSTFILES page, but I cannot find it right now.
Takhir
12th February 2006 18:50 UTC
Animated GIF
May be this is not too complex with Juan Soulie code :)
I spent 2 hours with it and first draft attached. Transparency, image location and stretching are still in 'todo' list, but dll looks stable in simple cases.
zeeh3
13th February 2006 14:08 UTC
Amazing Takhir! A question: does it only work in Instfile pages (Sections)?
Takhir
13th February 2006 16:49 UTC
MUI Welcome and finish pages are not sutable for additional images because dialog area is covered with other controls. But it is possible to draw gif on any page using show/leave functions.
zeeh3
13th February 2006 17:46 UTC
It would be a very nice feature to put animated gifs at splash screens, at control 1046, at Field 1 in ioSpecial.ini, or other places outside dialog area, can it be done?
Takhir
13th February 2006 19:45 UTC
Another way is to update nsWeb plug-in (or some other code) for dynamic browser control creation on the installer windows (not on custom pages only), this worked with GIFs on INSTFILES in my tests (but I could not close MUI page without Tasks manager) ;)
Takhir
14th February 2006 09:36 UTC
Browser control is good, but I like these 'hand made' things (17-th century :) ). Animated GIF with transparency and (optional) target window handle worked in my tests with attached plug-in. Image transparency color index value was just replaced with the color of the left top corner of the paint rectangle on the target window. Included Felix image is big (74 kB), but it is good for test. Later I'll fix bugs (if any) and create wiki page. Few MSVCRT dependencies still presents because of new/delete operators.
Takhir
15th February 2006 09:13 UTC
AnimGif plug-in wiki page. Fixed bug - dialog field color extraction in the custom 'show' function.
Playing on the other windows (not pages) is a question of window handle getting, for example, might be good to test it with BGGradient window. But transparency support on not-page windows may be not correct.
Takhir
17th February 2006 09:40 UTC
I uploaded a new version with better GIF image disposal methods support (AFAI understood Murray/vanRyper :) ). New /FIT option, may be usefull for various screens dpi's, stretches image to fit window width or height (for example, left logo on Welcome page). And now with intermediate memory dc image for better drawing. AnimGif plug-in
baskaran.vishnu
4th May 2006 11:46 UTC
Problem with running Animated GIFs for custom page
Dear Takhir,
I have recently posted a message pertaining to loading an animated GIF Image for NSIS.
The E-mail link is as shown below;
http://forums.winamp.com/showthread.php?threadid=245291
Based on the content of the link, could you advice me on any possible solutions? I have also posted the scripts regarding the problem I am having in the link provided above.
I am using your AnimGif plugin along with the newadvsplash.dll plugin to run this implementation.
Would truly appreciate your help.
Thanks man.