switch (extension)
{
case ".exe":
- installerCMD = _tempName;
+ installerCMD = String.Format("\"{0}\" /silent /norestart", _tempName);
break;
case ".msi":
installerCMD = String.Format("msiexec /i \"{0}\"", _tempName);
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();
actualRootPath = String.Format("{0} {1}", initialRootPath, attempt++);
}
}
+ ### Check that the account does not already exist
var newAccount = new AccountSettings
{