[求助]如何让程序在安装的时候写入注册表中的Run,让其开机运行
如题!谢谢
2007-05-27 21:54
示例:
using Microsoft.Win32;
string strKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
string strFilePath = Application.ExecutablePath ;
RegistryKey regKey = Registry.LocalMachine.OpenSubKey(strKey , true);
if(regKey != null)
{
regKey.Setvalue("cti",strFilePath);
}

2007-05-27 22:46
2007-05-28 08:57
2007-05-28 09:42
2007-05-28 09:57
2007-05-28 10:13
2007-05-28 10:48
2007-05-28 11:43
2007-05-28 20:57