/// <summary> /// Inits all the callbacks for WinSparkle, so that when we call for update checks and such, /// it has all appropriate callbacks to request app shutdown, restart, etc, to allow for /// updating. /// </summary> private void InitWinsparkle() { m_winsparkleShutdownCheckCb = new WinSparkle.WinSparkleCanShutdownCheckCallback(WinSparkleCheckIfShutdownOkay); m_winsparkleShutdownRequestCb = new WinSparkle.WinSparkleRequestShutdownCallback(WinSparkleRequestsShutdown); if (Environment.Is64BitProcess) { AppcastUrl = System.Configuration.ConfigurationManager.AppSettings["Updatex64AppcastURL"]; } else { AppcastUrl = System.Configuration.ConfigurationManager.AppSettings["Updatex86AppcastURL"]; } WinSparkle.SetCanShutdownCallback(m_winsparkleShutdownCheckCb); WinSparkle.SetShutdownRequestCallback(m_winsparkleShutdownRequestCb); WinSparkle.SetAppcastUrl(AppcastUrl); }