Command line parameters

Nov 14, 2012 at 6:02 PM
Edited Nov 15, 2012 at 10:15 PM

Hi, first of all thank you for the great framework!

I want to know if it's possible to pass command line parameters when running the installer after the download is complete. What I'm basically trying to achieve is a silent update.

I know I can set that in the installer configuration, but I want this only for upgrades (and not for first time installations)

Thank you,

-Barak

Coordinator
Nov 17, 2012 at 5:26 AM
Edited Nov 17, 2012 at 5:27 AM

Look in the source code of AutoUpdater.NET. Change the following.

private void OnDownloadComplete(object sender, AsyncCompletedEventArgs e)
        {
            var processStartInfo = new ProcessStartInfo {FileName = _tempPath, UseShellExecute = true};
            processStartInfo.Arguments = "your Silent Parameter";


            Process.Start(processStartInfo);


            Application.Exit();
        }

You can also wait for it . See http://support.microsoft.com/kb/305369