Example #1
0
 /// <summary>
 ///  Restarts the app and installs the update after it has been downloaded.
 ///  It should only be called after `update-downloaded` has been emitted.
 ///
 ///  Note: QuitAndInstall() will close all application windows first and only emit `before-quit` event on `app` after that.
 ///  This is different from the normal quit event sequence.
 /// </summary>
 /// <param name="isSilent">*windows-only* Runs the installer in silent mode. Defaults to `false`.</param>
 /// <param name="isForceRunAfter">Run the app after finish even on silent install. Not applicable for macOS. Ignored if `isSilent` is set to `false`.</param>
 public void QuitAndInstall(bool isSilent = false, bool isForceRunAfter = false)
 {
     BridgeConnector.EmitSync("autoUpdaterQuitAndInstall", isSilent, isForceRunAfter);
 }