Click here to Skip to main content
14,774,665 members
Articles » Development Lifecycle » DevOps & Installation » General
Article
Posted 13 Oct 2007

Tagged as

Stats

1.3M views
23.2K downloads
377 bookmarked

Inno Setup Dependency Installer

Rate me:
Please Sign up or sign in to vote.
4.89/5 (162 votes)
22 Dec 2020CPOL
Download and install any dependency such as .NET, Visual C++ or SQL Server during your application's installation!
In this article, you will see the installation, usage, details and dependencies of Inno Setup Dependency Installer.

Download page

Introduction

Inno Setup Dependency Installer can download and install any dependency such as .NET, Visual C++ or SQL Server during your application's installation. In addition, it is easy to add your own dependencies as well.

Installation and Usage

  1. Download and install Inno Setup 6.1+.
  2. Download and extract the script from here or the official Github repository.
  3. Open the extracted setup.iss file.
  4. Comment out dependency defines to disable installing them and leave only dependencies that need to be installed:
    • #define UseVC2013 <-- will be installed
    • //#define UseVC2013 <-- commented out and will not be installed
  5. Modify other sections like [Setup] [Files] [Icons] as necessary.
  6. Build setup using Inno Setup compiler.

Details

Ready to Install page

You have two ways to distribute the dependency installers. By default, the dependency will be downloaded from the official website once it is defined as required in the setup.iss. Another way is to pack the dependency into a single setup.exe file. To do so, you need:

  • Include the dependency setup file by defining the source:

    Source: "dxwebsetup.exe"; Flags: dontcopy noencryption
  • Call the ExtractTemporaryFile() function before AddDependency():

    ExtractTemporaryFile('dxwebsetup.exe');

The installation routine of the dependencies is automatic, and in quiet or semi quiet mode. Therefore, no user interaction is needed.

Dependencies

  • .NET
    • .NET Framework 1.1
    • .NET Framework 1.1 Service Pack 1 (Patch)
    • .NET Framework 2.0 Service Pack 2
    • .NET Framework 3.5 Service Pack 1
    • .NET Framework 4.0 Client
    • .NET Framework 4.0 Full
    • .NET Framework 4.5.2
    • .NET Framework 4.6.2
    • .NET Framework 4.7.2
    • .NET Framework 4.8
    • .NET Core Runtime 3.1
    • ASP.NET Core Runtime 3.1
    • .NET Desktop Runtime 3.1
    • .NET Runtime 5.0
    • ASP.NET Core Runtime 5.0
    • .NET Desktop Runtime 5.0
  • C++
    • Visual C++ 2005 Service Pack 1 Redistributable
    • Visual C++ 2008 Service Pack 1 Redistributable
    • Visual C++ 2010 Service Pack 1 Redistributable
    • Visual C++ 2012 Update 4 Redistributable
    • Visual C++ 2013 Update 5 Redistributable
    • Visual C++ 2015-2019 Redistributable
  • SQL
    • SQL Server 2008 R2 Service Pack 2 Express
    • SQL Server 2012 Service Pack 4 Express
    • SQL Server 2014 Service Pack 3 Express
    • SQL Server 2016 Service Pack 2 Express
    • SQL Server 2017 Express
    • SQL Server 2019 Express
  • DirectX End-User Runtime
  • Windows Installer 4.5

Credits

Thanks to the community for sharing many fixes and improvements. To contribute, please create a pull request on the official Github repository.

History

  • 22nd December, 2020: Initial version

License

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

Share

About the Author

DomGries
Austria Austria
No Biography provided

Comments and Discussions

 
QuestionVB dependencies Pin
gwittlock23-Dec-20 7:57
Membergwittlock23-Dec-20 7:57 
AnswerRe: VB dependencies Pin
Michael.Ragsdale23-Dec-20 8:33
MemberMichael.Ragsdale23-Dec-20 8:33 
GeneralRe: VB dependencies Pin
gwittlock23-Dec-20 10:01
Membergwittlock23-Dec-20 10:01 
GeneralRe: VB dependencies Pin
Michael.Ragsdale23-Dec-20 10:03
MemberMichael.Ragsdale23-Dec-20 10:03 
SuggestionMicrosoft WebView2 (Edge Chromium) Pin
Michael.Ragsdale23-Dec-20 8:29
MemberMichael.Ragsdale23-Dec-20 8:29 
Questionnetcorecheck.exe source code Pin
SparkyDude7-Dec-20 14:36
MemberSparkyDude7-Dec-20 14:36 
AnswerRe: netcorecheck.exe source code Pin
Michael.Ragsdale23-Dec-20 8:29
MemberMichael.Ragsdale23-Dec-20 8:29 
QuestionVisual C++ 2010 SP1 Pin
Yves Goergen1-Dec-20 3:26
MemberYves Goergen1-Dec-20 3:26 
QuestionBest way Pin
ltdeta25-Nov-20 1:37
Memberltdeta25-Nov-20 1:37 
GeneralMy vote of 5 Pin
Veli V25-Nov-20 1:01
MemberVeli V25-Nov-20 1:01 
QuestionCould you please add Universal C Runtime 2019 support? Pin
tweber20121-May-19 9:00
Membertweber20121-May-19 9:00 
QuestionExtracting Pin
tweber201227-Apr-19 14:18
Membertweber201227-Apr-19 14:18 
QuestionIssues with vcredist2017 Pin
Daniel Montero Hernández5-Jun-18 10:09
MemberDaniel Montero Hernández5-Jun-18 10:09 
AnswerRe: Issues with vcredist2017 Pin
tweber201227-Apr-19 14:24
Membertweber201227-Apr-19 14:24 
GeneralMy vote of 5 Pin
Member 1369809026-Feb-18 12:54
MemberMember 1369809026-Feb-18 12:54 
QuestionCzech translation Pin
Milan Cizek30-Oct-17 21:04
MemberMilan Cizek30-Oct-17 21:04 
QuestionFile encoding Pin
justscribe26-Aug-17 12:09
Memberjustscribe26-Aug-17 12:09 
PraiseWell done ! Pin
RickZeeland23-Aug-17 1:53
mveRickZeeland23-Aug-17 1:53 
QuestionInstalling vcredist offline version displays error message: "An error occured while installing the dependencies..." Pin
acegs15-Aug-17 0:30
Memberacegs15-Aug-17 0:30 
AnswerRe: Installing vcredist offline version displays error message: "An error occured while installing the dependencies..." Pin
acegs17-Aug-17 14:45
Memberacegs17-Aug-17 14:45 
Question.net 4.5 and 4.5.2 missing Pin
nmg19625-May-17 1:28
Membernmg19625-May-17 1:28 
PraiseExcellent!! Pin
Marco Giovanni19-Sep-16 3:51
MemberMarco Giovanni19-Sep-16 3:51 
Question.Net 4.5 Pin
f.digiugno12-May-16 2:42
Memberf.digiugno12-May-16 2:42 
QuestionHelppp Pin
Member 1233397118-Feb-16 5:49
MemberMember 1233397118-Feb-16 5:49 
AnswerRe: Helppp Pin
Member 1233397118-Feb-16 7:22
MemberMember 1233397118-Feb-16 7:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.