LStrCmp: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(hint to StrCmpS)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{PageAuthor|Afrow UK}}
{{PageAuthor|Afrow UK}}
== Download ==
<attach>LStrCmp.zip</attach>


== Description ==
== Description ==


Calls kernel32::LStrCmp API to compare two strings case sensitively. NSIS's StrCmp does not compare strings case sensitively.
Calls kernel32::LStrCmp API to compare two strings case sensitively. NSIS's StrCmp does not compare strings case sensitively.
''Note: with NSIS v2.13, StrCmpS has been introduced as a native script command, which does the same as the code described below''


'''Requires:''' System.dll
'''Requires:''' System.dll
Line 26: Line 32:
where the DLL is put).
where the DLL is put).
This is completely optional.
This is completely optional.
== Download ==
<span style="font-weight: bold">[[File:LStrCmp.zip|Download from here]].</span>


[[Category:String Functions]]
[[Category:String Functions]]

Latest revision as of 21:06, 5 April 2007

Author: Afrow UK (talk, contrib)


Download

LStrCmp.zip (816 bytes)

Description

Calls kernel32::LStrCmp API to compare two strings case sensitively. NSIS's StrCmp does not compare strings case sensitively.

Note: with NSIS v2.13, StrCmpS has been introduced as a native script command, which does the same as the code described below

Requires: System.dll

Usage

${LStrCmp} str1 str2 jump_if_equal jump_if_not_equal

Usage 2

${LStrCmpVar} $R1 ; Temp var to be used by LStrCmp ($R0 used by default)
${LStrCmp} str1 str2 jump_if_equal jump_if_not_equal

Script header settings

!define SystemDLLPath "$EXEDIR\DLLs\System.dll"
!include LStrCmp.nsh

Sets the path of System DLL to call (if you want to control where the DLL is put). This is completely optional.