Archive: Including a branding image in an installer


Including a branding image in an installer
I've been teaching myself NSIS all day today but I cam across a problem I can't see to fix. Is there a way to include a branding image in the install file but not extract it on install? Essentially I want to have 1 .exe I can distribute taht will have the file in it.

The only method I can think of is to output the file and then delete it when I'm done but I don't want that to show up in the log file.

Any help would be appreciated.

-Justin


it won't show up in the log file, because you can't extract it in a section but have to extract it in .oninit and delete it in .onGUIEnd


Or extract it to $PLUGINSDIR and have it deleted automatically for you.


erm, sure that $PLUGINSDIR gets cleared automatically?
i always delete my self-extracted files myself, because i experienced that nsis does NOT clear the $PLUGINSDIR itself.


It clears it and whatever it can't delete (in-use plug-ins for example), it queues for deletion on reboot.


Thank you!

I just extracted it into the TEMP-Directory and deleted it afterwards again. It works perfectly ;)

Now of course it's very easy to do this - you just have to get this idea :) perhaps a "IncludeBrandingImage" or something can be implemented in future versions, though...