CreateDetectedSoftwarePatch
The CreateDetectedSoftwarePatch function adds a record to the software detection output file when the script detects a patch of a particular release. Add this function for every patch that you have included in the Intellisig script.
cla140
The CreateDetectedSoftwarePatch function adds a record to the software detection output file when the script detects a patch of a particular release. Add this function for every patch that you have included in the Intellisig script.
Function format:
CreateDetectedSoftwarePatch (ProductName as String, ProductVersionLabel, as String, ReleaseName as String, ReleaseVersionLabel as String, PatchName as String, PatchVersionLabel as String, OptionalProperties as String) as an integer
Example:
CreateDetectedSoftwarePatch ("Microsoft Windows 7 Ultimate", "6.1", "Microsoft Windows 7 Ultimate x64 64 en-us", "6.1.7600", "KB971033 x64 64 en-us", "Language=en-us |Bitness=64 |Architecture=x64 |Manufacturer=Microsoft Corporation|Category=Operating Systems |Description=The Microsoft Windows 7 Activation Checker Update")
Invoked this function after calling the CreateDetectedSoftwareRelease function within each script.
Input Parameters
This function has the following input parameters:
- ProductNameThis parameter specifies the name of the product that the patch 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 release that the patch belongs to. You must have invoked the CreateDetectedSoftwareRelease function for this release within the script.
- 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.
- PatchNameThis parameter specifies the name of the detected software patch.A patch cannot have the same name as the release or product to which it belongs. The patch name and version label must be unique within each Intellisig software definition chain. Two patches with the same name within an Intellisig are treated as the same patch only if they have the same parent definitions, regardless of optional parameters. If the same patch is detected using two different Intellisigs, two separate detected records are created, one for each Intellisig.
- PatchVersionLabelThis parameter specifies the version label of the patch.The version label is used to identify the patch together with its name. An empty value is allowed and is treated as a patch with an empty version.
- OptionalPropertiesThis parameter specifies the optional properties that are associated with the detected software patch. Following optional properties are available for patches:
- VersionNumberThis optional property specifies the version number of the patch.
- LanguageThis optional property specifies the language in which the patch is installed.
- BitnessThis optional property specifies whether the patch uses 32-bit or 64-bit architecture.
- ArchitectureThis optional property specifies the architecture name that the patch uses.
- ManufacturerThis optional property specifies the patch manufacturer name.
- CategoryThis optional property specifies the patch category.
- ManufacturerUUIDThis optional property specifies the UUID of the patch manufacturer.
- CategoryUUIDThis optional property specifies the UUID of the patch category.
- DescriptionThis optional property specifies the description of the patch.
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.