Old 25th January 2006, 21:39   #1
trahma
Junior Member
 
Join Date: Sep 2001
Posts: 9
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
trahma is offline   Reply With Quote
Old 26th January 2006, 16:49   #2
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
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
Comm@nder21 is offline   Reply With Quote
Old 26th January 2006, 17:19   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Or extract it to $PLUGINSDIR and have it deleted automatically for you.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 26th January 2006, 19:34   #4
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
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.
Comm@nder21 is offline   Reply With Quote
Old 26th January 2006, 19:38   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
It clears it and whatever it can't delete (in-use plug-ins for example), it queues for deletion on reboot.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 24th April 2006, 11:32   #6
Guv'nor
Guest
 
Posts: n/a
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...
  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