Click here to Skip to main content
15,443,981 members
Articles / Operating Systems / Windows
Posted 23 Aug 2006


22 bookmarked

Installing .NET Application in Silent Mode using IExpress

Rate me:
Please Sign up or sign in to vote.
2.61/5 (12 votes)
25 Oct 2006CPOL3 min read
This article explains how to create a self extract package to install .NET application in silent mode


My customer had come up with two requirements when I was trying to deliver my project.

  1. Only one standalone installation packages to install the application in users' machine.
  2. Application should install in silent/unattended mode.

Basically my client's support division was not familiar with the distribution of software or with .NET framework dependency. So my client wanted to maintain a single installer file which would help the admin/support to install the application in the target machine by just double clicking on it.

Silent/unattend/hands-free mode: Installation is one which does not require user interaction, except the indication of progress.

First of all, I thought Visual Studio 2005 came with lots of setup and deployment wizards, so it must have one type which generates the single self extract setup file to install the application and the .NET Framework prerequisites. But when I tried, VS 2005 gave me two files rather than one package.

  1. setup.exe - used to install the .NET prerequisites if the target machine did not have one.
  2. myproject.msi - that contains all my project EXEs and dependency files.

I am sure it could be achieved through the giant deployment software like installshield, wise and winzip. But the license matters made me think a lot. It took some time to find the solution, but I managed to find a way to get it done by using Microsoft IExpress.


IExpress is a utility that comes with the IE Administrative Kit (IEAK) (hidden program :-)).

IExpress creates an output file, and executable (.exe) that contains all the files specified, and the instructions to carry out the extraction of these files. The files are stored compressed in Microsoft's cabinet format.

Click the Start Button, goto Run and type "iexpress".

More information can be found here.


I have assumed that the readers of this article must be familiar with Visual Studio 2005 setup and deployment wizard and functionalities.

Steps to Make Self Extract Package

In brief, the step to make the installation in silent/unattended mode are as given below:

  • Create a project that we want to install.
  • Create a setup and deployment wizard that will install our application in the target machine.
  • In the 'File System' window of the setup project, add the primary output of our application.
  • View the 'User Interface' window of the setup project. Remove all the UI dialogs from Install>start, Install > progress and Install > End.
  • It depends on the requirement, you may leave progress bar dialog or confirmation dialogue to notify the user that the setup is complete. (optional)
  • Make sure that the property 'Create setup program to install prerequisite components' is selected in setup project properties.
  • Build the setup project.
  • Now we have two files (myapplicaiton.msi and setup.exe) as the output of setup project.

Step to create the installation files / dependent files in a standalone installation package.

  • Once it is done, run the command 'IExpress' from the 'Start > Run' or command window.
  • The Iexpress window guides you about what needs to be packed and which setup file needs to be executed after extracting files.
  • Now we have only one package (<installpackage>.exe) which contains our standard setup files generated from VS 2005.

After the steps are done, now we will have only one package to distribute to the admin. It is very easy for them to keep only one file in their repository rather than multiple files.


  • 23 August, 2006 - Initial draft
  • 25 October, 2006 - Updated article with more explanation (thanks Bill)

Note: After reading this article, please give your comments and suggestions. It will help me to correct my mistakes and can also help other new readers.


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

Written By
Web Developer
United States United States
I have entered into the IT in 1997. Since then i have played various roles in different companies. I am currently working in Perot Systems, Bangalore, India as an associate in Microsoft technologies. I like to play volleyball and Cricket. I spend most of my leisure time with my family and friends.

Comments and Discussions

Answercreating a installer Pin
Member 1074688413-Apr-14 20:13
MemberMember 1074688413-Apr-14 20:13 
GeneralMy vote of 1 Pin
Member 228250925-Dec-09 22:22
MemberMember 228250925-Dec-09 22:22 
GeneralSetup with Prequisites Pin
myvbtest10-Jun-08 19:32
Membermyvbtest10-Jun-08 19:32 
GeneralFacing Problem when uses change option in Add/Remove from control panel for the installed product Pin
Member 21574913-Jun-08 21:18
MemberMember 21574913-Jun-08 21:18 
GeneralUsing this with Micorosft Component Installer 2.0 SDK Pin
Laimis13-Nov-07 12:46
MemberLaimis13-Nov-07 12:46 
QuestionUsing Genuine ClickOnce Pin
Johan Fourie24-Oct-06 12:43
MemberJohan Fourie24-Oct-06 12:43 
AnswerRe: Using Genuine ClickOnce Pin
Ramkumar Vasudevan25-Oct-06 5:47
MemberRamkumar Vasudevan25-Oct-06 5:47 
General"ClickOnce" is NOT what you are describing Pin
BillWoodruff23-Oct-06 9:22
mveBillWoodruff23-Oct-06 9:22 
AnswerRe: "ClickOnce" is NOT what you are describing Pin
Ramkumar Vasudevan23-Oct-06 9:52
MemberRamkumar Vasudevan23-Oct-06 9:52 
GeneralRe: "ClickOnce" is NOT what you are describing Pin
BillWoodruff23-Oct-06 21:39
mveBillWoodruff23-Oct-06 21:39 
GeneralRe: "ClickOnce" is NOT what you are describing Pin
Ramkumar Vasudevan25-Oct-06 5:55
MemberRamkumar Vasudevan25-Oct-06 5:55 
GeneralAdding Framework file Pin
jsudhakar29-Aug-06 23:32
Memberjsudhakar29-Aug-06 23:32 
AnswerRe: Adding Framework file [modified] Pin
Ramkumar Vasudevan30-Aug-06 4:24
MemberRamkumar Vasudevan30-Aug-06 4:24 
AnswerRe: Adding Framework file Pin
Ramkumar Vasudevan30-Aug-06 8:47
MemberRamkumar Vasudevan30-Aug-06 8:47 
GeneralRe: Adding Framework file Pin
jsudhakar30-Aug-06 21:59
Memberjsudhakar30-Aug-06 21:59 
GeneralRe: Adding Framework file Pin
DeathCrud28-Nov-06 16:57
MemberDeathCrud28-Nov-06 16:57 
GeneralRe: Adding Framework file[Getting Myapplication.msi file not found while running setup programme) [modified] Pin
RameshwerE24-Aug-07 22:55
MemberRameshwerE24-Aug-07 22:55 
GeneralRe: Adding Framework file[Getting Myapplication.msi file not found while running setup programme) Pin
glenioalexandre6-Nov-07 9:37
Memberglenioalexandre6-Nov-07 9:37 
GeneralRe: Adding Framework file[Getting Myapplication.msi file not found while running setup programme) Pin
glenioalexandre6-Nov-07 10:03
Memberglenioalexandre6-Nov-07 10:03 
QuestionWhy not MSIEXEC? Pin
Oleg Shilo25-Aug-06 18:35
MemberOleg Shilo25-Aug-06 18:35 
AnswerRe: Why not MSIEXEC? Pin
Ramkumar Vasudevan26-Aug-06 16:26
MemberRamkumar Vasudevan26-Aug-06 16:26 

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.