Archive: Searching $INSTDIR for String pattern ???


Searching $INSTDIR for String pattern ???
Can I search variables like $INSTDIR for a particular pattern ?

It should look like similar to:

InstallDir "C:\project\aaa\bbb\ccc"
FindInStr $INSTDIR "ccc" IDNO noccc
; Bingo found ccc in installdirpath
goto next
noccc:
InstallDir contains no "ccc"

next:


You can use StrStr to search for a string in a string.


Or you can use the Advanced StrStr for a advanced search of string in a string (See in my signature).