1 / 31

Module 15 Configuring and Deploying Windows Client Applications

Module 15 Configuring and Deploying Windows Client Applications. Module Overview. Deployment Options Deploying a Stand-Alone WPF Application Deploying an XBAP Configuring Security Settings. Lesson 1: Deployment Options. Deployment Technologies Full Trust and Partial Trust Applications

wing-burns
Download Presentation

Module 15 Configuring and Deploying Windows Client Applications

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Module 15 Configuring and Deploying Windows Client Applications

  2. Module Overview • Deployment Options • Deploying a Stand-Alone WPF Application • Deploying an XBAP • Configuring Security Settings

  3. Lesson 1: Deployment Options • Deployment Technologies • Full Trust and Partial Trust Applications • WPF Features Available in Partial Trust • WPF Features Unavailable in Partial Trust • XBAPs on the Local Intranet • Features and Benefits of the .NET Framework Client Profile

  4. Deployment Technologies • ClickOnce deployment • XCopy deployment • Windows Installer

  5. Full Trust and Partial Trust Applications DNS Database Registry SQL Server SqlClientPermission DNSPermission RegistryPermission Windows Event Log OLEDB Data Source WPF Application EventLogPermission OleDbClientPermission WebPermission FileIOPermission Web Services File System SecurityPermission.UnmanagedCode EnvironmentPermission SocketsPermission Environment Variables Unmanaged Code Remote Servers

  6. WPF Features Available in Partial Trust General features: • Browser window, isolated storage, commands, and simulated drag and drop Web integration: • Browser download dialog box, top-level navigation, and HTTP Web requests Visual effects: • 2-D and 3-D graphics, animation, media, audio, and video Reading: • Flow documents, XPS documents, and fonts Editing: • Spelling checker and copy and paste

  7. WPF Features Unavailable in Partial Trust General features: • Application-defined windows and dialog boxes, file system access, registry access, and Windows Forms interoperability Visual effects: • Bitmap effects and image encoding Editing: • Access to the RTF clipboard and full XAML support

  8. XBAPs on the Local Intranet By default, XBAPs run with partial trust: • Default Internet zone permission set If you launch an XBAP from the local intranet: • The XBAP can take advantage of the LocalIntranet permission set LocalIntranet permissions grant access to additional resources: • DNS • Environment variables • File dialog boxes • Isolated storage • Printing • Reflection • Security • User interface

  9. Features and Benefits of the .NET Framework Client Profile .NET Framework Client Profile: • Is a subset of the .NET Framework optimized for client applications • Enables you to create fast and small installation packages • Does not require installation of the full version of the .NET Framework on client computers Features: • CLR • ClickOnce • Windows Forms • WPF and WCF • Entity Framework • Windows Workflow Foundation • Speech • XSLT support • LINQ to SQL • Runtime design libraries • Managed Extensibility Framework • Dynamic types • Parallel programming • Debugging client applications

  10. Lesson 2: Deploying a Stand-Alone WPF Application • Deploying a Stand-Alone Application by Using ClickOnce • Deploying a Stand-Alone Application by Using Windows Installer • Installing the .NET Framework 4

  11. Deploying a Stand-Alone Application by Using ClickOnce To create a ClickOnce deployment: Select the project that you want to deploy On the Build menu, click Publish Follow the steps in the Publish Wizard Distribute the published location

  12. Deploying a Stand-Alone Application by Using Windows Installer To create a Windows Installer Setup project: Add a Setup project to your solution Configure your application as an output project Configure the properties of the Setup project Add any additional files Build the project Distribute the .msi file

  13. Installing the .NET Framework 4 To run a WPF application, the Microsoft .NET Framework 4 must be installed on the client computer For WPF browser-hosted applications launched from Windows Internet Explorer: • If the .NET Framework is installed, Internet Explorer detects it • If the .NET Framework is not installed, Internet Explorer downloadsit and installs it

  14. Lesson 3: Deploying an XBAP • XBAP Files That Must Be Deployed • Manifest Files • Publishing an XBAP to a Web Server • Installing an XBAP on a Client Computer

  15. XBAP Files That Must Be Deployed An XBAP is a compiled application that requires at least the following three files to be deployed: • ApplicationName.exe • ApplicationName.xbap • ApplicationName.exe.manifest

  16. Manifest Files An application manifest file describes: • Application assemblies • Dependent assemblies • Permissions that are required by the application A deployment manifest file describes: • Location • Current version • Update behavior • Publisher identity • Digital signature

  17. Publishing an XBAP to a Web Server To deploy an XBAP by using ClickOnce deployment: Select the project that you want to deploy On the Build menu, click Publish Follow the steps in the Publish Wizard Distribute the published location To deploy an XBAP by using XCopy deployment: Build the application Copy the output files to the target Web server

  18. Installing an XBAP on a Client Computer To deploy an XBAP by using XCopy deployment: Build the application Copy the output files to the target client computer To deploy an XBAP by using Windows Installer: Add a Setup project to your solution Configure your application as an output project Configure the properties of the Setup project Add any additional files Build the project and distribute the .msi file

  19. Lesson 4: Configuring Security Settings • Manifest Generation and Editing Tools • Using Mage.exe • Using MageUI.exe • Setting Properties for Application Manifests • Setting Properties for Deployment Manifests • Setting Properties for Application and Deployment Manifests • Setting Signing Properties for Application and Deployment Manifests

  20. Manifest Generation and Editing Tools You can use the Manifest Generation and Editing tools to create and edit manifest files: • Mage.exe is a command-line tool • MageUI.exe is an equivalent graphical tool You can use Mage.exe and MageUI.exe to set: • Common properties in deployment and application manifests • Application manifest properties • Deployment manifest properties

  21. Using Mage.exe Mage.exe syntax Mage [commands] [commandOptions] • -New • Create a new deployment or application manifest file • -Update • Make changes to a manifest file • -Sign • Sign a manifest file by using a certificate • -Help • List all of the available commands and their options

  22. Using MageUI.exe

  23. Setting Properties for Application Manifests • -FromDirectory directoryPath • Populates the application manifest with descriptions of all assemblies and files found in the directory path. Also creates a hash for each file to check that no tampering happens • When used with the –Update command, removes files that no longer exist in the directory • -IconFile filePath • Specifies the full path to the icon file • -TrustLevel level • Specifies the level of trust to grant to the application on client computers • -UseManifestForTrust willUseForTrust • Specifies whether the signature of the manifest will be used for making trust decisions on the client

  24. Setting Properties for Deployment Manifests • -AppCodeBase manifestReference • Inserts a URL or file path to the application manifest • -AppManifest manifestPath • Inserts a reference to a deployment’s application manifest • -IncludeProviderURL url • Indicates whether to include the update location • -Install willInstall • Indicates whether to install on the local computer or run from the Web • -MinVersion [version] • Specifies the minimum version of the application that a user can run • -ProviderURL url • Specifies the location to examine for application updates

  25. Setting Properties for Application and Deployment Manifests • -Name nameString • Signifies the name used to identify the application • -Publisher publisherName • Adds the publisher name to the description element of the manifest • -SupportURL uri • Specifies the link to appear in Add or Remove Programs • -ToFile filePath • Specifies the output path of the file that has been created or modified • -Version versionNumber • Signifies the version of the deployment

  26. Setting Signing Properties for Application and Deployment Manifests • -CertFile filePath • Specifies the location of an S509 digital certificate for signing the manifest • -CertHash hashSignature • Signifies the hash of a digital signature stored in the personal certificate store on the client computer • -Password passwd • Signifies the password used for signing the manifest file with a digital signature

  27. Lab: Deploying Applications • Exercise 1: Developing a Stand-Alone Installer • Exercise 2: Configuring a ClickOnce Deployment • Exercise 3: Updating a ClickOnce Deployment Logon information Estimated time: 60 minutes

  28. Lab Scenario You have been asked to develop deployment packages for both the Product Inventory application and the Work Orders application. The Product Inventory application usage is isolated to a small number of users and is not updated very often; therefore, you are to develop a stand-alone installer for that application. However, the Work Orders application is used widely throughout the organization in many locations, with an active development and release cycle; therefore, you need to develop a ClickOnce deployment for that application.

  29. Lab Review Review Questions • Which project template enables you to create a Windows Installer package for an application? • What do you need to do before you can configure an application for ClickOnce deployment from a UNC share? • What happens if an application is configured to check for updates each time it runs and you modify the published application?

  30. Module Review and Takeaways • Review Questions • Best Practices • Tools

  31. Course Evaluation

More Related