
A sample script to add Windows Version Tab information to your NSIS installer execuatables!

You will need Resource Hacker:  http://www.users.on.net/johnson/resourcehacker

This script assumes that you extracted Resource Hacker to c:\program files\reshacker\

Modify this path in test.nsi if your path is different!

After compiling test.exe, right click the exe and view the Properties

Yes!  We have Version Tab!!!

w00t!

Ok, but, but...  I don't want that information on MY Version Tab!

To modify the version information to suit your application:

1) Compile test.exe

2) Open test.exe in Resource Hacker

3) Open VersionInfo -> 1 -> 1033

4) Change all pertinent information

Note: you can even add your own values and information!

Example:  VALUE "NSIS_ROCKS!", "Hell Yeah!!!"

5) Click the "Compile Script" button

6) Click the Action Menu -> Save Resource as a *.RES file...

7) Type: test (for the file name), Save in: Desktop, then click Save

Note: this test uses test.res, of course for your real application you will most likely
want to save this RES with a more logical name, like version.res.

Note: the new test.res will be saved to your desktop (unless you told it where to go).

8) Close Resource Hacker.  It will ask "Resources have been Modified, do you wish to save
changes?  Normally you would click Yes, but click No this time because we already saved
the changes to test.res.

9) Move test.res to our test folder, overwriting the old copy.

10) Compile test.exe again and view properies --- b00m!  Version Info Updated!

This is the fully automatic method which can be implemented seamlessly into all of your
NSIS scripts to automagically add Version Tabs for your installers.

If you prefer the manual method you can uncomment that section in test.nsi and each time
you compile your exe, Resource Hacker will open and you will have to manually replace
the Version Info resource (ugh!).  Automatic mode is much simpler.  ;)

Note: check ResHacker.log for any errors

Enjoy!

Darren Winter / Sgt-D
sgt-d@planetquake.com
