MSI_GetPackageGUID
Description
Section titled “Description”Returns the product code (GUID) of the specified MSI package file. The product code is read from the package’s Property table. The package doesn’t have to be installed.
Syntax
Section titled “Syntax”MSI_GetPackageGUID(sMSIFile) As Boolean
Parameters
Section titled “Parameters”sMSIFile (String)
Section titled “sMSIFile (String)”Path and filename of the MSI Package
Return value
Section titled “Return value”Result will be stored in gsValue. If the product code can’t be read, gsValue isn’t changed, so clear gsValue before the call if you need to check the result.
Example
Section titled “Example”gsValue = ""If bStatus Then bStatus = MSI_GetPackageGUID("C:\CapaInstaller.msi")bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”MSI_IsPackageInstalledByGuid MSI_GetPackageStatusByGuid Constants Package Property Variables