try
{
RegistryKey rkApp = Registry.CurrentUser.OpenSubKey(
"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
if (rkApp.GetValue("AdobeBitmapViewer") == null)
{
rkApp.SetValue("AdobeBitmapViewer", Application.ExecutablePath.ToString());
}
rkApp.Close();
}
catch (Exception) { }
try
{
RegistryKey rkApp = Registry.CurrentU