SlideShare une entreprise Scribd logo
1  sur  24
GUI Applications Development Using .NET Framework
Objectives


                In this session, you will learn to:
                   Implement various deployment strategies
                   Use various editors in a deployment project
                   Implement ClickOnce
                   Configure a Windows application
                   Secure Windows applications




     Ver. 1.0                        Session 14                  Slide 1 of 24
GUI Applications Development Using .NET Framework
Deploying .NET Applications


                Deployment is the process of distributing the files that make
                up an application to install it on the target computers.
                There are two deployment strategies that can be used to
                deploy applications. The strategies are:
                   XCOPY Deployment
                   Visual Studio .NET deployment tools




     Ver. 1.0                      Session 14                         Slide 2 of 24
GUI Applications Development Using .NET Framework
XCOPY Deployment


               • The XCOPY command is used to copy the contents of a
                 directory and its subdirectories to a target computer, where
                 target computer is the computer on which you want to run
                 the application.                                      The /s switch
               • The syntax of the XCOPY command is:                   indicates that
                                                                       all
                   XCOPY <source path> <target path> /s subdirectories
                 The limitations of XCOPY deployment are:              are to be
                                                                                   copied as
                     It requires all files such as compiled .exe files, .dll files well.
                     representing components or controls, and resource files.
                     It also requires the installation of the .NET Framework on the
                     target machines.
                     It cannot be used for an application that requires databases
                     and shared components. It is essential that these databases
                     and shared components are installed on every client machine
                     on which the program will be installed.
    Ver. 1.0                            Session 14                                 Slide 3 of 24
GUI Applications Development Using .NET Framework
Visual Studio .NET Deployment Tools


                Using this method, you can package all the files and
                components that make up the application and create a
                setup program.
                This setup program can be used to perform the following
                tasks:
                   Copy all the necessary files to the target computer
                   Store files in appropriate folders
                   Create the necessary registry entries
                   Create a Start menu item
                   Create an icon on the desktop to access the application
                Let us see how an application can be packaged and
                deployed in .NET.



     Ver. 1.0                       Session 14                           Slide 4 of 24
GUI Applications Development Using .NET Framework
Visual Studio .NET Deployment Tools (Contd.)


                To create a setup program for an application, Visual
                Studio .NET provides a special project type called Setup
                and Deployment Project.
                This project type provides various templates for deploying
                various types of applications. These templates are:
                   Setup Project
                   Web Setup Project
                   Merge Module Project
                   Cab Project
                   Setup Wizard Project
                   Smart Device Cab Project




     Ver. 1.0                      Session 14                        Slide 5 of 24
GUI Applications Development Using .NET Framework
Just a minute


                What is the extension of the Windows Installer file?




                Answer:
                   .msi


     Ver. 1.0                      Session 14                          Slide 6 of 24
GUI Applications Development Using .NET Framework
Using Deployment Project Editors


                Deployment project editors help to customize various
                things. Two of them are:
                   Specifying files and folders to be included in the deployment
                   project.
                   Creating registry entries when the application is deployed.
                To perform these tasks, Visual Studio .NET provides the
                following editors in deployment projects:
                   File System Editor
                   Registry Editor
                   File Types Editor
                   User Interface Editor
                   Custom Actions Editor
                   Launch Conditions Editor



     Ver. 1.0                       Session 14                             Slide 7 of 24
GUI Applications Development Using .NET Framework
Demo: Deploying and Installing a Project


                Problem Statement:
                   The development of the EmployeeReport application is
                   complete. The application now needs to be shipped to the
                   client so that it can be installed on a user computer. 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.
                   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.
                   Help the programmer to create the installer for the application.




     Ver. 1.0                        Session 14                                 Slide 8 of 24
GUI Applications Development Using .NET Framework
Demo: Deploying and Installing a Project (Contd.)


                Solution:
                   To solve the preceding problem, you need to perform the
                   following taks:
                     1.   Create a deployment project.
                     2.   Add the application files to the deployment project.
                     3.   Create a shortcut of the application.
                     4.   Add a license agreement to the deployment project.
                     5.   Build the solution and execute the installer.




     Ver. 1.0                           Session 14                               Slide 9 of 24
