Click here to Skip to main content
11,804,008 members (77,437 online)
Click here to Skip to main content

Installing .NET Application in Silent Mode using IExpress

, 25 Oct 2006 CPOL 82.2K 5 22
Rate this:
Please Sign up or sign in to vote.
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 Smile | :) ).

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)


About the Author

Ramkumar Vasudevan
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.

You may also be interested in...

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
memberBillWoodruff23-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
memberBillWoodruff23-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    Rant Rant    Admin Admin   

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.151002.1 | Last Updated 25 Oct 2006
Article Copyright 2006 by Ramkumar Vasudevan
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid