UpdateManager.WaitExitThenApplyUpdates Method
Declaring Type: UpdateManager
Namespace: Velopack
Assembly: Velopack
Assembly Version: 0.0.942+a011233
This will launch the Velopack updater and tell it to wait for this program to exit gracefully. You should then clean up any state and exit your app. The updater will apply updates and then optionally restart your app. The updater will only wait for 60 seconds before giving up. You can check if there are pending updates by checking UpdatePendingRestart.
public void WaitExitThenApplyUpdates(VelopackAsset toApply, bool silent = false, bool restart = true, string[] restartArgs = null);
Parameters
toApply
VelopackAsset
The target release to apply. Can be left null to auto-apply the newest downloaded release.
silent
bool
Configure whether Velopack should show a progress window / dialogs during the updates or not.
restart
bool
Configure whether Velopack should restart the app after the updates have been applied.
restartArgs
string[]
The arguments to pass to the application when it is restarted.
Documentation generated by MdDocs