Esempio n. 1
0
 /// <summary>
 /// Determines whether this is the first time the launcher starts.
 /// </summary>
 /// <returns><c>true</c> if this is the first time; otherwise, <c>false</c>.</returns>
 public static bool IsInitialStartup()
 {
     //we use an empty file to determine if this is the first launch or not
     if (!File.Exists(ConfigHandler.GetUpdateCookiePath()))
     {
         Console.WriteLine("First time starting launcher.");
         return(true);
     }
     else
     {
         Console.WriteLine("Initial setup already complete.");
         return(false);
     }
 }