Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] installer: use modern innosetup features #593

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
211 changes: 0 additions & 211 deletions installer/exec-with-capture.inc.iss

This file was deleted.

19 changes: 19 additions & 0 deletions installer/helpers.inc.iss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,25 @@ begin
Result[i]:=#0;
end;

// Search for the last occurence of a substring in another string or zero if not found.
// RPos exists as a preprocessor function in innosetup, but not as a scripting function.
function RPos(SubStr, S: AnyString): Integer;
var
Len,i:Longint;
begin
Len:=Length(SubStr);

i:=Length(S)-Len+1;
while i>0 do begin
If (SameStr(SubStr,Copy(S,i,Len))) then begin
Result:=i;
Exit;
end;
end;

Result:=0;
end;

function AppendToArray(var AnArray:TArrayOfString;Str:String):Integer;
begin
Result:=GetArrayLength(AnArray)+1;
Expand Down
Loading