Installer without icon resource: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(added category) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
* Because the Icon Resource adds additional overhead to any installer using it | * Because the Icon Resource adds additional overhead to any installer using it | ||
== How do | == How do I do that? == | ||
You'll find the easiest known method on the second page of the forumthread, but i'll post it here again: | You'll find the easiest known method on the second page of the forumthread, but i'll post it here again: | ||
Line 11: | Line 11: | ||
Then add this compile time command line at the end of your .nsi script: | Then add this compile time command line at the end of your .nsi script: | ||
<highlight-nsis> | |||
!packhdr "exehead.tmp" '"C:\Program Files\ResHack\ResHacker.exe" -delete exehead.tmp, exehead.tmp, icongroup,103,' | !packhdr "exehead.tmp" '"C:\Program Files\ResHack\ResHacker.exe" -delete exehead.tmp, exehead.tmp, icongroup,103,' | ||
</highlight-nsis> | |||
Of course you may need to adjust the path you installed ''Resource Hacker'' to. | Of course you may need to adjust the path you installed ''Resource Hacker'' to. | ||
[[Category:Code_Examples]] | [[Category:Code_Examples]] |
Latest revision as of 08:15, 20 May 2008
This is a "HowTo" to create an Installer that has no icon resource.
Why that?
- Because you might want to let your User's System decide what icon to show, see this forumthread: [1]
- Because the Icon Resource adds additional overhead to any installer using it
How do I do that?
You'll find the easiest known method on the second page of the forumthread, but i'll post it here again:
First, download and install Resource Hacker [2] to your system.
Then add this compile time command line at the end of your .nsi script:
!packhdr "exehead.tmp" '"C:\Program Files\ResHack\ResHacker.exe" -delete exehead.tmp, exehead.tmp, icongroup,103,'
Of course you may need to adjust the path you installed Resource Hacker to.