CreateDetectedSoftwareProduct
The CreateDetectedSoftwareProduct function adds a record to the software detection output file when the script detects a product that is related to the Intellisig.
cla140
The CreateDetectedSoftwareProduct function adds a record to the software detection output file when the script detects a product that is related to the Intellisig.
Function format:
CreateDetectedSoftwareProduct (ProductName as String, ProductVersion as String, OptionalProperties as String) as an integer
Example:
CreateDetectedSoftwareProduct(("Microsoft Windows 7 Ultimate", "6.1", "VersionNumber=6.1 |Manufacturer=Microsoft Corporation|Category=Operating Systems |Description=The Microsoft Windows 7 Product")
Call this function before calling the CreateDetectedSoftwareRelease function, which creates the release of the product.
Input Parameters
This function has the following input parameters:
- ProductNameThis parameter specifies the product name of the detected software.The product name must be unique within the Intellisig. Two products with the same name within an Intellisig are treated as the same product regardless of optional parameters.
- 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.
- OptionalPropertiesThis parameter specifies the optional properties that are associated with the detected software product. Following optional properties are available for products:
- VersionNumberThis property specifies the version number of the product.
- LanguageThis property specifies the product language.
- BitnessThis property specifies whether the product uses 32-bit or 64-bit architecture.
- ArchitectureThis property specifies the architecture name that the product uses.
- ManufacturerThis property specifies the name of the product manufacturer.
- CategoryThis property specifies the name of the product category.
- ManufacturerUUIDThis property specifies the UUID of the product manufacturer.
- CategoryUUIDThis property specifies the UUID of the product category.
- DescriptionThis property specifies the description of the product.
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.