Small and quick Detect Internet Explorer Version
From NSIS Wiki
Jump to navigationJump to search
Author: Joel (talk, contrib) |
The Function
;This is my small contrib for Nsis. ;Quick and small script for detect IE Version ;Made by me: Dark_Boy :p ;Note: didn�t steal code from intersol... ;this was based on GetDllversion... !define IEver "5" ;Put the minimum version of IE Function GetIEVer GetDllVersion "$SYSDIR\mshtml.dll" $R0 $R2 IntOp $R2 $R0 / 0x00010000 ;First digit, dude StrCpy $0 "$R2" IntCmp $0 ${IEver} SameVer BadVer GoodVer BadVer: MessageBox MB_YESNO|MB_ICONSTOP "You got $0.x of Internet Explorer. $\r$\We need ${IEver}.x or more. $\r$\n�Continue?" IDYES GoodVer Abort SameVer: GoodVer: FunctionEnd Function .onInit Call GetIEVer FunctionEnd