Archive: BGImage Doesn't Work


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.


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.

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?


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.

It worked in 2.0 beta 4.


Update your script. You can expect things to change when using unstable versions.