Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test if an application (.exe) is built with runtime package

Tags:

delphi

How may I test in coding if my .exe Delphi application is built with runtime package or is single .exe?

like image 557
Chau Chee Yang Avatar asked Dec 17 '22 00:12

Chau Chee Yang


1 Answers

Another possibility:

function UsesRuntimePackages: Boolean;
begin
  Result := FindClassHInstance(TObject) <> HInstance;
end;
like image 160
Ondrej Kelle Avatar answered May 25 '23 04:05

Ondrej Kelle