SlideShare a Scribd company logo
1 of 28
Deploying .NET Applications
Objectives
In this lesson, you will learn to:
Identify different types of deployment projects
Create a deployment project
Use editors in a deployment project
Deploy an application
Deploy a component
Deploy a Web service




   ©NIIT                    Deploying .NET Applications/Lesson 16/Slide 1 of 28
Deploying .NET Applications
Visual Studio .NET Deployment
Is a process of distributing the files that make up an
application to install it on target computers.
Involves the task of packaging all files and components and
 creating a setup program that
     Copies all the necessary files to the target computer.
     Stores files in appropriate folders.
     Creates the necessary registry entries.
     Creates a Start menu item and an icon on the desktop
      of a user computer to provide easy access to the
      application.


   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 2 of 28
Deploying .NET Applications
Setup and Deployment Projects
Provide a number of templates for deploying different types
  of applications depending on the type of application that
needs to be deployed and the mode of deployment. They
are:
     Setup Project
     Merge Module Project
     Web Setup Project
     Cab Project
     Setup Wizard



   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 3 of 28
Deploying .NET Applications
Setup Project Template
Is used to package all application files and create a
Windows Installer (.msi) file.
Web Setup Project Template
Is used to install a Web-based application.
Is similar to a setup project.

Merge Module Project Template
Is used to create a single package that contains all files,
resources, registry entries, and the setup logic necessary for
deploying a component.



   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 4 of 28
Deploying .NET Applications
Is similar to a dynamic link library (DLL), which allows
applications to share code with a difference that it allows
various Windows Installers to share the installation code.
Resolves any version-related problems by identifying all the
  dependencies for a component and ensuring that the
correct versions of the components are installed.
Cab Project Template
Is used to package components that can be downloaded
 from a Web server to a Web browser.
Is typically used when you want a component to execute on
 a client computer instead of a Web server.



   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 5 of 28
Deploying .NET Applications
Deployment Project Editors
Can be used to specify the files that needs to be included in
  the project and the registry entries to be made for the
application that has to be deployed.
Can also be used to customize the user interface.
Are of the following types:
     File System
     Registry
     File Types
     User Interface
     Custom Actions
     Launch Conditions
   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 6 of 28
Deploying .NET Applications
The File System Editor
Is displayed by default.
Displays a standard set of folders that represent the folder
 structure on the target computer.
Contains the navigation pane and the details pane. The
navigation pane displays a list of folders. When you select a
  folder, the files and shortcuts in the folder are displayed in
  the details pane.
Can be used to add subfolders, special folders, or
custom folders to a deployment project. Special folders
represent some predefined Windows folders.



   ©NIIT                    Deploying .NET Applications/Lesson 16/Slide 7 of 28
Deploying .NET Applications
The File System Editor (Contd.)
Allows adding project outputs (such as .exe and .dll files)
      and additional files (such as readme.txt) to a
deployment project.
Allows specifying the folders on the target computers to
which the application files are to be copied.




   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 8 of 28
Deploying .NET Applications
The Registry Editor
Provides a hierarchical representation of the registry on the
      target computer.
Has a layout similar to that of the Windows Registry editor.
Is used to add registry keys and values to the registry on
      the target computer.
Contains two panes, the navigation pane and the detail
pane. The navigation pane displays a standard set of
registry keys that correspond to the registry keys on the
target computer. They are:
    HKEY_CLASSES_ROOT
    HKEY_USERS
    HKEY_CURRENT_USER
    HKEY_LOCAL_MACHINE
   ©NIIT                 Deploying .NET Applications/Lesson 16/Slide 9 of 28
Deploying .NET Applications
The File Types Editor
Allows you to specify file types and file associations on a
 target computer.




   ©NIIT                 Deploying .NET Applications/Lesson 16/Slide 10 of 28
Deploying .NET Applications
The User Interface Editor
Displays the dialog boxes that are automatically added by
 Visual Studio.NET when you create a deployment project.
Is used to provide customized dialog boxes.
Contains a list of dialog boxes, which are divided into two
 sections:
     Install
     Administrative Install
Categorizes dialog boxes as follows:
     Start dialog boxes
     Progress dialog boxes
     End dialog boxes
   ©NIIT                   Deploying .NET Applications/Lesson 16/Slide 11 of 28
Deploying .NET Applications
The Custom Actions Editor
Is used to add custom actions to a deployment project.
These actions must be compiled into a .dll or an .exe file
and added to the deployment project by using the File
System editor.




   ©NIIT                 Deploying .NET Applications/Lesson 16/Slide 12 of 28
Deploying .NET Applications
The Launch Conditions Editor
Is used to ensure that the version of the operating system
        on the target computer is appropriate for running your
        application or search the target computer for a
particular file or a key in the registry.
Can be used to add a number of launch conditions. These
     conditions are:
    File launch condition
    Registry launch condition
    Windows Installer launch condition
    .NET Framework launch condition
    Internet Information Services launch condition
   ©NIIT                 Deploying .NET Applications/Lesson 16/Slide 13 of 28
Deploying .NET Applications
Just a Minute…
Which of the following deployment editors can be used to
specify Control Panel settings on the target computer?
a) File Systems editor
b) Launch Conditions editor
c) Registry editor
d) User Interface editor




   ©NIIT                   Deploying .NET Applications/Lesson 16/Slide 14 of 28
Deploying .NET Applications
Problem Statement 16.D.1
The development of the Call Center module for Diaz
Telecommunications 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 for starting
 the application.
When a user begins installation, a license agreement should
be displayed to the user. The process of installation should
proceed only when a user accepts the license agreement.


   ©NIIT                 Deploying .NET Applications/Lesson 16/Slide 15 of 28
Deploying .NET Applications
Task List
Identify the type of deployment project to be used for
creating the installer.
Identify the editors to be used in the deployment project.
Create a deployment project.
Add the application files to the deployment project.
Create a shortcut for the application.
Add a dialog box to the deployment project.
Build the solution.
Execute the installer.


   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 16 of 28
Deploying .NET Applications
Task 1: Identify the type of deployment project to be
used for creating the installer.
Result:
In the given scenario, a Windows-based application is to be
 installed. For this, you can use the Setup and Deployment
 Projects project type and the Setup Project template.




   ©NIIT                Deploying .NET Applications/Lesson 16/Slide 17 of 28
Deploying .NET Applications
Task 2: Identify the editors to be used in the
deployment project.
Result:
The following table lists the tasks to be performed by the
      installation package and the editor that can be used to
      perform the task:
                      Task                                             Editor


   Copy all files to the target computer          File System editor


   Create a shortcut for the application on       File System editor
   the desktop of a computer

   Create a shortcut for the application on       File System editor
   the Programs menu

   Display a license agreement to a user          User Interface editor


   ©NIIT                              Deploying .NET Applications/Lesson 16/Slide 18 of 28
Deploying .NET Applications
Task 3: Create a deployment project.
Task 4: Add the application files to the deployment
project.
Task 5: Create a shortcut for the application.
Task 6: Add a dialog box to the deployment project.
Task 7: Build the solution.
Task 8: Execute the installer.




   ©NIIT               Deploying .NET Applications/Lesson 16/Slide 19 of 28
Deploying .NET Applications
Deploying Components
COM components suffer from various problems relating to
 deployment such as:
     Registration
     Versioning
The .NET platform solves the issues relating to the
deployment of components by using assemblies. An
assembly has the following features:
     Is self-describing.
     Records version information and enforces it at run time.
     Provides the ability to work with side-by-side
      components.
   ©NIIT                    Deploying .NET Applications/Lesson 16/Slide 20 of 28
