Version Info Tabsheets for NSIS: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
(Changed note about the outdated information on this page)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{PageAuthor|sgt-d}}
{{PageAuthor|sgt-d}}
<div style="background-color:#FFB3B3;border:1px solid #FF1111;color:#A20000;padding:0.4em"><b>The technique described on this page can now be accomplished in NSIS 2 & 3 without using 3rd-party tools by using VIProductVersion and VIAddVersionKey</b></div>


== Description ==
== Description ==
Line 9: Line 11:
Please download [http://forums.winamp.com/attachment.php?s=&postid=931862 VIT.ZIP] and read the readme.txt for all of the gory details!
Please download [http://forums.winamp.com/attachment.php?s=&postid=931862 VIT.ZIP] and read the readme.txt for all of the gory details!


== Extension ==
No need for these steps...
VIAddVersionKey can do that instead ;)
<highlight-nsis>
VIAddVersionKey /lang=${LANG_ENGLISH} CompanyName "My Company"
</highlight-nsis>
There are a number of keys: ProductName, Comments, and much more. Refer to reference documentation.
== The Script ==
== The Script ==
VIT Code...
VIT Code...
Line 42: Line 37:
sectionend
sectionend
</highlight-nsis>
</highlight-nsis>
== Contact ==
== Contact ==
Questions?  Comments?  BUG ME!
Questions?  Comments?  BUG ME!

Latest revision as of 15:20, 8 October 2016

Author: sgt-d (talk, contrib)


The technique described on this page can now be accomplished in NSIS 2 & 3 without using 3rd-party tools by using VIProductVersion and VIAddVersionKey

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