Old 28th November 2003, 12:37   #1
ibartel
Junior Member
 
Join Date: Nov 2003
Posts: 7
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
ibartel is offline   Reply With Quote
Old 28th November 2003, 12:56   #2
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
I have not tried this myself but I think it might be possible using the bgImage plugin, although I could be wrong.

Vytautas
Vytautas is offline   Reply With Quote
Old 28th November 2003, 13:06   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
It's not possible with bgImage, but with some source changes to it, it would most certainly be possible.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 28th November 2003, 13:31   #4
ibartel
Junior Member
 
Join Date: Nov 2003
Posts: 7
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
ibartel is offline   Reply With Quote
Old 28th November 2003, 13:32   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You can already add images to the NSIS dialog using AddBrandingImage and SetBrandingImage. See gfx.nsi for example.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 28th November 2003, 13:42   #6
ibartel
Junior Member
 
Join Date: Nov 2003
Posts: 7
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
ibartel is offline   Reply With Quote
Old 28th November 2003, 13:47   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
AddBrandingImage will help you. You use AddBrandingImage outside of a function or a section and then SetBrandingImage inside. See gfx.nsi.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 28th November 2003, 14:31   #8
ibartel
Junior Member
 
Join Date: Nov 2003
Posts: 7
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
ibartel is offline   Reply With Quote
Old 28th November 2003, 15:14   #9
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 28th November 2003, 16:12   #10
ibartel
Junior Member
 
Join Date: Nov 2003
Posts: 7
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
ibartel is offline   Reply With Quote
Old 28th November 2003, 16:17   #11
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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>

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 1st December 2003, 15:51   #12
ibartel
Junior Member
 
Join Date: Nov 2003
Posts: 7
Hello,

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

kind regards,
Ingo Bartel
ibartel is offline   Reply With Quote
Old 12th February 2004, 17:28   #13
nandhp
Junior Member
 
Join Date: Feb 2004
Location: Mars
Posts: 20
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 is offline   Reply With Quote
Old 12th February 2004, 17:44   #14
nandhp
Junior Member
 
Join Date: Feb 2004
Location: Mars
Posts: 20
I found http://nsis.sourceforge.net/archive/...php?pageid=405 which works for me (I'm not using MUI)
nandhp is offline   Reply With Quote
Old 17th October 2006, 09:36   #15
fluidz91
Member
 
Join Date: Jun 2006
Location: Paris - FR
Posts: 58
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

Last edited by fluidz91; 17th October 2006 at 10:05.
fluidz91 is offline   Reply With Quote
Old 20th October 2006, 14:53   #16
fluidz91
Member
 
Join Date: Jun 2006
Location: Paris - FR
Posts: 58
Is it possible to edit the script image.nsh to load multiple pictures and display them at given time during install ?
fluidz91 is offline   Reply With Quote
Old 31st October 2006, 14:43   #17
fluidz91
Member
 
Join Date: Jun 2006
Location: Paris - FR
Posts: 58
just giving this thread a last chance to get an answer ! ^^
fluidz91 is offline   Reply With Quote
Old 31st October 2006, 15:14   #18
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
http://nsis.sourceforge.net/AnimGif_plug-in
Takhir is offline   Reply With Quote
Old 2nd November 2006, 18:59   #19
fluidz91
Member
 
Join Date: Jun 2006
Location: Paris - FR
Posts: 58
Thx Takhir, i'll try this (thought about using an animated gif but didn't try if it was possible during the files copy)
fluidz91 is offline   Reply With Quote
Old 3rd November 2006, 04:36   #20
skyfish8u8
Junior Member
 
Join Date: Nov 2006
Posts: 5
Hi all:

Everybody can give me Modern_Instpics.zip,I don't down it.thx!
skyfish8u8 is offline   Reply With Quote
Old 3rd November 2006, 04:37   #21
skyfish8u8
Junior Member
 
Join Date: Nov 2006
Posts: 5
Hi all:

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


Email: skyfish2u@yahoo.com
skyfish8u8 is offline   Reply With Quote
Old 3rd November 2006, 04:54   #22
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
have you tried here: http://vytautas.mine.nu/joomla/index...d=21&Itemid=35

Vytautas
Vytautas is offline   Reply With Quote
Old 3rd November 2006, 07:37   #23
skyfish8u8
Junior Member
 
Join Date: Nov 2006
Posts: 5
Sorry,I can't open the URL. Vytautas,Would you send it give me ? Thx!
skyfish8u8 is offline   Reply With Quote
Old 3rd November 2006, 07:54   #24
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
hhhmmm strange seems to work for me. anyhow file sent
Vytautas is offline   Reply With Quote
Old 3rd November 2006, 08:01   #25
skyfish8u8
Junior Member
 
Join Date: Nov 2006
Posts: 5
You are a great guy! I'll keep secret your mail address! Thx again!
skyfish8u8 is offline   Reply With Quote
Old 3rd November 2006, 12:30   #26
fluidz91
Member
 
Join Date: Jun 2006
Location: Paris - FR
Posts: 58
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 ??

Last edited by fluidz91; 3rd November 2006 at 12:49.
fluidz91 is offline   Reply With Quote
Old 3rd November 2006, 13:20   #27
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
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.
Takhir is offline   Reply With Quote
Old 3rd November 2006, 14:16   #28
fluidz91
Member
 
Join Date: Jun 2006
Location: Paris - FR
Posts: 58
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 ! ^^
fluidz91 is offline   Reply With Quote
Old 14th November 2006, 06:46   #29
skyfish8u8
Junior Member
 
Join Date: Nov 2006
Posts: 5
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 ?
skyfish8u8 is offline   Reply With Quote
Old 14th November 2006, 22:46   #30
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
See the result of this thread:

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

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik 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