Fix Inno Setup compile error and release script sed pattern

- Declare ErrorCode variable in InitializeSetup function
- Remove orphan var block at end of Code section
- Fix sed pattern in release.sh to only match version inside quotes
- Restore AboutForm.cs variable name damaged by previous sed

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-03 10:52:21 +02:00
parent 8ac4c12b46
commit abd52b351a
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -72,6 +72,8 @@ begin
end;
function InitializeSetup(): Boolean;
var
ErrorCode: Integer;
begin
Result := True;
@@ -81,11 +83,8 @@ begin
'Soll die Download-Seite geoeffnet werden?',
mbConfirmation, MB_YESNO) = IDYES then
begin
ShellExec('open', 'https://dotnet.microsoft.com/download/dotnet/8.0/runtime', '', '', SW_SHOWNORMAL, ewNoWait, ResultCode);
ShellExec('open', 'https://dotnet.microsoft.com/download/dotnet/8.0/runtime', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
end;
Result := False;
end;
end;
var
ResultCode: Integer;