Skip to main content
Email Password   helpLost your password?
Screenshot - dotnetfx_installer1.jpg

Screenshot - dotnetfx_installer3.jpg

Introduction

This article contains an InnoSetup install script that downloads (if setup files don't exist) and installs the .NET Framework 1.1/2.0/3.5 and its dependencies.

Background

Once upon a time, I needed an installer for my .NET applications. I knew that I could use the "genius" ClickOnce installer, but in my opinion it has a bad interface and is not very handy. Then I came across a script for InnoSetup that had everything I wanted, but unfortunately it was only for .NET 1.1. So, I spent a few hours (became more over time) in InnoSetup and modified it to my needs.

Details

The source code is written somewhat modular. The folder structure looks like this:

Screenshot - dotnetfx_content.jpg

Mostly you may have to tweak the setup.iss because of different Windows version / service pack version check depending on the version of .NET Framework you need.

If a dependency (product) is not installed, the script checks if the product's setup exists inside the dependencies directory, (.\MyProgramDependencies). If they don't exist there, it tries to download them (except for Windows Service Packs). This means a support for offline installing via CD or DVD is also possible. With the newest version, there was also support for 32-bit (x86) and 64-bit (x64) OS including Itanium (ia64) added.

Screenshot - dotnetfx_installer2.jpg

Screenshot - dotnetfx_installer4.jpg

The installation routine of the dependencies is automatic, and they run in quiet or semi quiet mode. Therefore no user interaction is needed, except for Internet Explorer 6. This script also uses [CostumMessages] so that you can easily add multi-language to your setup and may configure some settings (e.g. the dependencies directory) without looking at the [Code] part.

Applications used for the script are:

Known Problems

If dependencies are needed, the required free hard drive size is incorrect.

Points of Interest

Special thanks go to Ted Ehrich who created the .NET Framework 1.1 script. Well, I am sure that this script will serve me in the future very well and I hope you may like it too.

History

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralBug with kb835732 on Windows XP Prof Pin
Batzen
17:22 5 Nov '09  
GeneralUrgent: Error installing .Net Framework 3.5 sp1 on Vista Pin
Ant2100
1:54 30 Oct '09  
GeneralRe: Urgent: Error installing .Net Framework 3.5 sp1 on Vista Pin
stfx
1:53 31 Oct '09  
GeneralRe: Urgent: Error installing .Net Framework 3.5 sp1 on Vista Pin
Ant2100
10:33 31 Oct '09  
QuestionPossible bug? Unknown type PChar Pin
Stumproot
0:19 17 Sep '09  
AnswerRe: Possible bug? Unknown type PChar Pin
stfx
8:16 17 Sep '09  
GeneralRe: Possible bug? Unknown type PChar Pin
McoreD
14:06 26 Sep '09  
GeneralPrepareToInstall - stupid question ? Pin
barabum
8:10 15 Sep '09  
GeneralRe: PrepareToInstall - stupid question ? Pin
stfx
8:23 17 Sep '09  
GeneralRe: PrepareToInstall - stupid question ? Pin
barabum
1:23 18 Sep '09  
QuestionWrong options Pin
alex_ger
10:37 14 Sep '09  
Generalcheck for file is use Pin
Brandon Holland
4:47 9 Sep '09  
GeneralRe: check for file is use Pin
stfx
9:10 9 Sep '09  
QuestionOffline files Pin
alex_ger
13:40 8 Sep '09  
AnswerRe: Offline files [modified] Pin
stfx
9:08 9 Sep '09  
GeneralIs this Correct? Pin
voilapjr
5:20 7 Sep '09  
GeneralRe: Is this Correct? Pin
stfx
7:29 7 Sep '09  
GeneralRe: Is this Correct? Pin
voilapjr
9:08 10 Sep '09  
GeneralRe: Is this Correct? Pin
stfx
10:15 10 Sep '09  
GeneralRe: Is this Correct? Pin
voilapjr
13:00 10 Sep '09  
GeneralError - Unknown identifier 'AddProduct' - In msi20.iss Pin
Ant2100
9:50 3 Sep '09  
GeneralRe: Error - Unknown identifier 'AddProduct' - In msi20.iss Pin
stfx
10:19 3 Sep '09  
GeneralRe: Error - Unknown identifier 'AddProduct' - In msi20.iss Pin
Ant2100
10:20 3 Sep '09  
GeneralRe: Error - Unknown identifier 'AddProduct' - In msi20.iss Pin
stfx
10:47 3 Sep '09  
GeneralRe: Error - Unknown identifier 'AddProduct' - In msi20.iss Pin
Ant2100
11:08 3 Sep '09  


Last Updated 2 Sep 2009 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009