It is all present in the documentation at
Inno Setup Help[
^]. See also the
Inno Setup Knowledge Base[
^] and the
Inno Setup FAQ[
^].
Add the 3rd party executable to the archive using the
[Files] section[
^] and specify the temporary directory as destination:
[Files]
Source: "3rdparty.exe"; DestDir: "{tmp}"
To install the 3rdparty executable execute it in the
[Run] section[
^]:
[Run]
Filename: "{tmp}\3rdparty.exe"
See the provided links for additional parameters like passing arguments (e.g. the destination for the DLL).
If the 3rd party executable must be executed in the destination directory, change the
{tmp}
path in the above examples to your app path
{app}
and delete it after installation:
[Files]
Source: "3rdparty.exe"; DestDir: "{app}"; Flags: deleteafterinstall
[Run]
Filename: "{app}\3rdparty.exe"