1、dll 导出的函数 加上delayload的选项
function IsDX9Exist():Integer; external 'IsDX9Exist@files:CheckInstalled.dll stdcall delayload';
2、解压
function InitializeSetup(): Boolean;
。。 ExtractTemporaryFile('PhysXLoader.dll'); Result := True;
。。
3、调用
strPath := ExpandConstant('{tmp}{/}PhysXLoader.dll'); if 0 <> LoadDLL(strPath, iErrCode) then begin
。。。
end;