Skip to content

Commit 96b2665

Browse files
committed
Group new software log together
1 parent 861e3bc commit 96b2665

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modSystem.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public static string GetInstalledSoftware()
2424
List<RegistryKey> UninstallKeys = new List<RegistryKey>() { Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"), Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall") };
2525
RegistryKey SoftwareKey;
2626
string SoftwareKeyName;
27+
string NewSoftware = "";
2728
int count = 0;
2829
int result = 0;
2930
modDatabase.InstalledSoftware SoftwareObj;
@@ -41,14 +42,15 @@ public static string GetInstalledSoftware()
4142
result = modDatabase.UpdateSoftware(SoftwareObj);
4243
if (result == 0)
4344
{
44-
modLogging.LogEvent("Detected new software installed: " + SoftwareKeyName, EventLogEntryType.Information, 6051);
45+
NewSoftware = NewSoftware + SoftwareKeyName + ", ";
4546
result = modDatabase.AddSoftware(SoftwareObj);
4647
}
4748
count++;
4849
}
4950
}
5051
}
5152
}
53+
modLogging.LogEvent("Detected new software installed: " + NewSoftware, EventLogEntryType.Information, 6051);
5254
return "Installed Applications: " + count.ToString();
5355
}
5456
catch (Exception err)

0 commit comments

Comments
 (0)