Old 27th April 2004, 18:21   #1
Tolwyn
Member
 
Join Date: Sep 2001
Posts: 86
BGImage Doesn't Work

Yes, I read the example.nsi thing, but frankly, I begin to feel as though you guys write these things for your own amusement and not really for people that actually will be USING NSIS for something useful!

This is what's in my script, that worked some versions of NSIS ago.

code:

Function myGuiInit
# the plugins dir is automatically deleted when the installer exits
InitPluginsDir
File /oname=$PLUGINSDIR\bgimage.bmp "c:\temp\work\bg.bmp"
BgImage::Init /NOUNLOAD /FILLSCREEN $PLUGINSDIR\bgimage.bmp
FunctionEnd



It fails on the BGImage::Init... line.
Tolwyn is offline   Reply With Quote
Old 27th April 2004, 18:23   #2
Tolwyn
Member
 
Join Date: Sep 2001
Posts: 86
By the way, who honestly specifies a color like this:
0 0x80 0 ??

Do you get extra geek points or something?
What's wrong with 00ff00 or something?
Tolwyn is offline   Reply With Quote
Old 27th April 2004, 19:09   #3
pengyou
Major Dude
 
Join Date: Mar 2003
Posts: 571
Quote:
It fails on the BGImage::Init... line.
The BgImage plugin supports the following functions:

BgImage::AddImage
BgImage::AddText
BgImage::Clear
BgImage::Destroy
BgImage::Redraw
BgImage::SetBg
BgImage::SetReturn
BgImage::Sound

There is no BgImage::Init in the list so your script will fail.

In addition to the Example.nsi file there is a BgImage.txt file with information on how to use the plugin.
pengyou is offline   Reply With Quote
Old 27th April 2004, 19:43   #4
Tolwyn
Member
 
Join Date: Sep 2001
Posts: 86
It worked in 2.0 beta 4.
Tolwyn is offline   Reply With Quote
Old 27th April 2004, 20:06   #5
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Update your script. You can expect things to change when using unstable versions.
Joost Verburg 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