Skip to main content

App class

Python wrapper for VelopackApp with builder pattern

class App

Constructors

ConstructorSummary
App

App()

App()

Methods

MethodSummary
on_after_install_fast_callbackFast callback hook for after installation (Windows only)
on_after_update_fast_callbackFast callback hook for after update (Windows only)
on_before_uninstall_fast_callbackFast callback hook for before uninstall (Windows only)
on_before_update_fast_callbackFast callback hook for before update (Windows only)
on_first_runThis hook is triggered when the application is started for the first time after installation
on_restartedThis hook is triggered when the application is restarted by Velopack after installing updates
runRuns the Velopack startup logic
set_argsOverride the command line arguments used by VelopackApp
set_auto_apply_on_startupSet whether to automatically apply downloaded updates on startup

on_after_install_fast_callback(callback)

on_after_install_fast_callback(callback)

Fast callback hook for after installation (Windows only)

Parameters

NameDescription
callback

on_after_update_fast_callback(callback)

on_after_update_fast_callback(callback)

Fast callback hook for after update (Windows only)

Parameters

NameDescription
callback

on_before_uninstall_fast_callback(callback)

on_before_uninstall_fast_callback(callback)

Fast callback hook for before uninstall (Windows only)

Parameters

NameDescription
callback

on_before_update_fast_callback(callback)

on_before_update_fast_callback(callback)

Fast callback hook for before update (Windows only)

Parameters

NameDescription
callback

on_first_run(callback)

on_first_run(callback)

This hook is triggered when the application is started for the first time after installation

Parameters

NameDescription
callback

on_restarted(callback)

on_restarted(callback)

This hook is triggered when the application is restarted by Velopack after installing updates

Parameters

NameDescription
callback

run()

run()

Runs the Velopack startup logic

set_args(args)

set_args(args)

Override the command line arguments used by VelopackApp

Parameters

NameDescription
args

set_auto_apply_on_startup(apply)

set_auto_apply_on_startup(apply)

Set whether to automatically apply downloaded updates on startup

Parameters

NameDescription
apply

Generated from velopack 1.1.1