Share via


<update> Element (Office Development in Visual Studio)

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 vstav3 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 vstav3 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

Example of Always Checking for Updates

Description

The following code example illustrates an update element that is set to always check for updates in Office solutions.

Code

<vstav3:update enabled="true" />

Example of Setting a Default Update Interval

Description

The following code example illustrates an update element in an application manifest for Office solutions. This code example is part of a larger example provided in Application Manifests for Office Solutions.

Code

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

See Also

Reference

Application Manifests for Office Solutions

Deployment Manifests for Office Solutions

ClickOnce Application Manifest

Other Resources

Deploying an Office Solution by Using ClickOnce