Deploying .NET Applications
Deploying Components
The process of deploying components involves the following
 steps:
     Creating an assembly
           ® Single-file   Assembly
           ® Multi-file   Assembly
     Deploying an assembly




   ©NIIT                      Deploying .NET Applications/Lesson 16/Slide 21 of 28
Deploying .NET Applications
Just a Minute…
Consider the following files:
CalcDisc.VB
ProductDet.VB
List the steps that you will follow to create a single deployable
unit containing these two files.




   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 22 of 28
Deploying .NET Applications
Deploying Web Services
Is done simply by copying the .asmx file corresponding to
   the Web service and the assemblies used by the Web
service to the destination computer that has Internet
Information Services (IIS) 4.0 or later installed on it.
Can also be done by using a Web Setup deployment
project.




   ©NIIT                Deploying .NET Applications/Lesson 16/Slide 23 of 28
Deploying .NET Applications
Summary
In this lesson, you learned that:
Deployment is the process of distributing the files that
constitute an application.
To help you create a setup program for your application,
Visual Studio .NET provides a special project type called
Setup and Deployment Projects. This project type provides
       a number of templates for deploying different types of
       applications.
Visual Studio .NET provides four templates for deployment
      projects. These are:
     Setup Project: Allows you to package all application files
      and create a Windows Installer (.msi) file.
   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 24 of 28
Deploying .NET Applications
Summary (Contd.)
    Merge Module Project: Allows you to create a single
     package that contains all files, resources, registry
     entries, and the setup logic necessary for deploying a
     component.
    Web Setup Project: Allows you to package all files of a
     Web application or a Web service.
    Cab Project: Allows you to package components that
     can be downloaded from a Web Server to a Web
     browser.
Visual Studio .NET provides the following six editors in
deployment projects:
    File System: Allows you to add special folders, custom
     folders, subfolders, and files to a deployment project.

   ©NIIT                Deploying .NET Applications/Lesson 16/Slide 25 of 28
Deploying .NET Applications
Summary (Contd.)
    Registry: Allows you to add registry keys and values to
     a deployment project.
    File Types: Allows you to specify file associations in a
     deployment project.
    User Interface: Allows you to add and remove dialog
     boxes from a deployment project.
    Custom Actions: Allows you to add custom actions to
     the deployment project.
    Launch Conditions: Allows you to specify launch
     conditions in a deployment project.
To solve the problems of registration and version pertaining
      to the deployment of COM components, Microsoft has
      introduced assemblies in its .NET platform.
   ©NIIT                Deploying .NET Applications/Lesson 16/Slide 26 of 28
Deploying .NET Applications
Summary (Contd.)
An assembly has the following features:
    It is self-describing.
    It records version information and enforces it at run
     time.
    It provides the ability to work with side-by-side
     components.
An assembly may be embedded within a single DLL file.
Such an assembly is called a single-file assembly.
You can create a single-file assembly by using Visual
Studio .NET or the vbc compiler.


   ©NIIT                  Deploying .NET Applications/Lesson 16/Slide 27 of 28
Deploying .NET Applications
Summary (Contd.)
An assembly made up of multiple files is called a multi-file
      assembly. In case of a multi-file assembly, at least one
of    the files in the assembly must contain the assembly
      manifest.
You can create a multi-file assembly by using the Al.exe
utility.
After creating an assembly for a component, you can create
       a deployment project to deploy the component.
You can deploy a Web service simply by copying the .asmx
      file corresponding to the Web service and the
assemblies     used by the Web service to the destination
computer.
You can also use a Web Setup deployment project to
deploy a Web service.
   ©NIIT                Deploying .NET Applications/Lesson 16/Slide 28 of 28

More Related Content

What's hot

Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming francopw
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programmingRoger Argarin
 
Chapter 01
Chapter 01Chapter 01
Chapter 01llmeade
 
Windows programming
Windows programmingWindows programming
Windows programmingBapan Maity
 
introduction to_mfc
 introduction to_mfc introduction to_mfc
introduction to_mfctuttukuttu
 
