2008-10-14 7 views

Répondre

4

Supprimez l'entrée du registre HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall

+0

aussi longtemps que vous le nettoyez aussi! – TheSoftwareJedi

1
public static void RemoveControlPanelProgram(string apllicationName) 
    { 
     string InstallerRegLoc = @"Software\Microsoft\Windows\CurrentVersion\Uninstall"; 
     RegistryKey homeKey = (Registry.LocalMachine).OpenSubKey(InstallerRegLoc, true); 
     RegistryKey appSubKey = homeKey.OpenSubKey(apllicationName); 
     if (null != appSubKey) 
     { 
     homeKey.DeleteSubKey(apllicationName); 
     } 
    }