I have developed an installer class which removes certain folders from the base dir.However,I also want to remove the entry of another application from add/remove programs through the inst class.Could anyone suggest the solution.
我开发了一个安装程序类,它从基础目录中删除某些文件夹。但是,我还想通过inst类从添加/删除程序中删除另一个应用程序的条目。有人建议解决方案。
Regards, Harsh Suman
此致,苛刻的苏曼
4 个解决方案
#1
4
Remove the entry from the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
从HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall中删除注册表中的条目
#2
2
In addition, there may be an entry that needs removing from HKEY_CLASSES_ROOT\Installer\Products
此外,可能还有一个需要从HKEY_CLASSES_ROOT \ Installer \ Products中删除的条目
#3
1
It may worth to read this forum thread: http://www.eggheadcafe.com/community/aspnet/2/10069013/uninstall-a-proram-by-using-c.aspx
可能值得阅读这个论坛帖子:http://www.eggheadcafe.com/community/aspnet/2/10069013/uninstall-a-proram-by-using-c.aspx
#4
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);
}
}
#1
4
Remove the entry from the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
从HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall中删除注册表中的条目
#2
2
In addition, there may be an entry that needs removing from HKEY_CLASSES_ROOT\Installer\Products
此外,可能还有一个需要从HKEY_CLASSES_ROOT \ Installer \ Products中删除的条目
#3
1
It may worth to read this forum thread: http://www.eggheadcafe.com/community/aspnet/2/10069013/uninstall-a-proram-by-using-c.aspx
可能值得阅读这个论坛帖子:http://www.eggheadcafe.com/community/aspnet/2/10069013/uninstall-a-proram-by-using-c.aspx
#4
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);
}
}