110,571
社区成员
发帖
与我相关
我的任务
分享
/// <summary>
/// 更改注册表 设置程序非自动运行
/// </summary>
/// <returns></returns>
public static bool SetRegeditForRun()
{
RegEdit regedit = new RegEdit();
int bError = regedit.WriteValue(RegEdit.HKEY.HKEY_LOCAL_MACHINE, "init", "Launch50", @"explorer.exe", RegistryValueKind.String);//Wince注册表HKEY_LOCAL_MACHINE\init\Launch50默认启动explorer.exe桌面运行程序,将它改成自己的exe即可(绝对路径)
if (bError > 0)
{
return false;
}
return true;
}
更改explorer.exe时要注意,如果更改失败或导至Wince机无法正常启动,建议先试试其它无关紧要的注册码