user441222
user441222

Reputation: 2001

How to check if a string contains a given substring?

I need to find out if string contains a given substring.

For example, if I'm looking for the substring ABC in a string like this:

S := 'ABC String';

I should get result True, whilst for the following string I should get result False:

S := 'DEF String';

How to check if a string contains a substring in InnoSetup ?

Upvotes: 14

Views: 15703

Answers (1)

Jan Doggen
Jan Doggen

Reputation: 9096

Innosetup has a Pos() function that works exactly like Delphi's. See the Support Functions Reference at http://www.jrsoftware.org/ishelp/index.php?topic=scriptfunctions

Upvotes: 25

Related Questions