1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu Module 15: Deploying an Outlook 2000 Solution pptx

30 245 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Deploying an Outlook 2000 Solution
Trường học Microsoft Corporation
Chuyên ngành Information Technology
Thể loại Training Module
Năm xuất bản 1999
Định dạng
Số trang 30
Dung lượng 809,64 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

At the end of this module, students will be able to distribute an application based on Outlook 2000 and Microsoft Exchange Server 5.5, use the Microsoft Office 2000 Developer Package and

Trang 1

Contents

Overview 1

Lab A: Deploying the Label Generator

Review 26

Module 15: Deploying

an Outlook 2000 Solution

Trang 2

with all applicable copyright laws is the responsibility of the user No part of this document may

be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Microsoft Corporation If, however, your only means of access is electronic, permission to print one copy is hereby granted

Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property

 1999 Microsoft Corporation All rights reserved

Microsoft, Active Desktop, Active Directory, ActiveX, BackOffice, Developer Studio, FrontPage, JScript, MSDN, MSN, NetMeeting, Outlook, PivotChart, PivotTable, PowerPoint, Visual Basic, Visual C++, Visual FoxPro, Visual InterDev, Visual J++, Visual SourceSafe, Visual Studio, Windows, Windows Media, and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A and/or other countries

The names of companies, products, people, characters, and/or data mentioned herein are fictitious and are in no way intended to represent any real individual, company, product, or event, unless otherwise noted

Other product and company names mentioned herein may be the trademarks of their respective owners

Project Advisor: Janet Wilson

Project Lead and Instructional Designer: Anne Bockman (Excell Data Corporation)

Instructional Designers: Josh Barnhill (Volt Technical) and Jo Berry (Exchange)

Lead Program Manager: Greg Bott

Program Managers: Colleena Carr and Chris Boar (Intl Vendor)

Graphic Artist: Andrea Heuston (Artitudes Layout and Design)

Editing Manager: Lynette Skinner

Editor: Jennifer Kerns (S&T Onsite)

Copy Editor: Shari G Smith (R & S Consulting)

Online Program Manager: Arlo Emerson (Aditi)

Production Support: Irene Barnett (Barnett Communications)

Manufacturing Manager: Bo Galford

Manufacturing Support: Mimi Dukes (S&T Onsite)

Development Services: Kimber Dodge

Lead Product Manager: Mary Larson

Group Product Manager: Robert Stewart

Trang 3

Instructor Notes Module 15: Deploying an Outlook 2000 Solution

This module provides students with an understanding of how to deploy Microsoft® Outlook® 2000 solutions, as well as how to test applications

At the end of this module, students will be able to distribute an application based on Outlook 2000 and Microsoft Exchange Server 5.5, use the Microsoft Office 2000 Developer Package and Deployment Wizard to create a Setup program, and test an installation

Materials and Preparation

This section provides you with the materials and preparation needed to teach this module

Materials

To teach this module, you need the following materials:

 Microsoft PowerPoint® file 1593a_15.ppt

 Module 15, “Deploying an Outlook 2000 Solution”

Preparation

To prepare for this module, you should:

 Read all the materials for this module

 Read the instructor notes and margin notes for the module

 Complete the lab

Presentation:

30 Minutes

Lab:

30 Minutes

Trang 4

Module Strategy

Use the following strategy to present this module:

 Deploying an Application Provide an introduction to application deployment Explain how to deploy

an application as a Team Folders Wizard custom template and register the template Describe how to deploy the frequently used components of Outlook 2000 applications Explain how to use the Microsoft Office 2000 Developer Package and Deployment Wizard Explain how to distribute a Microsoft ActiveX® control within a Web-based application

 Testing the Installation Explain how to test a Setup program Describe the various tests needed to ensure an application functions properly when deployed

Trang 5

Overview

 Deploying an Application

 Testing the Installation

At the end of this module, you will be able to:

 Deploy a collaborative application based on Microsoft® Outlook® 2000 and Microsoft Exchange Server 5.5 and use the Microsoft Office 2000

Developer Package and Deployment Wizard to develop a Setup program for your application

 Test the installation of your collaborative application

In this module, you will learn

about deploying and testing

collaborative applications—

including those that are

Web-based and include

ActiveX controls

Trang 6

 Deploying an Application

 Introduction to Application Deployment

 Common Outlook 2000 Application Components

 Automating Deployment

 Deploying the MoveApp Application

 Using the Package and Deployment Wizard

 Packaging an Application

 Distributing ActiveX Controls in Web-Based Solutions

When you have finished writing, debugging, and testing your collaborative application based on Outlook 2000, you are ready to distribute it to your users Exchange Server, Outlook 2000, and MAPI provide ways to make some of the components of your application available to your users automatically You must deploy other components manually

Slide Objective

To outline this topic

Lead-in

Once you have developed

your collaborative solution,

you need to choose the

deployment approach that

best delivers the required

elements to users

Trang 7

Introduction to Application Deployment

 Single-Instance Applications

using the Package and Deployment Wizard

 Multiple-Instance Applications

using the Package and Deployment Wizard

You can develop two types of collaborative applications—single-instance applications and multiple-instance applications For either type of application, any Component Object Model (COM) add-ins or Microsoft ActiveX® controls should be deployed by using the Package and Deployment Wizard

Single-Instance Applications

A single-instance application is a program deployed only once and typically used by an entire organization For example, a company would not want more than one company-wide expense-accounting system A commercial single-instance application may require a Setup program for the user but this should not be implemented by using the Team Folders Wizard The Team Folders Wizard is not a good way to deploy a single-instance application

Multiple-Instance Applications

When separate instances of an application can be created for individual projects

or products, the application is called “multiple instance.” The Team Folders Wizard is an excellent way to deploy multiple-instance applications

For more complex deployment scenarios, you may choose to use the Microsoft Windows® Installer Service of Microsoft Office 2000 For more information about the Windows Installer Service, see the Windows Installer Service white paper (Windows Installer Service.doc) located in the AddRead

folder of the Student Materials compact disc for course 1593, Building

Collaborative Solutions by Using Microsoft Outlook 2000

The sample MoveApp application developed during the course has been designed as a single instance application although it would not be too hard to develop the concept into a multi-instance application

Slide Objective

To highlight the differences

and similarity between

single-instance and

multiple-instance applications

Lead-in

A single-instance application

is not suitable for

deployment by using the

Team Folders Wizard

Note

Trang 8

Common Outlook 2000 Application Components

 Public Folders

 Public Folder Views

 Public Folder Forms

 Organization Forms

 Offline Storage

 COM Add-ins

 ActiveX Controls

 Folder Home Pages

 Outlook Today Page

 Bespoke Software Common Outlook 2000 Application Components

Your application is likely to consist of a number of different components Some

of these components are deployed automatically and others are not It is important to know how each component of an Outlook 2000 application is deployed

Deploying Outlook 2000 Application Components

The following table lists some of the frequently-used components of an Outlook 2000 application and explains how they are deployed, whether automatically or by using another method

Component Deployment information

Public folders Create manually or use the Team Folders Wizard Can be

programmatically created

(Public folders may need to be replicated to all Exchange Server sites where users need access.)

Public folder views Inherently available to everyone

Public folder forms Inherently available to everyone

Organization forms Inherently available to everyone

(System Folder must be replicated to all Exchange Server sites.)

Offline storage (.ost files)

You or the user must manually configure

COM add-ins Use the Package and Deployment Wizard to create a Setup

You can use different

strategies to deploy different

components of

Outlook 2000 applications

Trang 9

(continued)

Component Deployment information

ActiveX controls Use the Package and Deployment Wizard to produce either a

Setup program or a cabinet (.cab) file for Internet or intranet deployment

Folder home pages May require deployment to a Web server

Outlook Today page May require deployment to a Web server or deployment of the

dynamic-link library (.dll) file that contains the updated page Bespoke software

(such as Microsoft Visual Basic6.0® )

Use the Package and Deployment Wizard to create a Setup program

Trang 10

Automating Deployment

 Automatically Creating Public Folders

 Programmatically Linking a Folder to a Folder Home Page

 Forcing Outlook 2000 to Use a Different Outlook Today Page

 Installing ActiveX Controls

 Installing COM Add-ins on the Client Computer

The options for deploying some of the components of an Outlook 2000 collaborative application are described in the following text

Automatically Creating Public Folders The Outlook Folder collection enables you to use the Add method to add

additional folders into the public folder hierarchy However, to accomplish this, you must have the correct Exchange Server permissions

For example, to automatically create the MoveApp folder structure, the following code might be used

Dim oApp = new Outlook.Application

Set oNS = oApp.GetNameSpace("MAPI")

Set oBusinessFunctions = oNS.Folders("Public Folders") _

Folders("All Public Folders").Folders("Business Functions")

Set oMoveApp = oBusinessFunctions.Add("MoveApp")

Set oEmployeeMoves = oMoveApp.Add("Employee Moves")

Set oEmployeeMoveAudit = oMoveApp.Add("Employee Moves Audit")

Set oEmployeesMoving = oMoveApp.Add("Employees Moving")

It is preferable to deploy using the Team Folder Wizard because using the Add

method does not populate the new folders with any views or forms Forms can

be published programmatically by using the PublishForm method of the

FormDescription object However, views cannot be created or copied

programmatically

Slide Objective

To present options for

deploying some of the

typical components of an

Outlook collaborative

application

Lead-in

To outline the topics

associated with automating

deployment

Trang 11

Programmatically Linking a Folder to a Folder Home Page

It is possible to programmatically link a folder to a folder home page by using

the following three properties of the MAPIFolder object:

 WebViewURL: Sets the Uniform Resource Locator (URL) to the Web page

to be displayed

 WebViewOn: Sets the default state of the folder home page

 WebViewAllowNavigation: Is navigation from the page allowed, True or False

For example, in the preceding MoveApp code example, the folder home page for the MoveApp folder is being set

manipulating the registry

Installing ActiveX Controls

