Temp fixes
authorPanagiotis Kanavos <pkanavos@gmail.com>
Fri, 30 Mar 2012 14:54:44 +0000 (17:54 +0300)
committerPanagiotis Kanavos <pkanavos@gmail.com>
Fri, 30 Mar 2012 14:54:44 +0000 (17:54 +0300)
trunk/NetSparkle/NetSparkleDownloadProgress.cs
trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs

index de012b0..324f533 100644 (file)
@@ -164,7 +164,7 @@ namespace AppLimit.NetSparkle
                 switch (extension)
                 {
                     case ".exe":
-                        installerCMD = _tempName;
+                        installerCMD = String.Format("\"{0}\" /silent /norestart", _tempName);
                         break;
                     case ".msi":
                         installerCMD = String.Format("msiexec /i \"{0}\"", _tempName);
index a6a3790..2857dc8 100644 (file)
@@ -243,7 +243,7 @@ namespace Pithos.Client.WPF.Preferences
                     return;
                 //The server will return credentials for a different account, not just the current account
                 //We need to find the correct account first
-                var account = Accounts.First(act => act.AccountName == credentials.UserName);
+                var account = Accounts.First(act => act.AccountName == credentials.UserName && act.ServerUrl == ?? );
                 account.ApiKey = credentials.Password;                
                 account.IsExpired = false;
                 Settings.Save();
@@ -379,6 +379,7 @@ namespace Pithos.Client.WPF.Preferences
                        actualRootPath = String.Format("{0} {1}", initialRootPath, attempt++);
                    }
                }
+               ### Check that the account does not already exist
 
                var newAccount = new AccountSettings
                                     {