In the IT Management Suite 8.1 RU7, the Administrator Software Development Kit (ASDK) contains the new API that accesses the functionality of Notification Server (NS) and simplifies deployment of installable packages. With just one method call, this API lets you import a software package, create a software component resource with the package, and then generate an installation policy for this resource.
The new API supports the following types of installable packages:
void DeployPackageEx(string packageName, string parametersXML)
This method imports software package and creates the default installation policy with possibility to override the default parameters.
Name | Description | Format |
---|---|---|
packageName | String that contains the path to a software installation file. The file may be located on the local NS or in the UNC directory. |
Local NS path: UNC path: |
parametersXML | XML string with overridden parameters. If this parameter is an empty string, the default parameters are used. |
<parameters> Where parameter1...parameterN are the parameter names and value1...valueN are the corresponding parameter values. |
Name | Description |
---|---|
RepositoryID |
GUID of the repository for which the package will be imported.
When "Default smart repository" is used, the installation policies created with this method are located in the Auto Deployment folder that is not visible in the Symantec Management Console by default. To make the policy folder visible at Manage > Policies > Software, run the following SQL query: Update Item
SET Attributes = '22'
Where Guid = '23d65059-752a-4aef-a6ab-aab902e3cdb5'
When "SEP repository" is used, only SEP installation packages are supported for importing and Symantec Endpoint Protection Delivery policy is created at Manage > Policies > Software Symantec Endpoint Protection Agent Delivery. If this parameter is not specified, the default repository is used. |
Targets |
Coma separated list of target GUIDs to be applied to the policy. |
Enabled |
False by default. |
DefaultCulture |
Culture to generate a localized policy name. |
set repository = CreateObject("Altiris.ASDK.SWM.SoftwareSmartRepository")
repository.CreateLocalInstance()
filePath="\\server\folder\installationFile.exe" 'replace by file path to package that need be deployed(UNC or Local NS path)
parameters="<parameters><Targets>{c741fda7-3bc6-407c-b3dc-2d49d6dbe4aa}</Targets></parameters>"
repository.DeployPackageEx filePath, parameters