Microsoft.NET

……………………………………………….Expertise in .NET Technologies

Deploying Windows Applications

Posted by Ravi Varma Thumati on May 7, 2009

Visual Studio 2005 Setup and deployment Projects provides to make a exe in .NET windows application is easy and rapidly

Visual Studio provides templates for four types of deployment projects: Merge Module Project, Setup Project, Web Setup Project, and Cab Project. In addition, a Setup wizard is provided to help step you through the process of creating deployment projects. You can see the templates and the wizard in the New Project dialog box under the Setup and Deployment Projects node.

The following are guidelines for choosing the right type of deployment project for your project.

1) Merge Module Project: Packages components that might be shared by multiple applications.

2) Setup Project: Builds an installer for a Windows-based application.

3) Web Setup Project: Builds an installer for a Web application.

4) Cab Project: Creates a cabinet file for downloading to a legacy Web browser.

5) Smart Device Cab Project: Creates a Cab project to deploy device applications.

This topic demonstrates deployment using a Setup and Deployment Project.

Setup Projects 

Setup projects allow you to create installers in order to distribute an application. The resulting Windows Installer (.msi) file contains the application, any dependent files, information about the application such as registry entries, and instructions for installation. When the .msi file is distributed and run on another computer, you can be assured that everything necessary for installation is included; if for any reason the installation fails (for example, the target computer does not have the required operating system version), the installation will be rolled back and the computer returned to its pre-installation state.

After you have developed your windows application, now you want to make an exe. How can? These steps are gives the guidance to you…

1, Go to file menu > click Add > new project >now “Add New Project” Dialog appear.

windows1

 

2. Select “Other Project Types” and click “Setup and Deployment” projects, Choose “Setup Project” give name project name in name text box finally click OK.

windows2

 

3. New project appear in solution explorer, for example you give the name “MyEXE”. It will display with this name.

windows3

 

4. Right click the MyEXE > go View > click “File System”

windows4

 

5. You can see the “File System on TargetMachine” under three folders

Application Folder

User’s Desktop

User’s Program Menu

windows5

 

6. Select Application Folder and right click Add>Project Output>select Primary output

windows6

 

7. Select User’s Desktop right click on the second window>click create new shortcut>select output file from Application folder>change the file name from primary output name to MyEXE

windows7

 

Next >>

windows8

 

Same procedure follows the user’s program menu also

8. If you want to change the Manufactures name for exe, Just right click the project go to properties and change the properties as per you requirement

windows9

 

9.Finally Build the new project After successfully Build the project myEXE(Setup) will be appear in Application Debug or Release folder(depend upon the properties settings)

windows10

 

EXE available @ this location

windowsexe

 

When you want to install  the EXE on the client machine, you should be installed .NET Framework on that mc because, Applications and controls written for the .NET Framework version 2.0 require the .NET Framework Redistributable Package version 2.0 to be installed on the computer where the application or control runs.

Advertisements

3 Responses to “Deploying Windows Applications”

  1. Sina Rufus said

    you are really a excellent webmaster. The web site loading pace is incredible. It kind of feels that you’re doing any unique trick. Furthermore, The contents are masterwork. you’ve performed a fantastic activity in this subject!

  2. Thanks for taking the time to discuss this, I feel strongly about it and love learning extra on this topic. If possible, as you acquire experience, would you mind updating your blog with additional info? This can be very useful for me.

  3. I got what you intend, saved to my bookmarks , very nice site.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: