Udostępnij za pośrednictwem


How to: Update Deployed Office Solutions (2007 System)

Applies to

The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office.

Project type

  • Document-level projects

  • Application-level projects

Microsoft Office version

  • 2007 Microsoft Office system

For more information, see Features Available by Application and Project Type.

When you update a Visual Studio Tools for Office solution, use the Publish Wizard to republish the solution to the publish location. The Publish Wizard automatically updates the entire solution with a new version.

Installed solutions automatically check for updates and install them, unless you set the update interval to Never. For more information, see Publishing Office Solutions (2007 System).

Updating a Deployed Solution

To update a deployed solution

  1. Ensure that the solution is set up to provide the correct evidence for the security checks.

    1. If the old solution is signed with a trusted certificate, sign the updated solution with the same certificate. If the certificate has expired or cannot be reused, use a certificate that is trusted at the enterprise level.

    2. If the inclusion list was used for trust but the zone has been disabled by the ClickOnce trust prompt key, the solution will be disabled.

    3. If the signing key was changed, trust must be re-established in the inclusion list, or the certificate must be trusted at the enterprise level. If the trust is pre-established, the first version will be uninstalled and the updated version will be installed.

    4. If the new certificate is trusted at the enterprise level, then the update takes place with no prompting.

    5. If the new certificate is not trusted, a trust prompt is displayed to the user, if the prompt is allowed.

  2. Use the Publish Wizard to publish the updated Office solution to the same directory as the previous version. For more information, see How to: Deploy an Office Solution by Using ClickOnce (2007 System).

    The Office solution is published to a folder at the same directory level as the old solution, but with an incremented version number. The application and deployment manifests are replaced, so the user is automatically directed to the new version the next time the solution checks for updates.

  3. Copy the solution files to the installation location, if it is different from the publish location. Keep the folders and files in the same relative positions.

Updating the Install Location of a Solution

To change or update the install location of a solution

  1. Uninstall the old version. See How to: Uninstall a ClickOnce Office Solution (2007 System).

  2. Install the new version from the new install location. See How to: Install a ClickOnce Office Solution (2007 System).

See Also

Tasks

How to: Roll Back a ClickOnce Office Solution to an Earlier Version (2007 System)

Concepts

Deploying Office Solutions (2007 System)

Updating Solutions (2007 System)

How to: Change the Installation Path of an Office Solution (2007 System)