Skip to content
⌘ NSIS Forum Archive

Add Icons and Ressources ?

2 posts

Tragan#

Add Icons and Ressources ?

Hello with all !

Is it possible to add icons or other resources through the script? (without passing by ResHacker or other...)

Because, I would like to keep: CRCCheck on
When with the ( XPStyle On), I would like to put an another...

Thank you for your attention and your possible answers...

Bon Vent ! (good continuation!)
Tragan

PS: Sorry for my bad English 🙁
Yathosho#
you can do that using !packhdr

!packhdr "$%TEMP%\exehead.tmp" "ResHacker.exe -addoverwrite $%TEMP%\exehead.tmp,$%TEMP%\exehead.tmp,icons\MyIcon.ico,icongroup,104,"
however, i suspect the commandline mode of reshacker to be buggy - i never managed to correctly assign an id for the icon, not that it's a big deal.

there are far better resource editors out there (my personal favourite is xn resource edit), but i haven't found one yet that supports commandline shit.