What version of Windows are you on? Also, how much RAM do you have and what's your CPU type?
What happens when you run wyUpdate.exe directly? Is it just as slow?
Hello,
I'm testing the wyBuild and noticed that the update is very slow.I have a windows application that is installed on multiple workstations, under the folder 'All Users' (I do not use 'wyUpdate user control').When starting my application, it checks through IIS if a new version exists.If there is one she calls another executable (my application is then closed), which creates a new process to run wyUpdate with credentials of a user with elevated permissions.I note that wyUpdate is loaded into memory, but until the interface is loaded is taking a long time, which can lead users to think that the update is not being processed.Is there any suggestions?
Verification code:
private int ChecarAtualizacao() { int ret = -1;
try { string processo = Application.StartupPath + @"\wyUpdate.exe";
ProcessStartInfo p = new ProcessStartInfo(processo); p.UseShellExecute = false; p.Domain = "domain"; p.UserName = "user"; p.Password = new System.Security.SecureString();
string senha = "pass"; char[] senhaChar = senha.ToCharArray();
foreach (char c in senhaChar) p.Password.AppendChar(c);
p.Arguments = ("-quickcheck -justcheck"); Process pp = Process.Start(p); pp.WaitForExit();
ret = pp.ExitCode; } catch (Exception ex) { MessageBox.Show("..."); }
return ret; }
Update Code:
private void Atualizar() { try { string w = Application.StartupPath + @"\wyUpdate.exe";
ProcessStartInfo p = new ProcessStartInfo(w); p.UseShellExecute = false; p.Domain = "domain"; p.UserName = "user"; p.Password = new System.Security.SecureString();
string senha = "pass"; char[] senhaChar = senha.ToCharArray();
foreach (char c in senhaChar) p.Password.AppendChar(c);
p.Arguments = string.Empty;
if (MessageBox.Show("Update?", "Update", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) { Process[] processos = Process.GetProcessesByName("MyApplication");
foreach (Process processo in processos) processo.Kill();
p.Arguments = string.Empty; Process.Start(p); } } catch (Exception ex) { MessageBox.Show("..."); } finally { Application.Exit(); } }
What version of Windows are you on? Also, how much RAM do you have and what's your CPU type?
What happens when you run wyUpdate.exe directly? Is it just as slow?
Windows Server 2008 Standard SP2, 32 bits, 4 Gb RamProcessor Intel Xeon 3 GHzYes, when I run wyUpdate.exe directly, still slow.
I can't reproduce this slow loading.
How long does it take wyUpdate to start? Is your machine heavily loaded? That is, do you have a lot of I/O operations going on, or is there heavy CPU usage, or is there high memory usage?
Are you running any other .NET apps on this machine? Do they also take a long time to load?