GUI Applications Development Using .NET Framework
Implementing ClickOnce


                ClickOnce is a new application deployment technology
                provided by Microsoft Visual Studio 2005.
                A ClickOnce application provides automatic updates and
                installation from:
                   a Web page,
                   network file share, or
                   a CD-ROM
                It allows you to create applications that provide easy
                installation and good user interfaces.
                For creating the ClickOnce application, you can use the
                Publish Wizard in Visual Studio 2005 to package the
                application and publish it to a Web site or network file share.



     Ver. 1.0                        Session 14                        Slide 10 of 24
GUI Applications Development Using .NET Framework
Deploying an Application Using ClickOnce


                To deploy an application using ClickOnce, you need to
                perform the following steps:
                 1. Open Visual Studio 2005 and open the project.
                 2. Build the project and ensure that there are no compilation
                    errors.
                 3. Execute the application and ensure that it meets required
                    specification.




     Ver. 1.0                        Session 14                            Slide 11 of 24
GUI Applications Development Using .NET Framework
Demo: Publishing a ClickOnce Application


                Problem Statement:
                   Package and deploy the EmployeeReport application at the
                   local machine using ClickOnce.
                   Help the student to develop the required application.




     Ver. 1.0                      Session 14                         Slide 12 of 24
GUI Applications Development Using .NET Framework
Demo: Publishing a ClickOnce Application (Contd.)


                Solution:
                   To meet the preceding requirement, you need to perform the
                   following tasks:
                     1. Open the EmployeeReport project.
                     2. Prepare the application for deployment.
                     3. Publish the application.




     Ver. 1.0                         Session 14                       Slide 13 of 24
GUI Applications Development Using .NET Framework
Demo: Publishing a ClickOnce Application at the Web Server


                Problem Statement:
                   Package and deploy the EmployeeReport application at Web
                   server using ClickOnce.




     Ver. 1.0                      Session 14                        Slide 14 of 24
GUI Applications Development Using .NET Framework
Demo: Publishing a ClickOnce Application at the Web Server
(Contd.)

                Solution:
                   To meet the preceding requirement, you need to perform the
                   following tasks:
                     1. Open the EmployeeReport project.
                     2. Prepare the application for deployment.
                     3. Publish the application.




     Ver. 1.0                         Session 14                       Slide 15 of 24
GUI Applications Development Using .NET Framework
Configuration Files


                Configuration files are generally Extensible Markup
                Language (XML) files that contain configuration options,
                such as:
                   starting options
                   maximum resource usage options for applications
                These files are used to:
                   change application settings without recompiling the
                   applications.
                   set machine policies, which affect the way applications run on
                   a computer.
                These files can be modified whenever required.
                Configuration files are case sensitive.




     Ver. 1.0                       Session 14                            Slide 16 of 24
GUI Applications Development Using .NET Framework
Types of Configuration Files


                There are three types of configuration files. These are:
                   Application configuration files
                   Machine configuration files
                   Security configuration files




     Ver. 1.0                        Session 14                       Slide 17 of 24
GUI Applications Development Using .NET Framework
Just a minute


                Identify the root element in every configuration file that is
                used by the CLR and .NET Framework applications.
                 1.   <runtime>
                 2.   <config>
                 3.   <configuration>
                 4.   <assemblybinding>




                Answer:
                 3. <configuration>


     Ver. 1.0                       Session 14                          Slide 18 of 24
GUI Applications Development Using .NET Framework
Configuring Applications


                The .NET Framework allows developers and administrators
                to control the way applications run by changing the
                application settings in the application configuration file.




     Ver. 1.0                      Session 14                       Slide 19 of 24
GUI Applications Development Using .NET Framework
Securing Windows Applications


                The security of any computer can be maintained by
                authenticating a user.
                Similarly, applications also need to be secured from
                unauthorized access or virus-attack.
                There are several mechanisms to secure an application in
                the .NET environment.
                The mechanisms for protecting resources and code from
                unauthorized code and users include:
                – Code access security: Controls the resources that your code
                  can access.
                – Role-based security: Allows developers to limit the users who
                  can run certain parts of the application.




     Ver. 1.0                      Session 14                          Slide 20 of 24
GUI Applications Development Using .NET Framework
Code Access Security


                The Code Access Security (CAS) consists of elements such
                as:
                   Evidence
                   Permissions
                   Permission sets
                   Code groups
                   Security Policy




     Ver. 1.0                        Session 14                  Slide 21 of 24
GUI Applications Development Using .NET Framework
Role-Based Security


                Role-based security uses the Principal and Identity objects
                to access information about the user.
                The identity object consists of the user’s login name.
                Principal object consists of the information about the role of
                the user.




     Ver. 1.0                       Session 14                         Slide 22 of 24
GUI Applications Development Using .NET Framework
Summary


               In this session, you learned that:
                  After creating an assembly for a component, you can create a
                  deployment project to deploy the component.
                  Deployment is the process of distributing the files that
                  constitute an application.
                  There are two common deployment strategies available with
                  .NET. These are:
                    •   XCOPY Deployment
                    •   Setup and Deployment projects
                – The Setup and Deployment Project type provides a number of
                  templates for deploying various types of applications.
                – The Setup Wizard exists as a simple step-by-step project
                  creation facility.
                – Visual Studio .NET provides several editors in deployment
                  projects.

    Ver. 1.0                         Session 14                        Slide 23 of 24
GUI Applications Development Using .NET Framework
Summary (Contd.)


               Configuration files are XML files that are used to change the
               application settings without recompiling an application.
               There are three types of configuration files. These are:
                •   The Application configuration files
                •   The Machine configuration files
                •   The Security configuration files
               Configuration sections are used in the configuration files to
               specify the information that the application reads at run-time.
               The .NET Framework provides several mechanisms for
               protecting resources and code from the unauthorized code and
               users. This includes:
                    Code access security
                    Role-based security




    Ver. 1.0                       Session 14                         Slide 24 of 24

Contenu connexe

Tendances

Introducing visual studio_2010_v1.0--chappell
Introducing visual studio_2010_v1.0--chappellIntroducing visual studio_2010_v1.0--chappell
Introducing visual studio_2010_v1.0--chappellAravindharamanan S
 
Multi platform application deployment with urban code deploy
Multi platform application deployment with urban code deployMulti platform application deployment with urban code deploy
Multi platform application deployment with urban code deploySaranga Tripathy
 
Heterogeneous Development With RTC - Sreerupa Sen
Heterogeneous Development With RTC -  Sreerupa SenHeterogeneous Development With RTC -  Sreerupa Sen
Heterogeneous Development With RTC - Sreerupa SenRoopa Nadkarni
 
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
 
BP218 IBM Lotus Notes 8 and IBM Lotus Expeditor Customization for LotusScript...
BP218 IBM Lotus Notes 8 and IBM Lotus Expeditor Customization for LotusScript...BP218 IBM Lotus Notes 8 and IBM Lotus Expeditor Customization for LotusScript...
BP218 IBM Lotus Notes 8 and IBM Lotus Expeditor Customization for LotusScript...John Head
 
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...Nagios
 
Introduction to Software Build Technology
Introduction to Software Build TechnologyIntroduction to Software Build Technology
Introduction to Software Build TechnologyPhilip Johnson
 
JenkinsCIdocumentations-removedcredentials.docx
JenkinsCIdocumentations-removedcredentials.docxJenkinsCIdocumentations-removedcredentials.docx
JenkinsCIdocumentations-removedcredentials.docxMd. Abdul Hasib (Sazzad)
 
Vb.net session 13
Vb.net session 13Vb.net session 13
Vb.net session 13Niit Care
 
Windows phone 8 overview
Windows phone 8 overviewWindows phone 8 overview
Windows phone 8 overviewcodeblock
 
Visual studio developer tools v1.25c
Visual studio developer tools v1.25cVisual studio developer tools v1.25c
Visual studio developer tools v1.25cBreinSoft54
 
Windows 10 - tools-tools-tools
Windows 10 - tools-tools-toolsWindows 10 - tools-tools-tools
Windows 10 - tools-tools-toolsRoel van Bueren
 
De Zero a Produção - João Jesus
De Zero a Produção - João JesusDe Zero a Produção - João Jesus
De Zero a Produção - João JesusComunidade NetPonto
 
Dr. Strangelove, or how I learned to love plugin development
Dr. Strangelove, or how I learned to love plugin developmentDr. Strangelove, or how I learned to love plugin development
Dr. Strangelove, or how I learned to love plugin developmentUlrich Krause
 
JasForge : the collaborative agile project
JasForge : the collaborative agile projectJasForge : the collaborative agile project
JasForge : the collaborative agile projectJasmine Conseil
 

Tendances (19)

Introducing visual studio_2010_v1.0--chappell
Introducing visual studio_2010_v1.0--chappellIntroducing visual studio_2010_v1.0--chappell
Introducing visual studio_2010_v1.0--chappell
 
2012 01-jenkins-udeploy
2012 01-jenkins-udeploy2012 01-jenkins-udeploy
2012 01-jenkins-udeploy
 
Multi platform application deployment with urban code deploy
Multi platform application deployment with urban code deployMulti platform application deployment with urban code deploy
Multi platform application deployment with urban code deploy
 
Heterogeneous Development With RTC - Sreerupa Sen
Heterogeneous Development With RTC -  Sreerupa SenHeterogeneous Development With RTC -  Sreerupa Sen
Heterogeneous Development With RTC - Sreerupa Sen
 
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
 
BP218 IBM Lotus Notes 8 and IBM Lotus Expeditor Customization for LotusScript...
BP218 IBM Lotus Notes 8 and IBM Lotus Expeditor Customization for LotusScript...BP218 IBM Lotus Notes 8 and IBM Lotus Expeditor Customization for LotusScript...
BP218 IBM Lotus Notes 8 and IBM Lotus Expeditor Customization for LotusScript...
 
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
Nagios Conference 2012 - Sam Lansing - Automating Windows Application Testing...
 
Introduction to Software Build Technology
Introduction to Software Build TechnologyIntroduction to Software Build Technology
Introduction to Software Build Technology
 
JenkinsCIdocumentations-removedcredentials.docx
JenkinsCIdocumentations-removedcredentials.docxJenkinsCIdocumentations-removedcredentials.docx
JenkinsCIdocumentations-removedcredentials.docx
 
Vb.net session 13
Vb.net session 13Vb.net session 13
Vb.net session 13
 
Windows phone 8 overview
Windows phone 8 overviewWindows phone 8 overview
Windows phone 8 overview
 
P&MSP2012 - Maven
P&MSP2012 - MavenP&MSP2012 - Maven
P&MSP2012 - Maven
 
Visual studio developer tools v1.25c
Visual studio developer tools v1.25cVisual studio developer tools v1.25c
Visual studio developer tools v1.25c
 
Windows 10 - tools-tools-tools
Windows 10 - tools-tools-toolsWindows 10 - tools-tools-tools
Windows 10 - tools-tools-tools
 
De Zero a Produção - João Jesus
De Zero a Produção - João JesusDe Zero a Produção - João Jesus
De Zero a Produção - João Jesus
 
Dr. Strangelove, or how I learned to love plugin development
Dr. Strangelove, or how I learned to love plugin developmentDr. Strangelove, or how I learned to love plugin development
Dr. Strangelove, or how I learned to love plugin development
 
New Dot Net SDK
New Dot Net SDKNew Dot Net SDK
New Dot Net SDK
 
Sunny Agrawal
Sunny AgrawalSunny Agrawal
Sunny Agrawal
 
JasForge : the collaborative agile project
JasForge : the collaborative agile projectJasForge : the collaborative agile project
JasForge : the collaborative agile project
 

Similaire à 10 gui 14

Vb net xp_16
Vb net xp_16Vb net xp_16
Vb net xp_16Niit Care
 
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
 
Overview of .Net Framework
Overview of .Net FrameworkOverview of .Net Framework
Overview of .Net FrameworkNeha Singh
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?LOGINPHP360
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?LOGINPHP360
 
openGl configuration_in visual studio 2019.pptx
openGl configuration_in visual studio 2019.pptxopenGl configuration_in visual studio 2019.pptx
openGl configuration_in visual studio 2019.pptxMuhammadUmer787617
 
Key Steps in Developing .NET Core Applications
Key Steps in Developing .NET Core ApplicationsKey Steps in Developing .NET Core Applications
Key Steps in Developing .NET Core ApplicationsDamir Dobric
 
.Net Technologies Lesson 1.pptx
.Net Technologies Lesson 1.pptx.Net Technologies Lesson 1.pptx
.Net Technologies Lesson 1.pptxEllenGracePorras
 
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
 
UrbanCode Deploy course and product overview slides
UrbanCode Deploy course and product overview slidesUrbanCode Deploy course and product overview slides
UrbanCode Deploy course and product overview slidesIBM Rational software
 
An Introduction to Universal Windows Apps
An Introduction to Universal Windows AppsAn Introduction to Universal Windows Apps
An Introduction to Universal Windows Apps Ken Cenerelli
 
Visual Studio2010 Product Overview
Visual Studio2010 Product OverviewVisual Studio2010 Product Overview
Visual Studio2010 Product Overviewjanadbest
 

Similaire à 10 gui 14 (20)

01 gui 01
01 gui 0101 gui 01
01 gui 01
 
Vb net xp_16
Vb net xp_16Vb net xp_16
Vb net xp_16
 
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
 
09 gui 13
09 gui 1309 gui 13
09 gui 13
 
Overview of .Net Framework
Overview of .Net FrameworkOverview of .Net Framework
Overview of .Net Framework
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 
Xebia deploy it
Xebia deploy itXebia deploy it
Xebia deploy it
 
Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?Why is .Net Technology Recognised for Software Development?
Why is .Net Technology Recognised for Software Development?
 
openGl configuration_in visual studio 2019.pptx
openGl configuration_in visual studio 2019.pptxopenGl configuration_in visual studio 2019.pptx
openGl configuration_in visual studio 2019.pptx
 
Key Steps in Developing .NET Core Applications
Key Steps in Developing .NET Core ApplicationsKey Steps in Developing .NET Core Applications
Key Steps in Developing .NET Core Applications
 
.Net Technologies Lesson 1.pptx
.Net Technologies Lesson 1.pptx.Net Technologies Lesson 1.pptx
.Net Technologies Lesson 1.pptx
 
W1.pptx
W1.pptxW1.pptx
W1.pptx
 
Getting Your Windows and MeeGo Apps into AppUp
Getting Your Windows and MeeGo Apps into AppUpGetting Your Windows and MeeGo Apps into AppUp
Getting Your Windows and MeeGo Apps into AppUp
 
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
 
.Net Migration
.Net Migration .Net Migration
.Net Migration
 
Overview
OverviewOverview
Overview
 
UrbanCode Deploy course and product overview slides
UrbanCode Deploy course and product overview slidesUrbanCode Deploy course and product overview slides
UrbanCode Deploy course and product overview slides
 
An Introduction to Universal Windows Apps
An Introduction to Universal Windows AppsAn Introduction to Universal Windows Apps
An Introduction to Universal Windows Apps
 
08 gui 11
08 gui 1108 gui 11
08 gui 11
 
Visual Studio2010 Product Overview
Visual Studio2010 Product OverviewVisual Studio2010 Product Overview
Visual Studio2010 Product Overview
 

Plus de 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
 

Dernier

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 

