Small and quick Detect Internet Explorer Version: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (SF: Joelito -> Joel.) |
m (Updated author links.) |
||
Line 1: | Line 1: | ||
{|align=right | |||
|<small>Author: [[{{ns:2}}:Joel|Joel]] ([[{{ns:3}}:Joel|talk]], [[{{ns:-1}}:Contributions/Joel|contrib]])</small> | |||
|} | |||
<br style="clear:both;"> | |||
== The Function == | == The Function == | ||
<highlight-nsis> | <highlight-nsis> | ||
Line 25: | Line 29: | ||
FunctionEnd | FunctionEnd | ||
</highlight-nsis> | </highlight-nsis> | ||
Revision as of 03:04, 30 April 2005
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