Small and quick Detect Internet Explorer Version: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author links.)
m (Adding new author and category links.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{|align=right
{{PageAuthor|Joel}}
|<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 29: Line 27:
FunctionEnd
FunctionEnd
</highlight-nsis>
</highlight-nsis>
[[Category:Other Products Version Detection Functions]]

Latest revision as of 13:51, 24 June 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