Old 10th February 2006, 22:10   #1
Ender7584
Junior Member
 
Join Date: Aug 2005
Posts: 13
Send a message via AIM to Ender7584
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
Ender7584 is offline   Reply With Quote
Old 10th February 2006, 22:31   #2
dienjd
Senior Member
 
Join Date: Oct 2005
Posts: 189
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.
dienjd is offline   Reply With Quote
Old 11th February 2006, 05:42   #3
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
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 is offline   Reply With Quote
Old 12th February 2006, 17:50   #4
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
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.
Attached Files
File Type: zip animgif.zip (34.3 KB, 972 views)
Takhir is offline   Reply With Quote
Old 13th February 2006, 13:08   #5
zeeh3
Senior Member
 
Join Date: Aug 2005
Posts: 121
Amazing Takhir! A question: does it only work in Instfile pages (Sections)?
zeeh3 is offline   Reply With Quote
Old 13th February 2006, 15:49   #6
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
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.
Attached Files
File Type: zip animgif.zip (4.1 KB, 850 views)
Takhir is offline   Reply With Quote
Old 13th February 2006, 16:46   #7
zeeh3
Senior Member
 
Join Date: Aug 2005
Posts: 121
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?
zeeh3 is offline   Reply With Quote
Old 13th February 2006, 18:45   #8
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
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 is offline   Reply With Quote
Old 14th February 2006, 08:36   #9
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
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.
Attached Files
File Type: zip animgif.zip (74.0 KB, 899 views)
Takhir is offline   Reply With Quote
Old 15th February 2006, 08:13   #10
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
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 is offline   Reply With Quote
Old 17th February 2006, 08:40   #11
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
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
Takhir is offline   Reply With Quote
Old 4th May 2006, 10:46   #12
baskaran.vishnu
Junior Member
 
Join Date: Apr 2006
Posts: 41
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.
baskaran.vishnu is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump