Skip to content

Commit

Permalink
installer check obs install
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Dec 11, 2022
1 parent 597d1ee commit b829abf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions installer.iss.in
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,14 @@ begin
Exec(ExpandConstant('{tmp}\msvc-redist-helper.exe'), '2019', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
end;

/////////////////////////////////////////////////////////////////////
function NextButtonClick(PageId: Integer): Boolean;
begin
Result := True;
if (PageId = wpSelectDir) and not FileExists(ExpandConstant('{app}\bin\64bit\obs64.exe')) then begin
MsgBox('OBS Studio (bin\64bit\obs64.exe) does not seem to be installed in that folder. Please select the correct folder.', mbError, MB_OK);
Result := False;
exit;
end;
end;

0 comments on commit b829abf

Please sign in to comment.