I created a custom report to retrieve what's installed for all workstations and servers. I am retrieving it from the add/remove program in control panel. However, the report showed an older version of the software along with the new version of the software. For example, yesterday I had an older version of FireFox 58.0.1, updated to 58.0.2. Today ran the report and it's showing both version as installed. This happened for Chrome as well. I want to know why that is happening and how to fix it. Does this depend on the software because I updated my 7-zip but then the report showed just the latest version and not the old version with the new version.
My SQL script is below.
SELECT DISTINCT arp1.DisplayName, arp1.DisplayVersion AS 'Version', arp1.InstallDate, c1.Name AS 'Computer Name', id1.[OS Name], id1.[OS Type]
FROM vRM_Computer_Item c1
JOIN Inv_AddRemoveProgram arp1 ON c1.Guid = arp1._ResourceGuid
JOIN Inv_AeX_AC_Identification id1 ON c1.Guid = id1._ResourceGuid
WHERE arp1.DisplayName not like '%Security Update%'
and arp1.DisplayName not like '%Update for%'
and arp1.DisplayName not like '%UpdateAssistant%'
and arp1.DisplayName not like '%Updater%'
and arp1.DisplayName not like '%LiveUpdate%'
and arp1.DisplayName not like '%Advisor Update%'
and arp1.DisplayName not like '%Code Update%'
and arp1.DisplayName not like '%Update x64%'
and arp1.DisplayName not like '%help%'
and arp1.DisplayName not like '%redist%'
and arp1.DisplayName not like '%proof%'
and arp1.DisplayName not like '%pack%'
and arp1.DisplayName not like '%suppo%'
and arp1.DisplayName not like '%viewer%'
and arp1.DisplayName not like '%MUI%'
and arp1.DisplayName not like '%hotfix%'
and arp1.Publisher not like '%Altiris%'
and arp1.DisplayName not like '%Altiris%'