Notes
Outline
Microsoft Office Solutions Deployment

Rick Dobson, Ph.D.
Chief Technology Officer
CAB, Inc.
http://www.cabinc.net
http://www.programmingmsaccess.com
Your Speaker Is Rick Dobson
Rick recently authored “Programming Microsoft Access 2000” for Microsoft Press
He is a regular contributor to Microsoft Office and VBA Developer (as well as other computer pubs)
He has lectured on Access/Office topics on 3 continents
Your Agenda
Introduction to Package and Deployment issues with Office 2000
Review of selected Package wizard screens
Review of selected Deployment wizard screens
Review of Managing Script wizard screens
You Agenda – Cont’d
Targeting the  Access Run-Time (with demos)
Deployment Demonstrations
Launching the Package and Deployment Wizard
Deploying an Access app
Deploying an Excel app
Deploying an Access app that references an Excel spreadsheet
ODE is still in beta
Since ODE is in beta actual deployment behavior may vary slightly in final shipping product
Some features do not operate in beta as they will in the final product (they are incomplete in the beta)
I did not discuss/demo selected interesting new features because they were not operational – stay tune to Microsoft Office and VBA Developer for more on these topics
Why Bother with Deployment
It can simplify the installation of custom office solutions and make them easier to start using
It can enable you to build stand-alone apps that incorporate the functionality Access and the MSDE database engines
What Royalty-free Support Is Available
Access Run-Time
Redistributable MSDE
Other Office components do not offer royalty-free support; clients must have package to run your app
Overview of Package and Deployment Wizard
It ships with Microsoft Office 2000 Developer Edition ODE
I has three key functions
Starting the wizard can be a multi-step process: load, start, invoke functions
Three Main Wizard Functions
Selected Package Screen
Package Types
Standard Setup Package is for distributing a normal solution
Dependency File is for setting up component information for a project (or object) to work in another app
Selected Package Screen
Package Folder
The Package folder is a repository for files created by the Package wizard
The screen enables you to select a previously existing folder or create a new one on your drive or a network drive
Selected Package Screen
Included Files
List the files automatically included in the package
Let’s you add other files besides those based on the current project
Includes Access Run-Time by default
Selected Package Screen
CAB Options
Default is a single CAB for deployment over a network
You can optionally select one of several floppy sizes when shipping disks is the preferred way to distribute an app
Selected Package Screen
Installation Options
Accept the default name or assign a new one for users to reference when they start the app
Designate a command to run after installation – for example, to load an MSDE database
Selected Package Screen
Start Menu Items
Allows you to specify a Start Menu item and folder for your app
You can also specify properties, such as the run-time option
Selected Package Screen
Shared Files
Allows you to specify files as shared so they can remain even after removal of an app
Used for files that serve more than one app
Selected Package Screen
Finished!
Assign a script name to package setup choices
Let’s you re-use selection again to save time on re-packaging option
Afterwards, you can save a text file documenting packaging choices
Selected Deployment Screen
Deployment Script
Choose a previously prepared script to re-use, or
Select none to design a new script that is not based on prior choices
Selected Deployment Screen
Folder
Designate a folder to hold storage files (for example, your setup program)
Use a different folder than for Package
Selected Deployment Screen
Deployment Method
Choose either Folder or Web deployment method
Choosing Web brings up extra screens tailored to its features and requirements
Selected Deployment Screen
Items to Deploy
Shows items to appear in your deployment folder
If they do not match your expectations, you may need to go back and re-package
Selected Deployment Screen
Additional Items to Deploy
When you are deploying to a web site, an extra screen appears for you to add additional files not in the Package
In order to select a file, it must be in the folder for the project that you are deploying
Selected Deployment Screen
Web Publishing Site
When deploying via the web, you must name a site from which you will deploy
Also, indicate a publishing format from the site
Selected Deployment Screen
Finished!
Assign a script name to save the choices for future reference
Afterwards, you can choose to save a text file summarizing deployment choices
Managing Scripts
Use the Manage Scripts button on the wizard screen to gain access to the package and deployment scripts
You can rename, duplicate, and delete scripts
Manage scripts on a project  basis
Use Run-Time and Full Links to Project for Testing
Use the Run-Time Link to see how your project behaves in run-time
Use Full link to see modify your code and set startup options
You can deploy either run-time or full versions
Demo for StartMenu
Differences between Run-Time and Full Versions
Database, macro, and VBE windows disable in Run-Time
Built-in toolbars not supported, but custom ones are supported
Shortcut menus are not available
Errors not trapped shut down app (demo)
Demo Packaging of StartMenu.mdb
Open VBE window of main app
Load Package and Deployment Wizard
Start wizard
Click Package button and pass through screens (demo)
Demo Deployment and Testing of StartMenu.mdb
Go through deployment screens
Install StartMenu app
Operate app
Remove StartMenu app (demo)
Package and Deploy a Spreadsheet App
Show Chapter 14 and demo native spreadsheet procedure
Start Package  wizard and show Cab options for multiple or single Cab also show non-default selection of Access Run-time
Notice how run setup, demo behavior, remove is same as for Access app (demo)
Package and Deploy Database app with Spreadsheet
Describe createTableFromXL procedure
Highlight the desirability of a variable XL file spec
Run from proc in My Documents folder
Show how to add a file during setup
Run run Start menu – XL spreadsheet is in a different location
Final Thoughts
Package and Deployment wizard is for custom and even commercial apps
Use either Full or Run-Time versions of Access
Other Office apps also can be setup
You can setup multiple Office apps, such as Access + Excel
Easy to deploy, but you should
Test for usability
Test for security