Export (0) Print
Expand All
1 out of 5 rated this helpful - Rate this topic

Upgrading a Solution

Windows SharePoint Services 3

Upgrading a solution involves replacing a previous version of a solution with a current version of the solution. Specifically, an upgrade occurs when a solution is deployed that shares a solution ID with another solution.

During upgrade, files that are associated with the previous version of a solution are removed, and files contained in the current version are added.

Each time a solution is successfully upgraded, the previous version of the solution is backed up and stored in the configuration store. This backup is used by the solution framework in the case of an upgrade failure. Only a single backup copy is stored per solution.

Solution upgrade can only be used to replace files. You can add new files in a solution upgrade and remove old versions of the files, but you cannot install Features or use Feature event handlers to run code for Feature installation and activation. The following operations are not supported in solution upgrade.

  • Removing old Features in a new version of a solution.

  • Adding new Features in a solution upgrade.

  • Updating or changing the receiver assembly for existing Features in a new version of a solution.

  • Adding or changing Feature elements (Element.xml files) in a new version of a solution.

  • Adding or changing Feature properties in a new version of a solution.

  • Changing the ID or scope of old Features in a new version of a solution.

  • Removing Feature elements (Element.xml files) in a new version of a solution.

  • Removing Feature properties in a new version of a solution.

Running Upgrade

For a solution upgrade to run, the solution must be present in the solution store. It may or may not already be deployed; the following rules apply based on whether the solution is deployed.

If the solution is not deployed:

If the solution is deployed:

  • Use the Microsoft.SharePoint.Administration.SPSolution.Upgrade(System.String,System.DateTime) method to start the timer job for upgrade. A backup of the original solution is created.

  • Do not call the Microsoft.SharePoint.Administration.SPSolution.Upgrade(System.String) method. It results in an error because you must specify a time to run the upgrade when a solution is currently deployed.

Upgrade and Language Packs

Solution language packs are handled separately from core solutions during upgrade. An administrator can upgrade a core solution without upgrading the language packs, or upgrade the language packs without upgrading the core solution.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.