WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Installer with no icon
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
Backland
Senior Member

Registered: Sep 2006
From:

Installer with no icon

Hey all,

How can I make an installer without an icon, because NSIS adds a default icon when the script dont specify one.

I would like no icon at all, just let windows show the default exe icon for the installer.

Thanks

Quick Link | Report this post to a moderator | IP: Logged

Backland is offline Old Post 09-16-2006 05:27 PM
Click Here to See the Profile for Backland Click here to Send Backland a Private Message Click Here to Email Backland Find more posts by Backland Add Backland to your buddy list Edit/Delete Message Reply w/Quote
CrushBug
Member

Registered: May 2005
From:

I am sorry, you are saying you don't want an icon and then you end the question with 'show the default icon'? Which is it? Do you want an icon or not?

Quick Link | Report this post to a moderator | IP: Logged

CrushBug is offline Old Post 09-16-2006 06:45 PM
Click Here to See the Profile for CrushBug Click here to Send CrushBug a Private Message Find more posts by CrushBug Add CrushBug to your buddy list Edit/Delete Message Reply w/Quote
Animaether
Major Dude

Registered: Jun 2001
From:

I suspect he wants an icon, but he wants it to be the icon as seen for an executable that has no icon resource itself.
If this is the case, Backland, just get a copy of that icon in .ico format and specify that as the icon.

Quick Link | Report this post to a moderator | IP: Logged

Animaether is offline Old Post 09-16-2006 07:36 PM
Click Here to See the Profile for Animaether Click here to Send Animaether a Private Message Find more posts by Animaether Add Animaether to your buddy list Edit/Delete Message Reply w/Quote
CrushBug
Member

Registered: May 2005
From:

Ah, yeah, ok, if that is it, do what Animaether says

Quick Link | Report this post to a moderator | IP: Logged

CrushBug is offline Old Post 09-17-2006 12:08 AM
Click Here to See the Profile for CrushBug Click here to Send CrushBug a Private Message Find more posts by CrushBug Add CrushBug to your buddy list Edit/Delete Message Reply w/Quote
Backland
Senior Member

Registered: Sep 2006
From:

Sorry, yes I meant the default windows icon for executables which Windows disaplays when there is none set in the actual exe.

I could just copy that icon and set it in my installer, but another user may have specified something different as their exe file icon in Windows settings, any other way to get an icon-less installer?

Quick Link | Report this post to a moderator | IP: Logged

Backland is offline Old Post 09-17-2006 07:27 AM
Click Here to See the Profile for Backland Click here to Send Backland a Private Message Click Here to Email Backland Find more posts by Backland Add Backland to your buddy list Edit/Delete Message Reply w/Quote
Animaether
Major Dude

Registered: Jun 2001
From:

not seeing any

Quick Link | Report this post to a moderator | IP: Logged

Animaether is offline Old Post 09-17-2006 08:24 AM
Click Here to See the Profile for Animaether Click here to Send Animaether a Private Message Find more posts by Animaether Add Animaether to your buddy list Edit/Delete Message Reply w/Quote
{_trueparuex^}
Senior Member

Registered: Dec 2005
From: Glow

Not sure if it will work, but you could try to remove the icon from the installer with tool like Resource Hacker. Just add "CRCCheck off" in your script so you don't get CRC error when you run the installer.

Edit: I tried it and it works.

__________________
Most people have evil spirits. But I... I have stupid spirits.

Quick Link | Report this post to a moderator | IP: Logged

{_trueparuex^} is offline Old Post 09-17-2006 09:11 AM
Click Here to See the Profile for {_trueparuex^} Click here to Send {_trueparuex^} a Private Message Find more posts by {_trueparuex^} Add {_trueparuex^} to your buddy list Edit/Delete Message Reply w/Quote
v-tal
Junior Member

Registered: May 2002
From: Belarus

Turning CRCCheck off is not good thing.
Look at !packhdr command. With it you can invoke ResourceHacker whithin your script to remove icon from installer stub.
Read ResourceHacker help for commandline options.

