From a6231ca0c920d41f7f0b2006e5e076106007845d Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 26 Jun 2007 17:37:52 +0000 Subject: [PATCH] applied patch #1742562 to fix bug #1742255 - GetFileVersion shows incorrect version for .NET Framework 2 git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5171 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/FileFunc.nsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Include/FileFunc.nsh b/Include/FileFunc.nsh index 9b5d8d47..745d1e10 100644 --- a/Include/FileFunc.nsh +++ b/Include/FileFunc.nsh @@ -1330,9 +1330,11 @@ RefreshShellIcons GetDllVersion '$0' $1 $2 IfErrors error - IntOp $3 $1 / 0x00010000 + IntOp $3 $1 >> 16 + IntOp $3 $3 & 0x0000FFFF IntOp $4 $1 & 0x0000FFFF - IntOp $5 $2 / 0x00010000 + IntOp $5 $2 >> 16 + IntOp $5 $5 & 0x0000FFFF IntOp $6 $2 & 0x0000FFFF StrCpy $0 '$3.$4.$5.$6' goto end