Skip to main content

UpdateManager.ApplyUpdatesAndExit Method

Declaring Type: UpdateManager
Namespace: Velopack
Assembly: Velopack
Assembly Version: 0.0.942+a011233

This will exit your app immediately, apply updates, and then optionally relaunch the app using the specified restart arguments. If you need to save state or clean up, you should do that before calling this method. The user may be prompted during the update, if the update requires additional frameworks to be installed etc. You can check if there are pending updates by checking UpdatePendingRestart.

public void ApplyUpdatesAndExit(VelopackAsset toApply);

Parameters

toApply VelopackAsset

The target release to apply. Can be left null to auto-apply the newest downloaded release.


Documentation generated by MdDocs