|
|
#1 |
|
Junior Member
Join Date: Jun 2009
Posts: 2
|
GetDLLVersion returning a negative release version
I'm getting back a negative release value after using GetDLLVersion.
code: The actual version for System.dll is 2.0.50727.42. After the call to GetDLLVersion, code: Notice that $R4 is negative. Curiously enough, -14808 is the difference between 2^16-1 (65535) and 50727. As a sanity test, I included the IntCmpU check. Following that, the "Not equal" messagebox is displayed. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,779
|
stupid nsis sign extension, try
intop $R4 $R1 >> 16 intop $R4 $R4 & 0xFFFF IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2009
Posts: 2
|
Oh I get it. Perfect.
Thanks Anders. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|