Secure Deployment (2007 System)
The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office.
Microsoft Office version
For more information, see Features Available by Application and Project Type.
When you create a Visual Studio Tools for Office solution, your development computer is updated automatically to allow the code in your project to run. However, when you deploy your solution, you must provide evidence on which to base a trust decision by signing the solution with a certificate, adding an inclusion list entry, or using the ClickOnce trust prompt key. For more information, see Granting Trust to Office Solutions (2007 System).
For document-level customizations, if you deploy the document to a network location, you must also add the document's location to the list of trusted locations in the Trust Center of the Office application. For more information about how to set document permissions on end user computers, see Granting Trust to Documents (2007 System).
Administrators can use the registry to prevent all Office solutions from running on a computer. When an Office solution that has managed code extensions is opened, the Visual Studio Tools for Office runtime checks whether an entry with the name Disabled exists under one of the following registry keys on the computer:
To prevent Office solutions from running code, create a Disabled entry under one or both of these registry keys, and specify one of the following data types and values for Disabled:
A REG_SZ or REG_EXPAND_SZ that is set to any string other than "0" (zero).
A REG_DWORD that is set to any value other than 0 (zero).
To enable Office solutions to run code, set both of the Disabled entries to 0 (zero), or delete the registry entries.