Installer without icon resource: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(added category) |
(<highlight-nsis>) |
||
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]] |
Revision as of 19:14, 17 September 2006
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.