Quick Link | Report this post to a moderator | IP: Logged

v-tal is offline Old Post 09-17-2006 10:56 AM
Click Here to See the Profile for v-tal Click here to Send v-tal a Private Message Find more posts by v-tal Add v-tal to your buddy list Edit/Delete Message Reply w/Quote
Yathosho
Forum King

Registered: Jan 2002
From: AT-DE

!packhdr with ResourceHacker should just work well, i'm using it to add a 2nd icon to the installer. i'm wondering though how windows treats an exe without icon. will it display that empty window icon?

__________________
Fossil 2002 III | VISBOT TV | NSIS Icons | PimpBot | Old Winamp Forums look?

Quick Link | Report this post to a moderator | IP: Logged

Yathosho is offline Old Post 09-17-2006 11:14 AM
Click Here to See the Profile for Yathosho Click here to Send Yathosho a Private Message Visit Yathosho's homepage! Find more posts by Yathosho Add Yathosho to your buddy list Edit/Delete Message Reply w/Quote
Animaether
Major Dude

Registered: Jun 2001
From:

yes, it displays the empty window icon, flat if it's small, the fancy angled+shaded one if it's big (XP anyway).

Quick Link | Report this post to a moderator | IP: Logged

Animaether is offline Old Post 09-17-2006 11:26 AM
Click Here to See the Profile for Animaether Click here to Send Animaether a Private Message Find more posts by Animaether Add Animaether to your buddy list Edit/Delete Message Reply w/Quote
{_trueparuex^}
Senior Member

Registered: Dec 2005
From: Glow

Yes !packhdr is definitely the right way to go.

!packhdr "exehead.tmp" '"C:\Program Files\ResHack\ResHacker.exe" -delete exehead.tmp, exehead.tmp, icongroup,103,'

That should do the trick.

__________________
Most people have evil spirits. But I... I have stupid spirits.

Quick Link | Report this post to a moderator | IP: Logged

{_trueparuex^} is offline Old Post 09-17-2006 11:33 AM
Click Here to See the Profile for {_trueparuex^} Click here to Send {_trueparuex^} a Private Message Find more posts by {_trueparuex^} Add {_trueparuex^} to your buddy list Edit/Delete Message Reply w/Quote
Backland
Senior Member

Registered: Sep 2006
From:

Thanks for the help guys.

I was wondering how difficult it would be to add such a functionality to NSIS itself?

Quick Link | Report this post to a moderator | IP: Logged

Backland is offline Old Post 09-17-2006 12:37 PM
Click Here to See the Profile for Backland Click here to Send Backland a Private Message Click Here to Email Backland Find more posts by Backland Add Backland to your buddy list Edit/Delete Message Reply w/Quote
Afrow UK
Moderator

Registered: Nov 2002
From: Shropshire, England

You just need to put that code into your script.

-Stu

__________________
afrowuk.co.uk

Quick Link | Report this post to a moderator | IP: Logged

Afrow UK is offline Old Post 09-17-2006 04:00 PM
Click Here to See the Profile for Afrow UK Click here to Send Afrow UK a Private Message Click Here to Email Afrow UK Visit Afrow UK's homepage! Find more posts by Afrow UK Add Afrow UK to your buddy list Edit/Delete Message Reply w/Quote
Comm@nder21
Major Dude

Registered: Jul 2003
From: germany, b-w

very nice and clean solution, i like it
thus posted in the wiki:
http://nsis.sourceforge.net/Install..._Icon_Ressource

__________________
hand by comm@nder21
----------
WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility

Quick Link | Report this post to a moderator | IP: Logged

Comm@nder21 is offline Old Post 09-17-2006 07:11 PM
Click Here to See the Profile for Comm@nder21 Click here to Send Comm@nder21 a Private Message Click Here to Email Comm@nder21 Visit Comm@nder21's homepage! Find more posts by Comm@nder21 Add Comm@nder21 to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 09:32 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > Installer with no icon
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON