- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Patch GUID
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thank you very much, Shunt.
This is exactly what I needed.