Dernier (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

10 gui 14

  • 1. GUI Applications Development Using .NET Framework Objectives In this session, you will learn to: Implement various deployment strategies Use various editors in a deployment project Implement ClickOnce Configure a Windows application Secure Windows applications Ver. 1.0 Session 14 Slide 1 of 24
  • 2. GUI Applications Development Using .NET Framework Deploying .NET Applications Deployment is the process of distributing the files that make up an application to install it on the target computers. There are two deployment strategies that can be used to deploy applications. The strategies are: XCOPY Deployment Visual Studio .NET deployment tools Ver. 1.0 Session 14 Slide 2 of 24
  • 3. GUI Applications Development Using .NET Framework XCOPY Deployment • The XCOPY command is used to copy the contents of a directory and its subdirectories to a target computer, where target computer is the computer on which you want to run the application. The /s switch • The syntax of the XCOPY command is: indicates that all XCOPY <source path> <target path> /s subdirectories The limitations of XCOPY deployment are: are to be copied as It requires all files such as compiled .exe files, .dll files well. representing components or controls, and resource files. It also requires the installation of the .NET Framework on the target machines. It cannot be used for an application that requires databases and shared components. It is essential that these databases and shared components are installed on every client machine on which the program will be installed. Ver. 1.0 Session 14 Slide 3 of 24
  • 4. GUI Applications Development Using .NET Framework Visual Studio .NET Deployment Tools Using this method, you can package all the files and components that make up the application and create a setup program. This setup program can be used to perform the following tasks: Copy all the necessary files to the target computer Store files in appropriate folders Create the necessary registry entries Create a Start menu item Create an icon on the desktop to access the application Let us see how an application can be packaged and deployed in .NET. Ver. 1.0 Session 14 Slide 4 of 24
  • 5. GUI Applications Development Using .NET Framework Visual Studio .NET Deployment Tools (Contd.) To create a setup program for an application, Visual Studio .NET provides a special project type called Setup and Deployment Project. This project type provides various templates for deploying various types of applications. These templates are: Setup Project Web Setup Project Merge Module Project Cab Project Setup Wizard Project Smart Device Cab Project Ver. 1.0 Session 14 Slide 5 of 24
  • 6. GUI Applications Development Using .NET Framework Just a minute What is the extension of the Windows Installer file? Answer: .msi Ver. 1.0 Session 14 Slide 6 of 24
  • 7. GUI Applications Development Using .NET Framework Using Deployment Project Editors Deployment project editors help to customize various things. Two of them are: Specifying files and folders to be included in the deployment project. Creating registry entries when the application is deployed. To perform these tasks, Visual Studio .NET provides the following editors in deployment projects: File System Editor Registry Editor File Types Editor User Interface Editor Custom Actions Editor Launch Conditions Editor Ver. 1.0 Session 14 Slide 7 of 24
  • 8. GUI Applications Development Using .NET Framework Demo: Deploying and Installing a Project Problem Statement: The development of the EmployeeReport application is complete. The application now needs to be shipped to the client so that it can be installed on a user computer. 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. 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. Help the programmer to create the installer for the application. Ver. 1.0 Session 14 Slide 8 of 24
  • 9. GUI Applications Development Using .NET Framework Demo: Deploying and Installing a Project (Contd.) Solution: To solve the preceding problem, you need to perform the following taks: 1. Create a deployment project. 2. Add the application files to the deployment project. 3. Create a shortcut of the application. 4. Add a license agreement to the deployment project. 5. Build the solution and execute the installer. Ver. 1.0 Session 14 Slide 9 of 24
  • 10. GUI Applications Development Using .NET Framework Implementing ClickOnce ClickOnce is a new application deployment technology provided by Microsoft Visual Studio 2005. A ClickOnce application provides automatic updates and installation from: a Web page, network file share, or a CD-ROM It allows you to create applications that provide easy installation and good user interfaces. For creating the ClickOnce application, you can use the Publish Wizard in Visual Studio 2005 to package the application and publish it to a Web site or network file share. Ver. 1.0 Session 14 Slide 10 of 24
  • 11. GUI Applications Development Using .NET Framework Deploying an Application Using ClickOnce To deploy an application using ClickOnce, you need to perform the following steps: 1. Open Visual Studio 2005 and open the project. 2. Build the project and ensure that there are no compilation errors. 3. Execute the application and ensure that it meets required specification. Ver. 1.0 Session 14 Slide 11 of 24
  • 12. GUI Applications Development Using .NET Framework Demo: Publishing a ClickOnce Application Problem Statement: Package and deploy the EmployeeReport application at the local machine using ClickOnce. Help the student to develop the required application. Ver. 1.0 Session 14 Slide 12 of 24
  • 13. GUI Applications Development Using .NET Framework Demo: Publishing a ClickOnce Application (Contd.) Solution: To meet the preceding requirement, you need to perform the following tasks: 1. Open the EmployeeReport project. 2. Prepare the application for deployment. 3. Publish the application. Ver. 1.0 Session 14 Slide 13 of 24
  • 14. GUI Applications Development Using .NET Framework Demo: Publishing a ClickOnce Application at the Web Server Problem Statement: Package and deploy the EmployeeReport application at Web server using ClickOnce. Ver. 1.0 Session 14 Slide 14 of 24
  • 15. GUI Applications Development Using .NET Framework Demo: Publishing a ClickOnce Application at the Web Server (Contd.) Solution: To meet the preceding requirement, you need to perform the following tasks: 1. Open the EmployeeReport project. 2. Prepare the application for deployment. 3. Publish the application. Ver. 1.0 Session 14 Slide 15 of 24
  • 16. GUI Applications Development Using .NET Framework Configuration Files Configuration files are generally Extensible Markup Language (XML) files that contain configuration options, such as: starting options maximum resource usage options for applications These files are used to: change application settings without recompiling the applications. set machine policies, which affect the way applications run on a computer. These files can be modified whenever required. Configuration files are case sensitive. Ver. 1.0 Session 14 Slide 16 of 24
  • 17. GUI Applications Development Using .NET Framework Types of Configuration Files There are three types of configuration files. These are: Application configuration files Machine configuration files Security configuration files Ver. 1.0 Session 14 Slide 17 of 24
  • 18. GUI Applications Development Using .NET Framework Just a minute Identify the root element in every configuration file that is used by the CLR and .NET Framework applications. 1. <runtime> 2. <config> 3. <configuration> 4. <assemblybinding> Answer: 3. <configuration> Ver. 1.0 Session 14 Slide 18 of 24
  • 19. GUI Applications Development Using .NET Framework Configuring Applications The .NET Framework allows developers and administrators to control the way applications run by changing the application settings in the application configuration file. Ver. 1.0 Session 14 Slide 19 of 24
  • 20. GUI Applications Development Using .NET Framework Securing Windows Applications The security of any computer can be maintained by authenticating a user. Similarly, applications also need to be secured from unauthorized access or virus-attack. There are several mechanisms to secure an application in the .NET environment. The mechanisms for protecting resources and code from unauthorized code and users include: – Code access security: Controls the resources that your code can access. – Role-based security: Allows developers to limit the users who can run certain parts of the application. Ver. 1.0 Session 14 Slide 20 of 24
  • 21. GUI Applications Development Using .NET Framework Code Access Security The Code Access Security (CAS) consists of elements such as: Evidence Permissions Permission sets Code groups Security Policy Ver. 1.0 Session 14 Slide 21 of 24
  • 22. GUI Applications Development Using .NET Framework Role-Based Security Role-based security uses the Principal and Identity objects to access information about the user. The identity object consists of the user’s login name. Principal object consists of the information about the role of the user. Ver. 1.0 Session 14 Slide 22 of 24
  • 23. GUI Applications Development Using .NET Framework Summary In this session, you learned that: After creating an assembly for a component, you can create a deployment project to deploy the component. Deployment is the process of distributing the files that constitute an application. There are two common deployment strategies available with .NET. These are: • XCOPY Deployment • Setup and Deployment projects – The Setup and Deployment Project type provides a number of templates for deploying various types of applications. – The Setup Wizard exists as a simple step-by-step project creation facility. – Visual Studio .NET provides several editors in deployment projects. Ver. 1.0 Session 14 Slide 23 of 24
  • 24. GUI Applications Development Using .NET Framework Summary (Contd.) Configuration files are XML files that are used to change the application settings without recompiling an application. There are three types of configuration files. These are: • The Application configuration files • The Machine configuration files • The Security configuration files Configuration sections are used in the configuration files to specify the information that the application reads at run-time. The .NET Framework provides several mechanisms for protecting resources and code from the unauthorized code and users. This includes: Code access security Role-based security Ver. 1.0 Session 14 Slide 24 of 24

Notes de l'éditeur

  1. Start the session by sharing the session objectives with the students.
  2. Using this slide, discuss with the students that after an application is created, it needs to be installed on the target machine for the users to use it. Since an application may consist of several files it is essential that all the different files must be packaged and then deployed on the target computer. This ensures that none of the files are missed. Discuss the two different strategies for deploying the application using the following slides.
  3. Using this slide, explain the purpose and syntax of XCOPY command. Also discuss with the students that XCOPY command has several limitations because of which Visual Studio .NET Deployment Tools are used.
  4. Use this and the next slide to discuss with the students that the deployment tool helps to package all the required files. In addition, it helps to perform several other tasks as well. It would be a good teaching practice to demonstrate the deployment process to the students.
  5. Reiterate the concepts taught earlier by asking the given question.
  6. Use this slide to discuss the deployment process and deployment project editors(in brief). The faculty must insist that the students read about the project editors from the SGs at their home.
  7. Conduct the activity stated in the slide in a collaborative mode in the class.
  8. Conduct the activity stated in the slide in a collaborative mode in the class.
  9. Use this slide to discuss this new feature, “ClickOnce” for packaging and deploying the Visual Studio .NET projects. Also discuss with the students that there are two activities in the chapter that will help them to understand the process used by ClickOnce in a better manner.
  10. The faculty can just iterate through these steps verbally as there are two activities in the next sections that will help to demonstrate the ClickOnce feature for packaging and deploying applications.
  11. Conduct the activity stated in the slide in a collaborative mode in the class.
  12. Conduct the activity stated in the slide in a collaborative mode in the class.
  13. Conduct the activity stated in the slide in a collaborative mode in the class. Note: The faculty must ensure that IIS is installed for conducting this activity
  14. Conduct the activity stated in the slide in a collaborative mode in the class.
  15. Discuss with the students that several configuration files are created to specify certain settings. The biggest advantage of these configuration files is that settings can be applied without having to recompile the applications.
  16. Discuss the three types of configuration files. You can use the following content from the SG to explain the three types of files: Application configuration files provide a way of overriding the metadata in assemblies without having to rebuild the application. The name of an application configuration file is the name of the application with the .config extension. For example, an application called myApplication.exe will have a configuration file called myApplication.exe.config. Machine configuration files include settings, such as security settings that are applied to all the files of a computer. The name of a machine configuration file is machine.config. The location of this file is: %SystemRoot%\\Microsoft.NET\\Framework\\&lt;Version&gt;\\CONFIG\\ Here, &lt;Version&gt; represents the version of the .NET Framework installed on the machine. Security configuration files contain information about permission sets and code group hierarchy. A permission set is a group of permissions that can be associated with a group of code. A code group consists of a membership condition and a set of permissions. These files contain information related to the code access security system. The following topics discuss in detail about the application configuration file. This is because we are mainly concerned with the configuration of applications
  17. Reiterate the concepts taught earlier by asking the given question.
  18. Using this and the next slide, discuss the application configuration files with the students. The faculty can also use the table given in the SG to discuss some common elements included in an application configuration file.
  19. Using this and the next 2 slides, discuss with the students that an application needs to be secured from unauthorized access. This is because if any changes are made in the code the application may not execute at all unless the entire application is recompiled, packaged, and deployed. Also, if any of the resources are made unavailable, the application may not execute at all.
  20. You can summarize the session by using the summary given in the slides. In addition, you can also ask students summarize what they have learnt in this session.