Small and quick Detect Internet Explorer Version: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.)
m (Adding new author and category links.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{PageAuthor|Joel}}
== The Function ==
== The Function ==
<highlight-nsis>
<highlight-nsis>
Line 26: Line 28:
</highlight-nsis>
</highlight-nsis>


Page author: [[User:Joelito|Joelito]]
[[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