When writing Pascal scripting code for InnoSetup, how do I extract a substring?
InnoSetup's Copy function can do this.
Copy
function Copy(S: String; Index, Count: Integer): String;
Pascal strings are indexed starting at 1.