The seven pillars of aspnet
The seven pillars of aspnetThe seven pillars of aspnet
The seven pillars of aspnetNethaji Naidu
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6Spy Seat
 
Keil tutorial
Keil tutorialKeil tutorial
Keil tutorialanishgoel
 
Visual programming lab
Visual programming labVisual programming lab
Visual programming labSoumya Behera
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE IntroductionAhllen Javier
 
N-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and SecurityN-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and SecurityPeter Gfader
 
Vb ch 2-introduction_to_.net
Vb ch 2-introduction_to_.netVb ch 2-introduction_to_.net
Vb ch 2-introduction_to_.netbantamlak dejene
 
70-680 Windows 7 configuring
70-680 Windows 7 configuring70-680 Windows 7 configuring
70-680 Windows 7 configuringbiwan
 

What's hot (19)

Ch02 bronson
Ch02 bronsonCh02 bronson
Ch02 bronson
 
Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
Vb.net class notes
Vb.net class notesVb.net class notes
Vb.net class notes
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
Windows programming
Windows programmingWindows programming
Windows programming
 
Mca 504 dotnet_unit1
Mca 504 dotnet_unit1Mca 504 dotnet_unit1
Mca 504 dotnet_unit1
 
Visual programming
Visual programmingVisual programming
Visual programming
 
introduction to_mfc
 introduction to_mfc introduction to_mfc
introduction to_mfc
 
The seven pillars of aspnet
The seven pillars of aspnetThe seven pillars of aspnet
The seven pillars of aspnet
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6
 
Keil tutorial
Keil tutorialKeil tutorial
Keil tutorial
 
Visual programming lab
Visual programming labVisual programming lab
Visual programming lab
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Vc++ 3
Vc++ 3Vc++ 3
Vc++ 3
 
N-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and SecurityN-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and Security
 
Vb ch 2-introduction_to_.net
Vb ch 2-introduction_to_.netVb ch 2-introduction_to_.net
Vb ch 2-introduction_to_.net
 
70-680 Windows 7 configuring
70-680 Windows 7 configuring70-680 Windows 7 configuring
70-680 Windows 7 configuring
 
Eesws
EeswsEesws
Eesws
 

Similar to Vb net xp_16

Vb net xp_01
Vb net xp_01Vb net xp_01
Vb net xp_01Niit Care
 
.Net framework
.Net framework.Net framework
.Net frameworkRaghu nath
 
Vb.net session 13
Vb.net session 13Vb.net session 13
Vb.net session 13Niit Care
 
Unit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUnit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUjwala Junghare
 
important DotNet Questions For Practicals And Interviews
important DotNet Questions For Practicals And Interviewsimportant DotNet Questions For Practicals And Interviews
important DotNet Questions For Practicals And InterviewsRahul Jain
 
Background Tasks with Worker Service
Background Tasks with Worker ServiceBackground Tasks with Worker Service
Background Tasks with Worker Servicessusere19c741
 
Top 25+ .Net development tools for intelligent business solutions - AppsDevPro
Top 25+ .Net development tools for intelligent business solutions - AppsDevProTop 25+ .Net development tools for intelligent business solutions - AppsDevPro
Top 25+ .Net development tools for intelligent business solutions - AppsDevProSofiaCarter4
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.netJaya Kumari
 
Lecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net frameworkLecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net frameworkAbdullahNadeem78
 
1-.NET Introduction.pptx
1-.NET Introduction.pptx1-.NET Introduction.pptx
1-.NET Introduction.pptxRKAggarwal6
 
DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introductionnandhu8124
 

Similar to Vb net xp_16 (20)

10 gui 14
10 gui 1410 gui 14
10 gui 14
 
Vb net xp_01
Vb net xp_01Vb net xp_01
Vb net xp_01
 
The Seven Pillars Of Asp.Net
The Seven Pillars Of Asp.NetThe Seven Pillars Of Asp.Net
The Seven Pillars Of Asp.Net
 
