示例#1
0
 public static bool uninstall()
 {
     if (StartUpManager.IsUserAdministrator())
     {
         StartUpManager.RemoveApplicationFromAllUserStartup();
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 public static bool install()
 {
     if (StartUpManager.IsUserAdministrator())
     {
         StartUpManager.AddApplicationToAllUserStartup();
         return(true);
     }
     else
     {
         //MessageBox.Show();
         return(false);
     }
 }