用C尖锐代码删除oracle9i [英] remove oracle9i by the c sharp code

查看:55
本文介绍了用C尖锐代码删除oracle9i的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生/女士

我要创建一个项目,该项目是删除或卸载注册表中的oracle9i,
如果可能的话?

如果是,那么请帮助我

Dear sir/madam

I want to make a project, which is delete or uninstall the oracle9i in the registry,
if it is possible?

if yes then please help me

推荐答案

是的,您可以删除这样的注册表值

Yes you can remove registry value like this

//Registry Value
string keyName = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run";//Path of Key,You can specify full path
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(keyName, true))
{
    if (key == null)
    {
        // Key doesn't exist. Do whatever you want to handle
        // this case
    }
    else
    {
        key.DeleteValue("Value");
    }
}


这篇关于用C尖锐代码删除oracle9i的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