Josh Kelley
Josh Kelley

Reputation: 58382

How do I extract a substring in InnoSetup?

When writing Pascal scripting code for InnoSetup, how do I extract a substring?

Upvotes: 9

Views: 6862

Answers (1)

Josh Kelley
Josh Kelley

Reputation: 58382

InnoSetup's Copy function can do this.

function Copy(S: String; Index, Count: Integer): String;

Pascal strings are indexed starting at 1.

Upvotes: 12

Related Questions