TheWhiteDragon Posted May 3, 2013 Report post Posted May 3, 2013 Hi All, i have recently built a script which reports total installs for project etc but i noticed that the data is showing Previous installs as well ?? ie user had 2007, upgraded to 2010, then upgraded to 2013 - this then shows its installed 3 times on the same machine ?? is there a way to limit it to ONLY showing the CURRENT installation ?? Current Code :- SELECT dbo.v_R_System.Netbios_Name0, dbo.v_R_System.User_Name0, dbo.v_GS_ADD_REMOVE_PROGRAMS.Publisher0, dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 FROM dbo.v_R_System INNER JOIN dbo.v_GS_ADD_REMOVE_PROGRAMS ON dbo.v_R_System.ResourceID = dbo.v_GS_ADD_REMOVE_PROGRAMS.ResourceID WHERE (dbo.v_GS_ADD_REMOVE_PROGRAMS.Publisher0 LIKE '%Microsoft%') AND (dbo.v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 LIKE '%Project%') Quote Share this post Link to post Share on other sites More sharing options...
0 GarthMJ Posted May 4, 2013 Report post Posted May 4, 2013 What you are looking for is not a simple 5 minute query. The simplest way to do this is to sort by version number so that you can see the latest version at the top. Quote Share this post Link to post Share on other sites More sharing options...
0 TheWhiteDragon Posted May 7, 2013 Report post Posted May 7, 2013 the issue is that it doesnt show the current state. installed/uninstalled/upgraded etc. ie i install project 2013 to fix someones project file, i then uninstall it, the report still shows me as having 2013 installed.. even though i dont have it anymore.. this is the issue im facing as part of the version issue. Quote Share this post Link to post Share on other sites More sharing options...
0 Elemanzer Posted June 4, 2013 Report post Posted June 4, 2013 Check one of the machines Add/remove programs or Programs and features and see what is labeled in there. When installing Office 2013 it left Office 2010 on the machine. Now I have a script to completely uninstall office 2010, project 2010 and visio 2010 from the machine before it attempts to install any office project. So it may not be the query, it could be the machine. Quote Share this post Link to post Share on other sites More sharing options...
Hi All,
i have recently built a script which reports total installs for project etc but i noticed that the data is showing Previous installs as well ??
ie user had 2007, upgraded to 2010, then upgraded to 2013 - this then shows its installed 3 times on the same machine ??
is there a way to limit it to ONLY showing the CURRENT installation ??
Current Code :-
Share this post
Link to post
Share on other sites