Old 29th February 2008, 23:51   #1
spawner
Junior Member
 
Join Date: Feb 2008
Posts: 2
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.

Quote:

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
spawner is offline   Reply With Quote
Old 1st March 2008, 13:22   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You need to extract a copy of the bitmap at run time, say to $PLUGINSDIR and give that path to BgImage::SetBg.

Stu
Afrow UK is offline   Reply With Quote
Old 1st March 2008, 13:33   #3
spawner
Junior Member
 
Join Date: Feb 2008
Posts: 2
Thanks for your reply!

Got it working finally,

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.
spawner 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