# MSI_GetPackageGUID

> Returns the GUID for the specified MSI-package.

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

### Description

Returns the GUID for the specified MSI-package

### Syntax

MSI_GetPackageGUID(sMSIFile) As Boolean

### Parameters

#### sMSIFile (String)

Path and filename of the MSI Package

### Return value

Result will be stored in gsValue

### Example

**VBScript**

```vb
If bStatus Then bStatus = MSI_GetPackageGUID("C:\CapaInstaller.msi")
bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)
```

[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/)
