Skip to content
⌘ NSIS Forum Archive

Different version of function StrContins

4 posts

tmxk#edited

Different version of function StrContins

Hi all,

I found there are 2 different versions of function StrContains. One of them is defined in function EnvVarUpdate. Can anybody tell which one is the latest?
Thanks

Jue

http://nsis.sourceforge.net/StrContains

http://nsis.sourceforge.net/Environmental_Variables:_append%2C_prepend%2C_and_remove_entries#Function_Code
Comperio#
What does it matter which is the "latest" if both do the job?

If you wanted something more consistent, then I'd suggest using the WordFindS function (part of WordFunc.nsh). It's distributed with NSIS and is (in my opinion) easier to use. (Documentation and examples found in NSIS help, Appendix E)
tmxk#
They are not compatible with each other. Anyway, I will try with your suggestion.
Thanks for your reply.