Link to home
Start Free TrialLog in
Avatar of Leon Summers
Leon SummersFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Determine Software Usage\Frequency of use using vbscript.

Hi,

I am wondering if anyone knows where in the registry i can retrieve the data that shows the frequency of use of software currently installed in windows xp. This is displayed in the add & remove programs window as rare\occasionally\frequently at the moment.

I want to capture this data in my script as I am already capturing what software is installed from the registry in two places, using HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and also ("Select * from Win32_Product").


Many thanks

Summers
ASKER CERTIFIED SOLUTION
Avatar of graye
graye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here it is....

    Structure ShowInfoCache
        Dim cLen As Integer         ' size of the ShowInfoCache (552 bytes)
        Dim Flag As Boolean         ' unknown
        Dim Size As Long            ' program size in bytes
        Dim LastUsed As Long        ' API-style FILETIME
        Dim Frequency As Integer    ' 0-2 = rarely; 3-9 = occassionaly; 10+ = frequently
        Dim Path As String          ' remaining 524 bytes (max path of 260 + null) in unicode
    End Structure