I've taken the approach of using a windows service to check for updates so admin priv is not required by the end user.
I have /qn on and would like to check for updates and install updates. Here is the code I am using:
System.Diagnostics.ProcessStartInfo processStartInfo =
new System.Diagnostics.ProcessStartInfo(updatepath, "/justcheck");
System.Diagnostics.Process process =
System.Diagnostics.Process.Start(processStartInfo);
process.WaitForExit();
int exit = process.ExitCode;
process.Close();
The problem is that the process never returns by itself. That is it never returns a code to check. This is also true for /silentall.
I'm sure the updatepath is correct and updater + ini are in the same folder as app. The updates work fine when I just click on updater.exe shortcut.
Any clues? Is this the right way to receive the return code from a the updater process triggered inside a service or main app??
FOLLOW US
Get the latest news in Application Packaging