CreateDetectedSoftwareRelease
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.
cla140
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.
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:
- ProductNameThis parameter specifies the product name that the release belongs to. You must have invoked the CreateDetectedSoftwareProduct function for this product within the script.
- ProductVersionLabelThis parameter specifies the version label of the product.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.
- ReleaseNameThis parameter specifies the name of the discovered software release.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 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.
- ReleaseVersionLabelThis parameter specifies the version label of the release.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.
- OptionalPropertiesThis parameter specifies the optional properties that are associated with the discovered software release. Following optional properties are available for releases:
- VersionNumberThis property specifies the version number of the release.
- LanguageThis property specifies the language in which the release is installed.
- BitnessThis property specifies whether the release uses 32-bit or 64-bit architecture.
- ArchitectureThis property specifies the architecture name.
- ManufacturerThis property specifies the name of the release manufacturer.
- CategoryThis property specifies the release category.
- ManufacturerUUIDThis property specifies the UUID of the release manufacturer.
- CategoryUUIDThis property specifies the UUID of the release category.
- DescriptionThis property specifies the description of the release.
Return Values
- CA_SWDETECT_OKThis value indicates that the function completed the operation successfully.
- CASWDETECT_BADARGSThis value indicates that one or more mandatory parameters that are passed to the function are blank.
- CASWDETECT_FILE_ERRORThis value indicates that the function was unable to write to the file. See the log file for more information.