The CreateDetectedSoftwareRelease function adds a record to the software detection output file when the script detects a release of a product on the agent computer.
Note: DMScript adds the record only if it finds the related product record in the MDB.
This function has the following format:
CreateDetectedSoftwareRelease (ProductName as String, ProductVersionLabel, as String, ReleaseName as String, ReleaseVersionLabel as String, OptionalProperties as String) as an integer
Example:
CreateDetectedSoftwareRelease ("Microsoft Windows 7 Ultimate", "6.1", "Microsoft Windows 7 Ultimate x64 64 en-us", "6.1.7600", "VersionNumber=6.1.7600 |Language=en-us |Bitness=64 |Architecture=x64 |Manufacturer=Microsoft Corporation|Category=Operating Systems |Description=The Microsoft Windows 7 Release")
Input Parameters
This function has the following input parameters:
Specifies the product name that the release belongs to. You must have called the CreateDetectedSoftwareProduct function for this product within the script.
Specifies the version label of the product.
Note: The version label is used to identify the product together with its name. An empty value is allowed and is treated as a product with an empty version.
Specifies the name of the discovered software release.
Note: A release can have the same name as the product. However, Intellisigs support different release names to help associate multiple releases with the same product. The release name and version label must be unique within each Intellisig chain. Two releases with the same name within an Intellisig are treated as the same release only if they share the same parent definitions, regardless of optional parameters. If the same release is detected using two different Intellisigs, two separate detected records are created, one for each Intellisig.
Specifies the version label of the release.
Note: The version label is used to identify the release together with its name. An empty value is allowed and is treated as a release with an empty version.
Specifies the optional properties associated with the discovered software release. Following optional properties are available for releases:
Specifies the version number of the release.
Specifies the language in which the release is installed.
Specifies whether the release uses 32-bit or 64-bit architecture.
Specifies the architecture name.
Specifies the name of the release manufacturer.
Specifies the release category.
Specifies the UUID of the release manufacturer.
Specifies the UUID of the release category.
Specifies the description of the release.
Return Values
Indicates that the function completed the operation successfully.
Indicates that one or more mandatory parameters passed to the function are blank.
Indicates that the function was unable to write to the file. See the log file for more information.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|