[求助]如何让程序在安装的时候写入注册表中的Run,让其开机运行
如题!谢谢
示例:
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);
}