vc#有注册表操作的吗?
还有一个问题就是
我做好了一个程序怎么制作安装程序阿?

解决方案 »

  1.   

    操作注册表,新增键值
    Microsoft.Win32.RegistryKey hklm = Registry.LocalMachine; 
                Microsoft.Win32.RegistryKey software = hklm.OpenSubKey("SOFTWARE", true); 
                Microsoft.Win32.RegistryKey aimdir = software.CreateSubKey("管理系统"); 
                aimdir.SetValue("mica", this.Context.Parameters["targetdir"].ToString()); 
                aimdir.SetValue("database","Emgn_BYang_Sales");新建项目——安装部署
      

  2.   

    using System.Win32;
    RegistryKey m_Registry=Registry.CurrentUser.CreateSubKey("SOFTWARE\\MisInterFace");
    m_Registry.SetValue("XXName","XXValue");
    m_Registry.GetValue("XXName","XXValue");
    m_Registry.Close();添加新项目--安装部署