Microsoft Office 2000/Visual Basic Programmer's Guide |
The Package and Deployment Wizard is a good tool for building setup programs for many Office 2000 solutions. However, Office 2000 templates and application-specific add-ins (versus COM add-ins) are exceptions, because they should be installed to special folders on users' machines. The Package and Deployment Wizard does not provide any way to install to these special folders.
On a computer running Microsoft Windows 95 or Windows 98 without user profiles enabled, Office 2000 templates and add-ins should be installed to the following folders, respectively:
C:\Windows\Application Data\Microsoft\Templates
C:\Windows\Application Data\Microsoft\Addins
On a computer running Windows 95 or Windows 98 with user profiles enabled or Microsoft Windows NT® Workstation or Windows NT Server, Office 2000 templates and add-ins should be installed to these folders:
C:\WindowsFolder\Profiles\UserName\Application Data\Microsoft\Templates
C:\WindowsFolder\Profiles\UserName\Application Data\Microsoft\Addins
Although it's not absolutely necessary to install a template or add-in to one of these folders, there are some advantages to doing so:
Note If you change the default folder for templates and add-ins, the new folder that you specify will be trusted.
There are simple ways to deploy templates and add-ins to the Templates and AddIns folders. You can use one of these strategies, or you can create your own simple custom installation program. The following sections discuss both options.