Bagikan melalui


How to: Roll Back a ClickOnce Office Solution to an Earlier Version

When you create multiple versions of an Office solution, you can automatically go back to an earlier version. This process is called rolling back the solution, or a rollback.

Note

Local data is saved for only one previous version of a solution. If you roll back two versions, local data is not retained. For more information, see Deploying Office Solutions and Accessing Local and Remote Data in ClickOnce Applications.

Applies to: The information in this topic applies to document-level projects and application-level projects for Microsoft Office 2010 and the 2007 Microsoft Office system. For more information, see Features Available by Office Application and Project Type.

To roll back to an earlier version

  1. Open the installation location of the Office solution.

  2. In the top-level publish folder, delete the deployment manifest (the .vsto file).

  3. Find the subfolder for the version you want to roll back to.

  4. Copy the deployment manifest from that subfolder to the top-level publish folder.

    For example, to roll back a solution called OutlookAddIn1 from version 1.0.0.1 to version 1.0.0.0, copy the file OutlookAddIn1.vsto from the OutlookAddIn1_1_0_0_0 folder. Paste the file into the top-level publish folder. This overwrites the version-specific deployment manifest for OutlookAddIn1_1_0_0_1 that was previously there.

    The next time the application or customized document checks for updates, the deployment manifest change is detected. The earlier version of the Office solution runs from the ClickOnce cache.

    For more information about the publish folder structure, see Publishing Office Solutions by Using ClickOnce.

See Also

Tasks

How to: Update Deployed Office Solutions

Concepts

How to: Change the Installation Path of an Office Solution

Other Resources

Deploying Office Solutions

Updating Office Solutions