Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Rotating images while instfiles? (http://forums.winamp.com/showthread.php?t=157899)

ibartel 28th November 2003 12:37

Rotating images while instfiles?
 
Hello,

ive searched the articles / plugins and fourms but didnt find a way to display rotating images while the installation process.

Maybe someone out there who can help me how to realize this?

kind regards,
Ingo Bartel

Vytautas 28th November 2003 12:56

I have not tried this myself but I think it might be possible using the bgImage plugin, although I could be wrong.

Vytautas

kichik 28th November 2003 13:06

It's not possible with bgImage, but with some source changes to it, it would most certainly be possible.

ibartel 28th November 2003 13:31

Hello,

thanks for your replies.

Yes tried with bgImage before kichik's post but couldnt use addimage without using setbg before.

@kichik: i saw you made the bgImage plugin. Would you able to create a similiar plugin for adding images to the NSIS dialogs?

kind regards,
Ingo Bartel

kichik 28th November 2003 13:32

You can already add images to the NSIS dialog using AddBrandingImage and SetBrandingImage. See gfx.nsi for example.

ibartel 28th November 2003 13:42

Hello,

yes i tried that before. However i cant use AddBrandingImage inside functions/sections. Even if i could i dont want the window gets resized.

What i tried to do is displaying different images below the installation progress.

AddBrandingImage wont help me here.

kind regards,
Ingo Bartel

kichik 28th November 2003 13:47

AddBrandingImage will help you. You use AddBrandingImage outside of a function or a section and then SetBrandingImage inside. See gfx.nsi.

ibartel 28th November 2003 14:31

Hello,

i did see how gfx.nsi used it. However when i use AddBrindingImage once the window gets "framed".

Ie. when i use AddBrandingImage bottom 100 the bottom 100 pixels of the NSIS window gets reservde for the branding image. This goes for all dialogs rather than just the instfiles dialog. The branding image gets adjusted to the border as well.

I saw Modern GUI used SetBrandingImage with a imageid. I couldnt figure out what 1046 means. Maybe i could use InstallOptions in addition with SetBrandingImage? This would lead into a second problem i currently have: How can i use InstallOptions inside the instfiles page (when using modern GUI) .

kind regards,
Ingo Bartel

kichik 28th November 2003 15:14

This is one big misunderstanding :(

You want to switch the pictures, not rotate them as in 90 degrees to the right or something like that...

You can do that with BgImage. You don't have to use AddImage, SetBg can set an image too as the background. But those will show behind the installer. If you want it to show below the progress bar you'd need some more work. Let me know if BgImage is not enough for you and I'll tell you how to do that.

As for the new questions, you can't use InstallOptions in a section, 1046 is the id of the branding image placeholder in the MUI UI (open modern.exe in Resource Hacker - dialog 105) and yes, AddBrandingImage does indeed adds an image for the entire installation. But you can switch that while installing too...

I'm sorry for the confusion.

ibartel 28th November 2003 16:12

Hello,

sorry for not beeing specific. Yes i meant switching pictures.
SetBG isnt enough - i would like to have just the installer window.

kind regards,
Ingo Bartel

kichik 28th November 2003 16:17

Ok, then you'd have to edit the UI file with Resource Hacker, add a place holder for an image where you want it to be and then do the image loading and setting on yourself using System.dll. The code for loading and setting images can be found in exec.c under EW_SETBRANDINGIMAGE. You should use that as a refernce for the System.dll calls. To get the HWND of the place holder you should use:

FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 <insert control id>
# load image...
SendMessage $0 <insert value of STM_SETIMAGE here> <insert value of IMAGE_BITMAP here> <insert handle to loaded image here>

ibartel 1st December 2003 15:51

Hello,

thanks alot it's working well now (exactly is i wanted).

kind regards,
Ingo Bartel

nandhp 12th February 2004 17:28

Quote:

SendMessage $0 <insert value of STM_SETIMAGE here> <insert value of IMAGE_BITMAP here> <insert handle to loaded image here>
I'm trying to get this to work for my installer, but I don't understand what "insert handle to loaded image here" means. Could someone provide some advice with this?

BTW, this doesn't work:

SendMessage $0 ${STM_SETIMAGE} ${IMAGE_BITMAP} "STR:C:\windows\blocks.bmp"

nandhp 12th February 2004 17:44

I found http://nsis.sourceforge.net/archive/...php?pageid=405 which works for me (I'm not using MUI)

fluidz91 17th October 2006 09:36

Hi,

i copy files using :

code:

File /r ..\plugin\eclipse32\



and i wanted some image files to display during installation (about 233 Mb files).
I tried ebanner and the modified MUI provided here but there is no way to specify multiple file and time between displays so that i can display only one picture during install.
I tried to "cut" the process of the files copy in parts but i could not manage well with it.
Would it be possible ?
Hope i ve been clear ^^
Thanks

fluidz91 20th October 2006 14:53

Is it possible to edit the script image.nsh to load multiple pictures and display them at given time during install ?

fluidz91 31st October 2006 14:43

just giving this thread a last chance to get an answer ! ^^

Takhir 31st October 2006 15:14

http://nsis.sourceforge.net/AnimGif_plug-in

fluidz91 2nd November 2006 18:59

Thx Takhir, i'll try this (thought about using an animated gif but didn't try if it was possible during the files copy)

skyfish8u8 3rd November 2006 04:36

Hi all:

Everybody can give me Modern_Instpics.zip,I don't down it.thx!

skyfish8u8 3rd November 2006 04:37

Hi all:

Everybody can give me Modern_Instpics.zip,I don't down it.thx!


Email: skyfish2u@yahoo.com

Vytautas 3rd November 2006 04:54

have you tried here: http://vytautas.mine.nu/joomla/index...d=21&Itemid=35

Vytautas

skyfish8u8 3rd November 2006 07:37

Sorry,I can't open the URL. Vytautas,Would you send it give me ? Thx!

Vytautas 3rd November 2006 07:54

hhhmmm strange seems to work for me. anyhow file sent

skyfish8u8 3rd November 2006 08:01

You are a great guy! I'll keep secret your mail address! Thx again!

fluidz91 3rd November 2006 12:30

Hi Takhir,

i tried to display an animated gif in the current window where i have the progress bar of the copying files but the gif "flicks" and is not well displayed (almost invisible).
i tried both dll versions (in the second package, the example with the bird and baby is exactly what i want and display correctly).
If i put another window on top then i return to the installation window the gif display correctly but for a really short time...
Any idea ?
Thx anyone who could help !


Extract code :

code:

# Installer sections
Section -Main SEC0000
SetOutPath $INSTDIR
SetOverwrite on
AnimGif::play /NOUNLOAD /VALIGN=CENTER "$EXEDIR\aist.gif"
File ..\plugin\eclipse32\*



Edit : do i have to create an empty white placeholder for animated header GIF like proposed in an example ??

Takhir 3rd November 2006 13:20

You don't need placeholder for INSTFILES page. If you can attach image and (short) script to post I'll test it. May some overlapping with progress bar have place? Try with default bottom valign.

fluidz91 3rd November 2006 14:16

Takhir,

i was about to send you my complete script but wanted to clean some useless code before, i found that i had tested Modern_Instpics with an "!include Image.nsh" so i comment it and recompile script and test it and... it works !
I m now using default modern.exe UI and not modern_instpics.exe overriden by the Image.nsh include.
Sorry for that and special thx for your help Takhir and dll ! ^^

skyfish8u8 14th November 2006 06:46

How to do it
 
Quote:

Originally posted by kichik
Ok, then you'd have to edit the UI file with Resource Hacker, add a place holder for an image where you want it to be and then do the image loading and setting on yourself using System.dll. The code for loading and setting images can be found in exec.c under EW_SETBRANDINGIMAGE. You should use that as a refernce for the System.dll calls. To get the HWND of the place holder you should use:

FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 <insert control id>
# load image...
SendMessage $0 <insert value of STM_SETIMAGE here> <insert value of IMAGE_BITMAP here> <insert handle to loaded image here>

Kichik:
I'm a newbie in NSIS, Would you tell me that how can i do it ?

kichik 14th November 2006 22:46

See the result of this thread:

http://nsis.sourceforge.net/wiki/Mod...stalling_files


All times are GMT. The time now is 18:08.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.