If an Outlook 2000 form requires an ActiveX control that is not installed on the client computer, an error occurs

It is not possible to specify a code base and have Outlook 2000 automatically install the missing ActiveX control The only solution to this problem is to install all the ActiveX controls required by the forms used in the application as part of the application deployment

The ActiveX controls need to be packaged using the Package and Deployment Wizard A common way to ease deployment is to provide an application deployment Web page, which is covered in more detail later in this module

Installing COM Add-Ins on the Client Computer

Any COM add-ins used within the application by any user needs to be installed

on the client computer This registers the COM add-in as a COM object as well

as the COM add-in for use by the Office 2000 application

Each COM add-in needs to be packaged and a suitable setup routine created As with the ActiveX controls, it is common to provide users with a link to the setup routine for the COM add-in through a Web page

Trang 12

Deploying the MoveApp Application

 MoveApp Deployment Stages

Because the implementation of the MoveApp application is single instance, the public folders, forms, or views creation does not need to be considered

However, the MoveApp application does use a number of COM add-ins and one custom ActiveX control that is form based

MoveApp Deployment Stages

Deploying the MoveApp application to a user machine falls into the following two stages

Stage 1: Notification and Initial Setup

A custom e-mail (IPM.Note based) is sent to all users The e-mail informs the user that the application is available and gives some general guidelines on use and so on The e-mail also makes the registry changes so that the user receives the custom Outlook Today page from an intranet server The e-mail script also creates a new Outlook Bar group and shortcuts to the MoveApp folders

This e-mail also informs the user that if they are either an Office Admin assistant or a PC Support Manager they should use the Setup link on the MoveApp folder home page and follow the instructions presented

Slide Objective

To list the two stages

required to deploy the

MoveApp application

Lead-in

It is useful to look at the

MoveApp application and

consider how it might be

effectively deployed within a

company

Trang 13

Stage 2: ActiveX Control and COM Add-In Installation

On the MoveApp folder home page is a link to the Setup page This page contains information such as who needs to install which components and the links to the Setup programs to achieve the installation

The following is an example of the setup page Hypertext Markup Language (HTML) code

<! Grid control title >

<span ID="GridControlTitle" class="sideBarbutton" align =

Notice in the HTML the link back to the Folder home page If the user

clicks the Back button (on the Outlook 2000 Web menu) or if this hyperlink

used a normal Web Back command, the Folder home page would fail to load as the calls to the Outlook object model would be deemed out of the security context By using an Outlook 2000 URL, the correct security context is used

An improvement to this solution would be to automatically detect who was opening the Folder home page and then test to make sure the correct COM add-ins for the persons function were installed (Installed COM add-in’s are listed in the COM add-ins Collection of the Outlook Application object.) If the COM add-ins were not present, then control could be passed automatically to the Setup HTML page

Note

Note

Trang 14

Using the Package and Deployment Wizard

Package and Deployment Wizard

Send one of this project’s packages to a distribution site, such as

You can create COM add-ins by using Office 2000 Developer or Microsoft Visual Basic version 6.0 This course assumes you are using Office 2000 Developer

To distribute a COM add-in to other users, you need to install all the necessary files on each user’s computer and register the COM add-in You can distribute a COM add-in by:

 Including the Add-in Designer in the add-in project

 Creating a Setup program with which users can install the COM add-in

Creating a Setup Program

To create a Setup program, run the Package and Deployment Wizard on the add-in project When the user runs the Setup program, all the required files for the add-in will be copied to the user’s computer and registered

Every time you run the Package and Deployment Wizard, the wizard gathers information about your application and saves the information in a script file When you run the wizard again, you can choose to use the settings in the existing script file, rather than stepping through each screen of the wizard

simplify the process of

creating a Setup program

Note

Trang 15

Starting the Package and Deployment Wizard

To start the Package and Deployment Wizard from within Office Developer, on

the Add-Ins menu, click Package and Deployment Wizard

For information about a particular step, in the Package and Deployment

Wizard dialog box click the Help button

Adding the Wizard to the Add-Ins Menu

To enable access to the Package and Deployment Wizard from within the

Office 2000 development environment, you can add the wizard to the Add-Ins

menu

Adding the Package and Deployment Wizard to the Add-Ins Menu

To add the Package and Deployment Wizard to the Add-Ins menu:

1 On the Add-Ins menu, click Add-In Manager

2 From the list of available add-ins, click Package and Deployment Wizard

3 Under Load Behavior, select the Loaded/Unloaded check box to load the add-in, and add its command to the Add-Ins menu

4 To make the Package and Deployment Wizard command available on the

Add-Ins menu every time you start a new project or open an existing

project, select the Load on Startup check box, and then click OK

Using the Setup Toolkit to Create a Custom Setup Program

If you need to customize your Setup program to include functionality that is not supported by the Package and Deployment Wizard, you can use the Setup Toolkit that is included with Office 2000 Developer

For more information about customizing a Setup program for your application, see “The Setup Toolkit” in Visual Basic Help

Note

Note

Ngày đăng: 21/12/2013, 06:15

TỪ KHÓA LIÊN QUAN