Archive: Using backgroundimage in installer..


Using backgroundimage in installer..
Hi there,

I've got a weird problem that I've been working for hours trying to solve.
I've been setting up a installerscript that has a fullscreen background image, this works like a charm as long as the background image is located in the same folder as the compiled installer is.


Function WelcomePageSetupLinkPre

BgImage::SetBg /NOUNLOAD /FILLSCREEN ".\bitmaps\backgroundimage.bmp" 50 150

!insertmacro GetReturnValue

BgImage::Redraw /NOUNLOAD


!insertmacro GetReturnValue
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "Numfields" "4" ;

increase counter
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Bottom" "122" ;

limit size of the upper label
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Type" "Link"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "State" ""
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Text" ""
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Left" "120"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Right" "315"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Top" "123"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Bottom" "132"
FunctionEnd
Any ideas anyone?
I'm a complete newbie on this stuff

You need to extract a copy of the bitmap at run time, say to $PLUGINSDIR and give that path to BgImage::SetBg.

Stu


Thanks for your reply!

Got it working finally, :D

I know what I did wrong now, and it's like you said.
What I ended up doing was that I extracted it to the installdir (which is found via the registry) and then removed it after the install was done.