Add a third-party program to an installer

Asked

Viewed 612 times

0

I’m using the InnoSetup to generate an installer for an application Delphi.

But that same application depends on the program R, would like to know if it is possible to connect the installer of the R to my installer.

2 answers

2


Yes, it is possible. Basically you can add the installer 'R', as a resource on your own installed, and treat so that your process awaits the installation of 'R''

Here is an example, where dotnetfx35 is required:

[Files] Source: D:\dsv\projetos\geral\Instalador\nfe\dotnetfx35_sp1.exe; DestDir: {#MyAppDirIns}; Flags: ignoreversion

[Run] Filename: {#MyAppDirIns}\dotnetfx35_sp1.exe;

  • but I can’t couple the r installer, for the guy to be required to install when I’ve been installing my program?

  • That’s what’s gonna happen. When running your installer, if this routine comes first, it will open the exe forcing the user to install R, after that, it will follow the installation of your App.

  • Very good worked properly.

0

Good night,

Just to reinforce with another example, I’ll show you part of my company’s ERP installation script:

[Files]
Source: "..\..\..\SetupSystec\Systec\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs promptifolder; Languages:  brazilianportuguese; Permissions: system-full
Source: "..\..\..\SetupSystec\Componentes\*"; DestDir: "{app}\Componentes\"; Flags: ignoreversion createallsubdirs recursesubdirs

[Run]
Filename: {app}\Componentes\TDBGrid7.0.0285_patch.exe
Filename: {app}\Componentes\psqlodbc.msi; Flags: shellexec waituntilterminated

In this example, the "Components" folder receives files from third parties. By putting the programs in the same, tag [Run] just indicate how you want the programs to be executed. For your installation to continue only after the X program installed, put the flag "Flags: shellexec waituntilterminated"

  • congratulations on the attitude, will help others.

  • @Guilhermelima Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.