Can inno setup call external function for check parameter ?

126 views
Skip to first unread message

Eric Gambert

unread,
Nov 17, 2023, 7:19:43 AM11/17/23
to innosetup

Greetings to all,

In the file section, we are using a Check parameter. The function is called from a DLL.

[Files]

Source: "MYPROG.EXE"; DestDir: "{app}"; Check: MyProgCheck

Source: MyDll.dll; Flags: dontcopy

It seems that for Check parameters, we cannot call the external function directly, it has to be done through an internal function.

The only workaround we have found includes to call the external function from an internal one.

[Code]

Function IntMyProgCheck: Boolean; External ' MyProgCheck@files:MyDll.dll ';

Function MyProgCheck: Boolean;

Begin

  Result := IntMyProgCheck;

End;

It works, but we were wondering if there is a way to get something like:

[Code]

Function MyProgCheck: Boolean; External 'MyProgCheck@files:MyDll.dll stdcall';

Thank you in advance

 

Inno SetUp Compiler 6.2.2

 

Reply all
Reply to author
Forward
Message has been deleted
0 new messages