2025-03-05 23:36:41 +01:00
|
|
|
|
using ProgrammList.ConfigManager;
|
|
|
|
|
using ProgrammList.ListPrograms;
|
2025-03-03 22:16:47 +01:00
|
|
|
|
|
|
|
|
|
class Program {
|
2025-03-05 23:12:50 +01:00
|
|
|
|
public static void Main(string[] args) {
|
|
|
|
|
|
2025-03-07 23:36:20 +01:00
|
|
|
|
string dbType = PrmListConfigManager.GetSetting("DB_Type");
|
2025-03-05 23:36:41 +01:00
|
|
|
|
ListPrograms list = new ListPrograms(dbType);
|
2025-03-03 22:16:47 +01:00
|
|
|
|
|
2025-03-05 23:12:50 +01:00
|
|
|
|
Console.WriteLine("Deleting old data");
|
2025-03-05 00:31:22 +01:00
|
|
|
|
list.DeleteOldData();
|
2025-03-05 23:12:50 +01:00
|
|
|
|
string keyname1 = "Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstal";
|
|
|
|
|
Console.WriteLine("Searching for 32 bit");
|
|
|
|
|
list.createList(keyname1, "x86");
|
|
|
|
|
string keyname2 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall";
|
|
|
|
|
Console.WriteLine("Searching for 64 bit");
|
|
|
|
|
list.createList(keyname2, "x64");
|
2025-03-03 22:16:47 +01:00
|
|
|
|
}
|
2025-03-05 23:12:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|