Professional Documents
Culture Documents
NET Applications
Pre-Assessment Questions
1. User defined exceptions are derived from the __________ class.
a. System.Exception
b. System.ApplicationException
c. System.SystemException
d. System.CustomException
Solutions to Pre-Assessment
Questions
1. b.
2. b.
3. c.
4. d.
5. a.
Objectives
In this lesson, you will learn to:
• Create assemblies and place them in the Global Assembly Cache
• Identify the version information stored in an assembly
• Implement different deployment strategies
• Identify different types of deployment projects
• Create a deployment project
• Use various editors in a deployment project
• Deploy an application
• For assemblies to be shared they must be added to the Global Assembly Cache
(GAC).
• The version number of the assembly is divided into four parts. They are:
• Major version number
• Minor version number
• Build number
• Revision number
• XCOPY Deployment
• Visual Studio .NET Deployment Tools
XCOPY Deployment
• XCOPY deployment uses the MS-DOS XCOPY command to copy the contents of
a directory and subdirectories to a target computer
• Requires that all files needed by the application are located in the
application directory.
• Requires that the .NET Framework be installed on the target machines.
• For applications that requires databases and shared components, the
required resources must be available on each client machine.
• The Setup and Deployment Projects type provides various templates for
deploying different types of applications:
• Setup Project
• Web Setup Project
• Merge Module Project
• Cab Project
• You use the Setup Project template to package all application files and create
a Windows Installer (.msi) file.
(Contd.)
• When you build a merge module project, a .msm file is created. The .msm file
cannot be executed independently and must be merged with another
deployment project that creates a .msi file.
• You use the Cab Project template to package components that can be
downloaded from a Web server to a Web browser
• The Setup Wizard guides you through a number of steps for creating a basic
deployment project.
• You can use deployment project editors to specify details like files to be
included and registry entries to be made at the time of installation.
• File System
• Registry
• File Types
• User Interface
• Custom Actions
• Launch Conditions
• The File Types editor allows you to perform the following functions:
• Add and remove file types
• Add and remove actions
• The User Interface editor allows you to perform the following functions:
• Add and remove dialog boxes
• Customize installation dialog boxes
Practice
Deploying a Windows Based
Application
Problem Statement
• The development of the application for a stockbroker’s office is complete.
The application now needs to be shipped to the client so that it can be
installed on user computers. The installation process should perform the
following tasks:
• Copy all application files to a user computer.
• Create a shortcut on the desktop of a computer to start the application.
Solution
To solve the preceding problem, the following steps need to be performed:
Summary
In this lesson, you learned that:
Summary (Contd.)
In this lesson, you learned that:
• There are two common deployment strategies available with .NET. They are:
• XCOPY Deployment
• Setup and Deployment projects
• To help you create a setup program for your application, Visual Studio.NET
provides a special project type called Setup and Deployment Projects.
• The Setup and Deployment Project type provides a number of templates for
deploying different types of applications. These are:
• Setup Project
• Merge Module Project
• Web Setup Project
©NIIT • Cab Project
Enhancing and Distributing Applications Lesson 2A / Slide 25 of 26
Packaging and Deploying .NET Applications
Summary (Contd.)
In this lesson, you learned that:
• Visual Studio .NET provides the following six editors in deployment projects:
• File System
• Registry
• File Types
• User Interface
• Custom Actions
• Launch Conditions