How to: Change Deployment Properties and Re-Sign Manifests (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.
You can make changes to deployment properties in an application manifest for a Visual Studio Tools for Office application-level add-in after the manifests have been generated by the Publish Wizard or the Publish tab of the Project Designer. You can make the following property changes:
Changing the description of an Office solution.
Changing the name of an Office solution.
Changing the load behavior of an application-level add-in.
After you make these changes, you must re-sign both the application manifest and the deployment manifest with a certificate. Use the Manifest Generation and Editing Tool (Mage.exe) to sign the application and deployment manifests.
Changing Deployment Properties
You can change the settings of an Office solution by editing the application manifest, and then re-signing both the application and deployment manifest files. For information about the syntax of application manifests, see Application Manifests for Office Solutions (2007 System).
To change deployment properties
Open the application manifest (.dll.manifest) in a text editor.
Edit the value of the <friendlyname> element to change the add-in name.
The name of an add-in appears in the list of installed add-ins. For information about the syntax of this element, see <friendlyName> Element (2007 System).
Edit the <description> element to change the add-in description.
The description of an add-in appears in the list of installed programs. For information about the syntax of this element, see <description> Element (2007 System).
Edit the loadBehavior attribute in the <appAddin> element to change the load behavior.
The load behavior specifies whether an add-in should be loaded at startup, on demand, or on first startup. For information about the syntax of this element, see <appAddin> Element (2007 System).
Re-signing the Application and Deployment Manifests
This procedure assumes that you have already made changes to your application manifest file (.dll.manifest). This procedure can also be used to delay sign the application and deployment manifests by customers with their own certificate.
To re-sign the application and deployment manifests with Mage.exe
Open a Visual Studio 2008 Command Prompt window.
Change directories to the folder that contains the manifest files that you want to sign.
Type the following command to sign the application manifest file. Replace ManifestFileName with the name of your manifest file plus the extension. Replace Certificate with the relative or fully qualified path of the certificate file and replace Password with the password for the certificate.
mage -sign ManifestFileName.dll.manifest -CertFile Certificate -Password Password
For example, you could run the following command to sign an application manifest for an add-in named ExcelAddin1. Temporary certificates created by Visual Studio do not have passwords, so these are not recommended for deployment into production environments.
mage -sign ExcelAddin1.dll.manifest -CertFile ..\ExcelAddIn1_TemporaryKey.pfx
Type the following command to update and sign the deployment manifest file, replacing the placeholder names as in the previous step.
mage -update ManifestFileName.vsto -appmanifest ManifestFileName.dll.manifest -CertFile Certificate -Password Password
For example, you could run the following command to sign a deployment manifest for an add-in named ExcelAddin1.
mage -update ExcelAddin1.vsto -appmanifest ExcelAddin1.dll.manifest -CertFile ..\ExcelAddIn1_TemporaryKey.pfx
SP1 feature change.