I want the app to:
- check for updates on every boot
- SILENTLY (so using the /checknow option doesn't work because it pops up a useless OK dialog that says "Your app is up to date."
What arguments and settings do I need to use to accomplish this goal?
My code:
Code: Select all
static void StartSilent() {
// The delay lets the application boot up completely so that the updater app
// appears on top of the application window.
// If you use /checknow, the updater always runs and puts up a dialog that
// says "The application is up to date." And forces the user to click okay.
// That is a headache, so only use /checknow while you are debugging
// installations. Normally, use ' /silent'
Thread.Sleep(4000);
var process = Process.Start(UpdaterModulePath, " /silent");
process.Close();
}