Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Header file for getting file version information (http://forums.winamp.com/showthread.php?t=326458)

jiake 25th January 2011 07:20

Header file for getting file version information
 
1 Attachment(s)
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.

Anders 25th January 2011 10:46

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!

jiake 25th January 2011 13:58

1 Attachment(s)
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:


All times are GMT. The time now is 17:52.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.