trahma
25th January 2006 22:39 UTC
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
Comm@nder21
26th January 2006 17:49 UTC
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
kichik
26th January 2006 18:19 UTC
Or extract it to $PLUGINSDIR and have it deleted automatically for you.
Comm@nder21
26th January 2006 20:34 UTC
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.
kichik
26th January 2006 20:38 UTC
It clears it and whatever it can't delete (in-use plug-ins for example), it queues for deletion on reboot.
Guv'nor
24th April 2006 12:32 UTC
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...