Click here to Skip to main content
6,595,444 members and growing! (20,666 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » .NET Framework » General     Intermediate License: The Code Project Open License (CPOL)

Installing .NET application in Silent mode using IExpress

By Ramkumar Vasudevan

Article explains about how to create a self extract package to install .net application in silent mode
Windows, .NET, Visual Studio, Dev
Posted:23 Aug 2006
Updated:25 Oct 2006
Views:37,332
Bookmarked:19 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
10 votes for this article.
Popularity: 2.66 Rating: 2.66 out of 5
4 votes, 40.0%
1

2
2 votes, 20.0%
3
2 votes, 20.0%
4
2 votes, 20.0%
5

Introduction

My customer had come up with two questions when i am trying to deliver my project.

1. Need 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 not familiar with the distribution of software and not familiar with .net framework dependency. So my client wants to maintain a single installer file which helps the admin/support to install the application in 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 comes 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 prerequesties. But when i tried, VS 2005 gave me two files rather than one package.


1. setup.exe - used to install the .net prerequesites if the target machine not have one.

2. myproject.msi - contains all my project exe and dependency files.

I am sure it can be achieved through the giant deployment softwares like installshield, wise and winzip. But the license matters makes me think lot. It took sometime to find the solution but i managed to find a way to get it done by using Microsoft IExpress.

IExpress

IExpress is a utility which 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.

Assumptions

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

Steps to make self extract package:

In brief,

Step to make the installation in silent/unattended mode:

  • 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 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 guide you what needs to be packed and which setup file needs to be executed after extracting files.
  • Nowe we have only one package(<installpackage>.exe) which contains the 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. .

History

23 Aug - Initial Draft

25 Oct - Updated article with more explanation (thanks bill)

Note: After reading this article, please pass your comments and suggestion. It help me to correct my mistakes and can help other new readers.

License

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

About the Author

Ramkumar Vasudevan


Member
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.
Occupation: Web Developer
Location: United States United States

Other popular .NET Framework articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 19 of 19 (Total in Forum: 19) (Refresh)FirstPrevNext
GeneralSetup with Prequisites Pinmembermyvbtest20:32 10 Jun '08  
GeneralFacing Problem when uses change option in Add/Remove from control panel for the installed product PinmemberMember 215749122:18 3 Jun '08  
GeneralUsing this with Micorosft Component Installer 2.0 SDK PinmemberLaimis13:46 13 Nov '07  
QuestionUsing Genuine ClickOnce PinmemberJohan Fourie13:43 24 Oct '06  
AnswerRe: Using Genuine ClickOnce PinmemberRamkumar Vasudevan6:47 25 Oct '06  
General"ClickOnce" is NOT what you are describing PinmemberBillWoodruff10:22 23 Oct '06  
AnswerRe: "ClickOnce" is NOT what you are describing PinmemberRamkumar Vasudevan10:52 23 Oct '06  
GeneralRe: "ClickOnce" is NOT what you are describing PinmemberBillWoodruff22:39 23 Oct '06  
GeneralRe: "ClickOnce" is NOT what you are describing PinmemberRamkumar Vasudevan6:55 25 Oct '06  
GeneralAdding Framework file Pinmemberjsudhakar0:32 30 Aug '06  
AnswerRe: Adding Framework file [modified] PinmemberRamkumar Vasudevan5:24 30 Aug '06  
AnswerRe: Adding Framework file PinmemberRamkumar Vasudevan9:47 30 Aug '06  
GeneralRe: Adding Framework file Pinmemberjsudhakar22:59 30 Aug '06  
GeneralRe: Adding Framework file PinmemberDeathCrud17:57 28 Nov '06  
GeneralRe: Adding Framework file[Getting Myapplication.msi file not found while running setup programme) [modified] PinmemberRameshwerE23:55 24 Aug '07  
GeneralRe: Adding Framework file[Getting Myapplication.msi file not found while running setup programme) Pinmemberglenioalexandre10:37 6 Nov '07  
GeneralRe: Adding Framework file[Getting Myapplication.msi file not found while running setup programme) Pinmemberglenioalexandre11:03 6 Nov '07  
GeneralWhy not MSIEXEC? PinmemberOleg Shilo19:35 25 Aug '06  
GeneralRe: Why not MSIEXEC? PinmemberRamkumar Vasudevan17:26 26 Aug '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 25 Oct 2006
Editor:
Copyright 2006 by Ramkumar Vasudevan
Everything else Copyright © CodeProject, 1999-2009
Web20 | Advertise on the Code Project