File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public static string GetInstalledSoftware()
24
24
List < RegistryKey > UninstallKeys = new List < RegistryKey > ( ) { Registry . LocalMachine . OpenSubKey ( @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" ) , Registry . LocalMachine . OpenSubKey ( @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" ) } ;
25
25
RegistryKey SoftwareKey ;
26
26
string SoftwareKeyName ;
27
+ string NewSoftware = "" ;
27
28
int count = 0 ;
28
29
int result = 0 ;
29
30
modDatabase . InstalledSoftware SoftwareObj ;
@@ -41,14 +42,15 @@ public static string GetInstalledSoftware()
41
42
result = modDatabase . UpdateSoftware ( SoftwareObj ) ;
42
43
if ( result == 0 )
43
44
{
44
- modLogging . LogEvent ( "Detected new software installed: " + SoftwareKeyName , EventLogEntryType . Information , 6051 ) ;
45
+ NewSoftware = NewSoftware + SoftwareKeyName + ", " ;
45
46
result = modDatabase . AddSoftware ( SoftwareObj ) ;
46
47
}
47
48
count ++ ;
48
49
}
49
50
}
50
51
}
51
52
}
53
+ modLogging . LogEvent ( "Detected new software installed: " + NewSoftware , EventLogEntryType . Information , 6051 ) ;
52
54
return "Installed Applications: " + count . ToString ( ) ;
53
55
}
54
56
catch ( Exception err )
You can’t perform that action at this time.
0 commit comments