cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rguggisberg
Level 13

Patch GUID

Jump to solution

Hi,

I want to log the patch GUID when installing a patch with a CA. I know that you can find the GUID of each patch by right-clicking on an .msp file, selecting Properties and view the Revision Number, which is the patch GUID. How can I get that programmatically via InstallScript?

Thanks

Labels (1)
0 Kudos
1 Solution
shunt
Revenera Moderator Revenera Moderator
Revenera Moderator


The Patch GUID is stored in the PatchPackage table under the PatchId column. Windows Installer reads from this table at install time and the Patch GUID is not stored in a Windows Property.

If you want to obtain this whilst the installer is running then you would need to create a custom action that accesses the MSI tables at runtime to pull this value.

We have a knowledge base article which discusses this in more detail here:
https://community.flexera.com/t5/InstallShield-Knowledge-Base/Accessing-the-MSI-Database-at-Run-Time/ta-p/3455

Hope this helps.

View solution in original post

2 Replies
shunt
Revenera Moderator Revenera Moderator
Revenera Moderator


The Patch GUID is stored in the PatchPackage table under the PatchId column. Windows Installer reads from this table at install time and the Patch GUID is not stored in a Windows Property.

If you want to obtain this whilst the installer is running then you would need to create a custom action that accesses the MSI tables at runtime to pull this value.

We have a knowledge base article which discusses this in more detail here:
https://community.flexera.com/t5/InstallShield-Knowledge-Base/Accessing-the-MSI-Database-at-Run-Time/ta-p/3455

Hope this helps.

Thank you very much, Shunt.

This is exactly what I needed.

0 Kudos