Skip to content
⌘ NSIS Forum Archive

baffled by background image with MUI

7 posts

Maurizio#

baffled by background image with MUI

hi peeps,
first of all my compliments on such a product!!it works like a charm and I am well impressed. But (there is always one....😉 ) I am having troubles with the final aesthetical details..I wanted a background image for the installer and I added this to the script
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define MUI_CUSTOMFUNCTION_GUIINIT myGUIInit 
where:
Function myGUIInit
# the plugins dir is automatically deleted when the installer exits
InitPluginsDir
File /oname=$PLUGINSDIR\bgimage.bmp "C:\Program Files\NSIS\Contrib\Graphics\Wizard\wetted_unit_cell.bmp"
BgImage::SetBg /NOUNLOAD /FILLSCREEN $PLUGINSDIR\bgimage.bmp
FunctionEnd 
Can anyone tell me where am I going wrong? no bg image is displayed when the installer starts

cheers guys
Maurizio

ps: the paths have all the backslashes in the right place but the vbulletin php BBC nuked them out!🤪
VegetaSan#
hmm.. I dont see any slashes (/) try this ...


; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}Contrib\Graphics\Icons\modern-uninstall.ico" \

!define MUI_CUSTOMFUNCTION_GUIINIT myGUIInit
where:


Function myGUIInit
# the plugins dir is automatically deleted when the installer exits
InitPluginsDir
File /oname=$PLUGINSDIR\bgimage.bmp "C:\Program Files\NSIS\Contrib\Graphics\Wizard\wetted_unit_cell.bmp"
BgImage::SetBg /NOUNLOAD /FILLSCREEN $PLUGINSDIR\bgimage.bmp
FunctionEnd
PS : Ignore this reply ..... !! I didnt read that good 🙂 sorry ...
deguix#
TIP: You can use double backslashes "\\" to represent one when using [PHP]. But if you don't want to do that, you can use [code] (w/o the syntax highlighter).
Maurizio#
oh ok..thanks for the tip deguix.
yep my code is exactly like VegetaSan's...but no background image is displayed. Any idea why? or I should i change it?
Thanks
Maurizio
deguix#
TIP: You can't change your post after 3 hours of the posting.

TIP: [PHP] uses syntax highlighting, [code] doesn't.
Maurizio#
ok...sorted thanks to a guy in the IRC chatroom!!!
it just needed to Redraw...after SetBg

Bye for now
DrO#
Originally posted by Maurizio
ok...sorted thanks to a guy in the IRC chatroom!!!
it just needed to Redraw...after SetBg
/me waves
hand as being guilty as charged 🙂 if in doubt, consult the readme files, etc

-daz