This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- CA get installdate for patch
Subscribe
- 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
Feb 14, 2008
08:15 AM
CA get installdate for patch
Hi
I need a script to get the Installdate and the display info for a patch installed on a system. How do I get this information?
It's not possible to read the registry under ..\uninstall as they changed the way it's stored on Vista. So I thought I could use the Installer API and was looking at the function MsiGetPatchInfoEX. But I can't figure out how that function works or if it's possible to access it from a vbs script?
Regards
Kim
I need a script to get the Installdate and the display info for a patch installed on a system. How do I get this information?
It's not possible to read the registry under ..\uninstall as they changed the way it's stored on Vista. So I thought I could use the Installer API and was looking at the function MsiGetPatchInfoEX. But I can't figure out how that function works or if it's possible to access it from a vbs script?
Regards
Kim
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 14, 2008
04:16 PM
To use this API you would need to provide the patch GUID for the patch that you would like information for (this is stored in the built .MSP's summary info stream similar to an MSI's package code), the product code for the product, and the properties you're looking for (INSTALLPROPERTY_INSTALLDATE for the date the patch was applied, for example). The UserSid could be left NULL for a per-machine install with the Context parameter set to MSIINSTALLCONTEXT_MACHINE (this could get a bit more complicated if the install is per-user).
The Patch object in the MSI automation interface (http://msdn2.microsoft.com/en-us/library/aa370594(VS.85).aspx) looks like it can provide the same information (from the PatchProperty property of this object), but you still need to provide the same information to get a Patch object that the MsiGetPatchInfoEx API requires.
The Patch object in the MSI automation interface (http://msdn2.microsoft.com/en-us/library/aa370594(VS.85).aspx) looks like it can provide the same information (from the PatchProperty property of this object), but you still need to provide the same information to get a Patch object that the MsiGetPatchInfoEx API requires.