.Net framework
.Net framework.Net framework
.Net framework
 
W1.pptx
W1.pptxW1.pptx
W1.pptx
 
Vb.net session 13
Vb.net session 13Vb.net session 13
Vb.net session 13
 
As pnet
As pnetAs pnet
As pnet
 
Unit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUnit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdf
 
important DotNet Questions For Practicals And Interviews
important DotNet Questions For Practicals And Interviewsimportant DotNet Questions For Practicals And Interviews
important DotNet Questions For Practicals And Interviews
 
VB.Net GUI Unit_01
VB.Net GUI Unit_01VB.Net GUI Unit_01
VB.Net GUI Unit_01
 
Background Tasks with Worker Service
Background Tasks with Worker ServiceBackground Tasks with Worker Service
Background Tasks with Worker Service
 
Explore asp.net core 3.0 features
Explore asp.net core 3.0 featuresExplore asp.net core 3.0 features
Explore asp.net core 3.0 features
 
Top 25+ .Net development tools for intelligent business solutions - AppsDevPro
Top 25+ .Net development tools for intelligent business solutions - AppsDevProTop 25+ .Net development tools for intelligent business solutions - AppsDevPro
Top 25+ .Net development tools for intelligent business solutions - AppsDevPro
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
 
Lecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net frameworkLecture-1&2.pdf Visual Programming C# .net framework
Lecture-1&2.pdf Visual Programming C# .net framework
 
1-.NET Introduction.pptx
1-.NET Introduction.pptx1-.NET Introduction.pptx
1-.NET Introduction.pptx
 
DOTNET
DOTNETDOTNET
DOTNET
 
DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introduction
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
Web tech
Web techWeb tech
Web tech
 

More from Niit Care (20)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 

Recently uploaded

Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdfPedro Manuel
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Commit University
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureEric D. Schabell
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Websitedgelyza
 
Governance in SharePoint Premium:What's in the box?
Governance in SharePoint Premium:What's in the box?Governance in SharePoint Premium:What's in the box?
Governance in SharePoint Premium:What's in the box?Juan Carlos Gonzalez
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-pyJamie (Taka) Wang
 
100+ ChatGPT Prompts for SEO Optimization
100+ ChatGPT Prompts for SEO Optimization100+ ChatGPT Prompts for SEO Optimization
100+ ChatGPT Prompts for SEO Optimizationarrow10202532yuvraj
 
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024D Cloud Solutions
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostMatt Ray
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?IES VE
 
IEEE Computer Society’s Strategic Activities and Products including SWEBOK Guide
IEEE Computer Society’s Strategic Activities and Products including SWEBOK GuideIEEE Computer Society’s Strategic Activities and Products including SWEBOK Guide
IEEE Computer Society’s Strategic Activities and Products including SWEBOK GuideHironori Washizaki
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfDianaGray10
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationIES VE
 
Valere | Digital Solutions & AI Transformation Portfolio | 2024
Valere | Digital Solutions & AI Transformation Portfolio | 2024Valere | Digital Solutions & AI Transformation Portfolio | 2024
Valere | Digital Solutions & AI Transformation Portfolio | 2024Alexander Turgeon
 
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfJamie (Taka) Wang
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintMahmoud Rabie
 

Recently uploaded (20)

Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdf
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)
 
OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability Adventure
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Website
 
Governance in SharePoint Premium:What's in the box?
Governance in SharePoint Premium:What's in the box?Governance in SharePoint Premium:What's in the box?
Governance in SharePoint Premium:What's in the box?
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-py
 
100+ ChatGPT Prompts for SEO Optimization
100+ ChatGPT Prompts for SEO Optimization100+ ChatGPT Prompts for SEO Optimization
100+ ChatGPT Prompts for SEO Optimization
 
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?
 
