Upgrade Check Failed

We are using wyUpdate.exe in a windows c# application.

wyUpdate.exe version : 2.6.18.4.Net Framework Version : 3.5OS : Win7/8/10.

Initial launch, we are checking any upgrade is available or not using below command. We are getting error code as 0 for every 1st time checking. Logout and login the application, we never observed this issue.

int exitCode = 0; lock (_locker) { using (Process process = new Process()) { string upgradeCheckFormat = "-server={0} -updatepath={1} /quickcheck /justcheck /noerr"; process.StartInfo.FileName = WyUpdateFilePath; process.StartInfo.Arguments = string.Format(upgradeCheckFormat, ServerPath, UpdatePath); process.Start(); process.WaitForExit();

exitCode = process.ExitCode; } }

Please help me.

Thanks

More information is needed. If I were to guess I would say you're not properly quoting arguments. Also, try running it again without the /quickcheck /justcheck / noerr so you can actually see what's happening.