# MSI_GetGuidsByProductName

> Gets all package guids that match product name.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/msi-functions/msi-getguidsbyproductname/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Gets all package guids that match product name

### Syntax

MSI_GetGuidsByProductName(sProductName) As Boolean

### Parameters

#### sProductName (String)

Product name

### Return value

Result will be stored in gaValue

### Example

**VBScript**

```vb
If bStatus Then bStatus = MSI_GetGuidsByProductName("CapaInstaller")
If bStatus And IsArray(gaValue) Then
  For index = LBound(gaValue) To UBound(gaValue)
    bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & gaValue(index), bStatus, False)
  Next
End If
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