IEEE Computer Society’s Strategic Activities and Products including SWEBOK Guide
IEEE Computer Society’s Strategic Activities and Products including SWEBOK GuideIEEE Computer Society’s Strategic Activities and Products including SWEBOK Guide
IEEE Computer Society’s Strategic Activities and Products including SWEBOK Guide
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
 
Valere | Digital Solutions & AI Transformation Portfolio | 2024
Valere | Digital Solutions & AI Transformation Portfolio | 2024Valere | Digital Solutions & AI Transformation Portfolio | 2024
Valere | Digital Solutions & AI Transformation Portfolio | 2024
 
20230104 - machine vision
20230104 - machine vision20230104 - machine vision
20230104 - machine vision
 
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership Blueprint
 

Vb net xp_16

  • 1. Deploying .NET Applications Objectives In this lesson, you will learn to: Identify different types of deployment projects Create a deployment project Use editors in a deployment project Deploy an application Deploy a component Deploy a Web service ©NIIT Deploying .NET Applications/Lesson 16/Slide 1 of 28
  • 2. Deploying .NET Applications Visual Studio .NET Deployment Is a process of distributing the files that make up an application to install it on target computers. Involves the task of packaging all files and components and creating a setup program that Copies all the necessary files to the target computer. Stores files in appropriate folders. Creates the necessary registry entries. Creates a Start menu item and an icon on the desktop of a user computer to provide easy access to the application. ©NIIT Deploying .NET Applications/Lesson 16/Slide 2 of 28
  • 3. Deploying .NET Applications Setup and Deployment Projects Provide a number of templates for deploying different types of applications depending on the type of application that needs to be deployed and the mode of deployment. They are: Setup Project Merge Module Project Web Setup Project Cab Project Setup Wizard ©NIIT Deploying .NET Applications/Lesson 16/Slide 3 of 28
  • 4. Deploying .NET Applications Setup Project Template Is used to package all application files and create a Windows Installer (.msi) file. Web Setup Project Template Is used to install a Web-based application. Is similar to a setup project. Merge Module Project Template Is used to create a single package that contains all files, resources, registry entries, and the setup logic necessary for deploying a component. ©NIIT Deploying .NET Applications/Lesson 16/Slide 4 of 28
  • 5. Deploying .NET Applications Is similar to a dynamic link library (DLL), which allows applications to share code with a difference that it allows various Windows Installers to share the installation code. Resolves any version-related problems by identifying all the dependencies for a component and ensuring that the correct versions of the components are installed. Cab Project Template Is used to package components that can be downloaded from a Web server to a Web browser. Is typically used when you want a component to execute on a client computer instead of a Web server. ©NIIT Deploying .NET Applications/Lesson 16/Slide 5 of 28
  • 6. Deploying .NET Applications Deployment Project Editors Can be used to specify the files that needs to be included in the project and the registry entries to be made for the application that has to be deployed. Can also be used to customize the user interface. Are of the following types: File System Registry File Types User Interface Custom Actions Launch Conditions ©NIIT Deploying .NET Applications/Lesson 16/Slide 6 of 28
  • 7. Deploying .NET Applications The File System Editor Is displayed by default. Displays a standard set of folders that represent the folder structure on the target computer. Contains the navigation pane and the details pane. The navigation pane displays a list of folders. When you select a folder, the files and shortcuts in the folder are displayed in the details pane. Can be used to add subfolders, special folders, or custom folders to a deployment project. Special folders represent some predefined Windows folders. ©NIIT Deploying .NET Applications/Lesson 16/Slide 7 of 28
  • 8. Deploying .NET Applications The File System Editor (Contd.) Allows adding project outputs (such as .exe and .dll files) and additional files (such as readme.txt) to a deployment project. Allows specifying the folders on the target computers to which the application files are to be copied. ©NIIT Deploying .NET Applications/Lesson 16/Slide 8 of 28
  • 9. Deploying .NET Applications The Registry Editor Provides a hierarchical representation of the registry on the target computer. Has a layout similar to that of the Windows Registry editor. Is used to add registry keys and values to the registry on the target computer. Contains two panes, the navigation pane and the detail pane. The navigation pane displays a standard set of registry keys that correspond to the registry keys on the target computer. They are: HKEY_CLASSES_ROOT HKEY_USERS HKEY_CURRENT_USER HKEY_LOCAL_MACHINE ©NIIT Deploying .NET Applications/Lesson 16/Slide 9 of 28
  • 10. Deploying .NET Applications The File Types Editor Allows you to specify file types and file associations on a target computer. ©NIIT Deploying .NET Applications/Lesson 16/Slide 10 of 28
  • 11. Deploying .NET Applications The User Interface Editor Displays the dialog boxes that are automatically added by Visual Studio.NET when you create a deployment project. Is used to provide customized dialog boxes. Contains a list of dialog boxes, which are divided into two sections: Install Administrative Install Categorizes dialog boxes as follows: Start dialog boxes Progress dialog boxes End dialog boxes ©NIIT Deploying .NET Applications/Lesson 16/Slide 11 of 28
  • 12. Deploying .NET Applications The Custom Actions Editor Is used to add custom actions to a deployment project. These actions must be compiled into a .dll or an .exe file and added to the deployment project by using the File System editor. ©NIIT Deploying .NET Applications/Lesson 16/Slide 12 of 28
  • 13. Deploying .NET Applications The Launch Conditions Editor Is used to ensure that the version of the operating system on the target computer is appropriate for running your application or search the target computer for a particular file or a key in the registry. Can be used to add a number of launch conditions. These conditions are: File launch condition Registry launch condition Windows Installer launch condition .NET Framework launch condition Internet Information Services launch condition ©NIIT Deploying .NET Applications/Lesson 16/Slide 13 of 28
  • 14. Deploying .NET Applications Just a Minute… Which of the following deployment editors can be used to specify Control Panel settings on the target computer? a) File Systems editor b) Launch Conditions editor c) Registry editor d) User Interface editor ©NIIT Deploying .NET Applications/Lesson 16/Slide 14 of 28
  • 15. Deploying .NET Applications Problem Statement 16.D.1 The development of the Call Center module for Diaz Telecommunications 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 for starting the application. When a user begins installation, a license agreement should be displayed to the user. The process of installation should proceed only when a user accepts the license agreement. ©NIIT Deploying .NET Applications/Lesson 16/Slide 15 of 28
  • 16. Deploying .NET Applications Task List Identify the type of deployment project to be used for creating the installer. Identify the editors to be used in the deployment project. Create a deployment project. Add the application files to the deployment project. Create a shortcut for the application. Add a dialog box to the deployment project. Build the solution. Execute the installer. ©NIIT Deploying .NET Applications/Lesson 16/Slide 16 of 28
  • 17. Deploying .NET Applications Task 1: Identify the type of deployment project to be used for creating the installer. Result: In the given scenario, a Windows-based application is to be installed. For this, you can use the Setup and Deployment Projects project type and the Setup Project template. ©NIIT Deploying .NET Applications/Lesson 16/Slide 17 of 28
  • 18. Deploying .NET Applications Task 2: Identify the editors to be used in the deployment project. Result: The following table lists the tasks to be performed by the installation package and the editor that can be used to perform the task: Task Editor Copy all files to the target computer File System editor Create a shortcut for the application on File System editor the desktop of a computer Create a shortcut for the application on File System editor the Programs menu Display a license agreement to a user User Interface editor ©NIIT Deploying .NET Applications/Lesson 16/Slide 18 of 28
  • 19. Deploying .NET Applications Task 3: Create a deployment project. Task 4: Add the application files to the deployment project. Task 5: Create a shortcut for the application. Task 6: Add a dialog box to the deployment project. Task 7: Build the solution. Task 8: Execute the installer. ©NIIT Deploying .NET Applications/Lesson 16/Slide 19 of 28
  • 20. Deploying .NET Applications Deploying Components COM components suffer from various problems relating to deployment such as: Registration Versioning The .NET platform solves the issues relating to the deployment of components by using assemblies. An assembly has the following features: Is self-describing. Records version information and enforces it at run time. Provides the ability to work with side-by-side components. ©NIIT Deploying .NET Applications/Lesson 16/Slide 20 of 28
  • 21. Deploying .NET Applications Deploying Components The process of deploying components involves the following steps: Creating an assembly ® Single-file Assembly ® Multi-file Assembly Deploying an assembly ©NIIT Deploying .NET Applications/Lesson 16/Slide 21 of 28
  • 22. Deploying .NET Applications Just a Minute… Consider the following files: CalcDisc.VB ProductDet.VB List the steps that you will follow to create a single deployable unit containing these two files. ©NIIT Deploying .NET Applications/Lesson 16/Slide 22 of 28
  • 23. Deploying .NET Applications Deploying Web Services Is done simply by copying the .asmx file corresponding to the Web service and the assemblies used by the Web service to the destination computer that has Internet Information Services (IIS) 4.0 or later installed on it. Can also be done by using a Web Setup deployment project. ©NIIT Deploying .NET Applications/Lesson 16/Slide 23 of 28
  • 24. Deploying .NET Applications Summary In this lesson, you learned that: Deployment is the process of distributing the files that constitute an application. To help you create a setup program for your application, Visual Studio .NET provides a special project type called Setup and Deployment Projects. This project type provides a number of templates for deploying different types of applications. Visual Studio .NET provides four templates for deployment projects. These are: Setup Project: Allows you to package all application files and create a Windows Installer (.msi) file. ©NIIT Deploying .NET Applications/Lesson 16/Slide 24 of 28
  • 25. Deploying .NET Applications Summary (Contd.) Merge Module Project: Allows you to create a single package that contains all files, resources, registry entries, and the setup logic necessary for deploying a component. Web Setup Project: Allows you to package all files of a Web application or a Web service. Cab Project: Allows you to package components that can be downloaded from a Web Server to a Web browser. Visual Studio .NET provides the following six editors in deployment projects: File System: Allows you to add special folders, custom folders, subfolders, and files to a deployment project. ©NIIT Deploying .NET Applications/Lesson 16/Slide 25 of 28
  • 26. Deploying .NET Applications Summary (Contd.) Registry: Allows you to add registry keys and values to a deployment project. File Types: Allows you to specify file associations in a deployment project. User Interface: Allows you to add and remove dialog boxes from a deployment project. Custom Actions: Allows you to add custom actions to the deployment project. Launch Conditions: Allows you to specify launch conditions in a deployment project. To solve the problems of registration and version pertaining to the deployment of COM components, Microsoft has introduced assemblies in its .NET platform. ©NIIT Deploying .NET Applications/Lesson 16/Slide 26 of 28
  • 27. Deploying .NET Applications Summary (Contd.) An assembly has the following features: It is self-describing. It records version information and enforces it at run time. It provides the ability to work with side-by-side components. An assembly may be embedded within a single DLL file. Such an assembly is called a single-file assembly. You can create a single-file assembly by using Visual Studio .NET or the vbc compiler. ©NIIT Deploying .NET Applications/Lesson 16/Slide 27 of 28
  • 28. Deploying .NET Applications Summary (Contd.) An assembly made up of multiple files is called a multi-file assembly. In case of a multi-file assembly, at least one of the files in the assembly must contain the assembly manifest. You can create a multi-file assembly by using the Al.exe utility. After creating an assembly for a component, you can create a deployment project to deploy the component. You can deploy a Web service simply by copying the .asmx file corresponding to the Web service and the assemblies used by the Web service to the destination computer. You can also use a Web Setup deployment project to deploy a Web service. ©NIIT Deploying .NET Applications/Lesson 16/Slide 28 of 28