From b829abf127ce0f1544cde99f0244a10483c7bbf2 Mon Sep 17 00:00:00 2001 From: Exeldro Date: Sun, 11 Dec 2022 13:13:51 +0100 Subject: [PATCH] installer check obs install --- installer.iss.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/installer.iss.in b/installer.iss.in index 8acda81..05d2371 100644 --- a/installer.iss.in +++ b/installer.iss.in @@ -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;