Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   baffled by background image with MUI (http://forums.winamp.com/showthread.php?t=179748)

Maurizio 12th May 2004 15:00

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
PHP Code:

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:
PHP Code:

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!:weird:

VegetaSan 12th May 2004 21:59

hmm.. I dont see any slashes (/) try this ...

code:

; 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:

code:

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 13th May 2004 01:05

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 13th May 2004 06:37

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 13th May 2004 11:24

TIP: You can't change your post after 3 hours of the posting.

TIP: [PHP] uses syntax highlighting, [code] doesn't.

Maurizio 13th May 2004 14:28

ok...sorted thanks to a guy in the IRC chatroom!!!
it just needed to Redraw...after SetBg

Bye for now

DrO 13th May 2004 16:24

Quote:

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


All times are GMT. The time now is 04:36.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.