Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use innosetup to pack my program,in the mean time,i need install a exe format third-part file. How to combine them so I just need once installation instead of installing the dll and my program individually?

What I have tried:

The documents of innosetup is too few.
Posted
Updated 20-Apr-16 21:08pm
Comments
Sergey Alexandrovich Kryukov 20-Apr-16 22:02pm    
Is it Windows? If so, I would strongly recommend Wix.
—SA
TimGallin 20-Apr-16 22:27pm    
Does this tool have the function? Writing a function that will excute an installation of a exe format package.
Sergey Alexandrovich Kryukov 20-Apr-16 22:40pm    
If has pretty much everything. And it legitimately follows MSBuild standard. What you mention is the element CustomAction. And all those "combine them" is just ridiculous — it's in the very basic features of Wix.
—SA

1 solution

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"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900