I am trying to install Fox Pro Database drivers from below link using Inno setup script as part of my installation file. To do that I have to check if its already installed or not. If not installed,then the script of installing the db driver should run.
Can some one please help me how to check if Foxpro db driver is installed or not using innosetup script? I checked the Registry and there is no key related to this driver.
Installation Code:
if not ShellExec('', ExpandConstant('{app}\{#MyAppFoxProDbDriverName}'), '', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode)
then
begin
MsgBox('Foxpro DB installer failed to run!' + #13#10 + SysErrorMessage(ResultCode), mbError, MB_OK);
Result:= false;
end
else
begin
Result:= true;
end;