How to: Sign Application and Deployment Manifests with Mage.exe

Add-in developers who have installed a full version of Visual Studio or the Windows SDK can use the Manifest Generation and Editing Tool (Mage.exe) to sign their application and deployment manifests. Mage.exe is installed as part of the Windows SDK, which is installed as part of the default Visual Studio installation.

Signing Manifests

To sign a manifest with Mage.exe

  1. Open a Visual Studio 2008 Command Prompt window.

  2. Change directories to the folder that contains the manifest file that you want to sign.

  3. Type the following command to sign the manifest file. Replace ManifestFileName with the name of your manifest file plus the extension. Replace Certificate with the relative or fully qualified path to the certificate file.

    mage -Sign ManifestFileName -CertFile Certificate -Password Password
    

    For example, you could run the following command to sign a deployment manifest for Microsoft Office Excel.

    mage -Sign ExcelAddin1.vsto -CertFile ..\ExcelAddIn1_TemporaryKey.pfx
    

See Also

Tasks

How to: Configure the ClickOnce Trust Prompt

Concepts

Securing and Deploying Add-Ins

Securing Add-ins by Using ClickOnce

Deploying Add-ins by Using ClickOnce

Walkthrough: Integrating ClickOnce for a Managed Object Model

Other Resources

Visual Studio Tools for Applications 2.0