Delen via


<update> Element (2007 System)

Note

Applies to

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

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

Project type

  • Document-level projects

  • Application-level projects

Microsoft Office version

  • 2007 Microsoft Office system

The update element specifies the interval at which the solution will check for updates.

<update
    enabled>
    <expiration
        maximumAge
        unit
    />
</update>

Elements and Attributes

The update element is required and is in the vstav2 namespace.

The update element has the following attributes.

Attribute

Description

enabled

Required. Set enabled to one of the following values:

  • true to check for updates.

  • false to prevent checking for updates.

The update element has the following child elements.

expiration

The expiration element is required and is in the vstav2 namespace. This element specifies the interval at which the solution checks for updates.

The expiration element has the following attributes.

Attribute

Description

maximumAge

  • Required. Set this equal to an integer.

unit

Required. Set unit to one of the following values:

  • hours

  • days

  • weeks

Remarks

You can manually edit application and deployment manifests in Visual Studio Tools for Office solutions. Application and deployment manifests must be re-signed by the Manifest Generation and Editing Tool (mage.exe and mageui.exe) after the manifests are edited. Sign the application manifest first and the deployment manifest next. For more information, see Manifest Generation and Editing Tool (Mage.exe) and Manifest Generation and Editing Tool, Graphical Client (MageUI.exe).

Example of Always Checking for Updates

Description

The following code example illustrates an update element that is set to always check for updates in a Visual Studio Tools for Office solution.

Code

<vstav2:update enabled="true" />

Example of Setting a Default Update Interval

Description

The following code example illustrates an update element in an application manifest for a Visual Studio Tools for Office solution. This code example is part of a larger example provided in Application Manifests for Office Solutions (2007 System).

Code

<vstav2:update enabled="true">
    <vstav2:expiration maximumAge="7" unit="days" />
</vstav2:update>

See Also

Concepts

Publishing Office Solutions (2007 System)

Reference

Application Manifests for Office Solutions (2007 System)

Deployment Manifests for Office Solutions (2007 System)

ClickOnce Application Manifest