# Rebuild kit on Management Server

> Rebuilds the CapaInstaller.kit file on a specified management server.

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

## Description

Rebuilds CapaInstaller.kit file on Management Server. The function sets an action for the assigned Replicator to perform

## Syntax

RebuildKitFileOnServer(ByVal packageName As String, ByVal packageVersion As String, ByVal packageType As String, ByVal serverName As String) As Boolean

## Parameters

***PackageName (String)***

The name of the package.

***PackageVersion (String)***

The package Version.

***PackageType (String)***

The package type;

- 1 (Computer)
- 2 (User)

***ServerName (String)***

The management server to which the package is to be added to.

## Return value

Boolean. The function returns True if successful, otherwise false.

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
wscript.echo oCMS.RebuildKitFileOnServer("Acrobat Reader","v8.0","1","Server4") 
 
```
