C# Method for retrieving an Icon from an Application
$30-250 USD
Σε Εξέλιξη
Αναρτήθηκε πάνω από 14 χρόνια πριν
$30-250 USD
Πληρωμή κατά την παράδοση
Hi,
we need a simple method in C#.
Each program that is installed in Windows is listed as an uninstall entry in the registry.
PLEASE NOTE:
============
We will also need to get an icon ios the DisplayIcon element is not set in the registry. In those cases you will have to extract the icon from the start menu entry or from the EXE file of the application.
We need a method that allows us to get the icon for each of those entries.
/// <summary>
/// Get an icon belonging to a application
/// </summary>
/// <param name="uninstallKey">
/// The uninstall information of the application
/// a example key might be
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{90176341-0A8B-4CCC-A78D-F862228A6B95}"
///
/// </param>
/// <returns>the image data of this specific application</returns>
public static Image GetApplicationIcon(RegistryKey uninstallKey)
{
//Get the icon of a application
//Sometimes there is a key value named "DisplayIcon" that contains the information about the icon the be returned
//If there is no value named "DisplayIcon" there must be another way to get the Icon
//For example the Windows uninstaller always knows the Icons to be displayed
return <the icon for the application>
}
Hi,
We have a strong team for C#, (ASP-VB) .net, Java with the oracle, mySQL, MSSQL strong database persons. Interested to do the above project within the time line.
Thank you.
Cheers,
RengaG