Reference/GetDLLVersion: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=GetDLLVersion= filename user_var(high dword output) user_var(low dword output) Gets the version information from the DLL (or any other executable containing version informati...")
 
 
Line 11: Line 11:
IntOp $R5 $R1 & 0x0000FFFF
IntOp $R5 $R1 & 0x0000FFFF
StrCpy $0 "$R2.$R3.$R4.$R5"</highlight-nsis>
StrCpy $0 "$R2.$R3.$R4.$R5"</highlight-nsis>
''Command introduced with NSIS v1.60''

Latest revision as of 20:36, 4 June 2013

GetDLLVersion

filename user_var(high dword output) user_var(low dword output)

Gets the version information from the DLL (or any other executable containing version information) in "filename". Sets the user output variables with the high and low dwords of version information on success; on failure the outputs are empty and the error flag is set. The following example reads the DLL version and copies a human readable version of it into $0:

GetDllVersion "$INSTDIR\MyDLL.dll" $R0 $R1
IntOp $R2 $R0 / 0x00010000
IntOp $R3 $R0 & 0x0000FFFF
IntOp $R4 $R1 / 0x00010000
IntOp $R5 $R1 & 0x0000FFFF
StrCpy $0 "$R2.$R3.$R4.$R5"

Command introduced with NSIS v1.60