Version Info Tabsheets for NSIS: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added category links.)
m (Adding new author and category links.)
Line 1: Line 1:
{|align=right
{{PageAuthor|sgt-d}}
|<small>Author: [[{{ns:2}}:sgt-d|sgt-d]] ([[{{ns:3}}:sgt-d|talk]], [[{{ns:-1}}:Contributions/sgt-d|contrib]])</small>
 
|}
<br style="clear:both;">
== Description ==
== Description ==
This example shows how you can seamlessly add Windows Version Info Tabsheets to all of your NSIS installer executables!
This example shows how you can seamlessly add Windows Version Info Tabsheets to all of your NSIS installer executables!
Line 40: Line 38:
[mailto:sgt-d@sodpit.com?subject=Version%20Info%20Tabsheets%20for%20NSIS sgt-d at sodpit dot com]
[mailto:sgt-d@sodpit.com?subject=Version%20Info%20Tabsheets%20for%20NSIS sgt-d at sodpit dot com]


[[{{ns:14}}:Code Examples]]
[[Category:Code Examples]]

Revision as of 14:05, 24 June 2005

Author: sgt-d (talk, contrib)


Description

This example shows how you can seamlessly add Windows Version Info Tabsheets to all of your NSIS installer executables! You will need Resource Hacker: http://www.users.on.net/johnson/resourcehacker This script assumes that you have extracted Resource Hacker to: C:\Program Files\ResHack\ResHacker.exe Please download VIT.ZIP and read the readme.txt for all of the gory details!

The Script

VIT Code...

name "Version Info Tabsheets for NSIS"
 
outfile "vit.exe"
 
section vit
 
;edit the path for resource hacker as needed
 
;uncomment the !packhdr you want to use (default is automatic)
 
;once you get comfortable, replace vit.res (below) with your real version info *.res file.
 
;automatic mode (preferred)
!packhdr tmp.dat '"c:\program files\reshack\reshacker.exe" -addoverwrite tmp.dat, tmp.dat, vit.res, versioninfo,1,'
 
;manual mode
;!packhdr tmp.dat '"c:\program files\reshack\reshacker.exe" -add'
 
messagebox mb_ok `This EXE should now contain a Version Info Tabsheet!  If not, consult readme.txt.  To view it, click OK, then right click the EXE -> Properties -> Version Tab.`
 
quit
 
sectionend

Contact

Questions? Comments? BUG ME! Darren Winter / Sgt-D sgt-d at sodpit dot com