# Update Now on Package

> Runs the Update now procedure to sync a package to child servers.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/package-functions/update-now-on-package/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Performs the Update now procedure on a package. This will create a SyncJob to the CiSync service residing on the Point-server with the 'AutoJob' bit set which will (after completion) in turn create 'auto-syncjobs' to child servers as well as BaseAgent-DistributionServers when/if the package is assigned or the child servers are 'replica' servers.

This function is equivalent to the CM-plugin right-click action on a package.

## Syntax

Public Function PackageUpdateNow(ByVal **packageName** As String, ByVal **packageVersion** As String, ByVal **packageType** As String) As Boolean

## Parameters

***PackageName (String)***

The name of the package

***PackageVersion***

The version of the package, i.e.: "v1.0"

***PackageType (String)***

Type of package

- "Computer"
- "User"

## Return value

The function returns true if successful.

## Example

**VBScript**

|                                                                                                                                                                                                           |
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `Set` `oCMS = CreateObject(``"CapaInstaller.SDK"``)` `wscript.echo oCMS.SetInstanceManagementPoint(``"1"``)` `wscript.echo oCMS.PackageUpdateNow(``"Mozilla Firefox 76.0 EN"``,``"v1.0"``,``"Computer"``)` |
