Archive: Header file for getting file version information


Header file for getting file version information
The script is written by Anders originally and collected by me. This is an alternative choice for getting the version informations of an EXE or DLL intead of the MoreInfo plug-in.


You should make a wiki page for something like this, it just gets lost on the forum.

...also, why did you remove the LogicLib usage? The logic lib overhead is a single global variable that you end up declaring anyway if your installer uses MUI etc...
Even if you don't want to use the logiclib, you could use ("dynamic") labels, direct jumps are hard to get right.

Finally, you sort of broke my code, if you check the pastebin code you see that I'm checking GetLastError even if GetFileVersionInfo returns != 0 since a comment on MSDN said that you could crash if you don't do this!


I think if one of the steps fails, it always must push error to stack, so I use IntCmp to jump to one common label to push error message. Additionally, I will look over the issue you said and update it.

Updated for checking GetLastError: