Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I extract a substring in InnoSetup?

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

like image 579
Josh Kelley Avatar asked Oct 10 '14 13:10

Josh Kelley


1 Answers

InnoSetup's Copy function can do this.

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

Pascal strings are indexed starting at 1.

like image 147
Josh Kelley Avatar answered Sep 27 '22 16:09

Josh Kelley