Skip to main content

WindowsVelopackLocator class

Namespace: Velopack.Locators

An implementation for Windows which uses the default paths.

public class WindowsVelopackLocator : VelopackLocator, IVelopackLocator

Inherits: VelopackLocator
Implements: IVelopackLocator

Constructors

ConstructorSummary
WindowsVelopackLocatorAn implementation for Windows which uses the default paths.

WindowsVelopackLocator(processImpl, customLog)

public WindowsVelopackLocator(IProcessImpl? processImpl, IVelopackLogger? customLog)

An implementation for Windows which uses the default paths.

Parameters

NameTypeDescription
processImplIProcessImpl
customLogIVelopackLogger

Properties

PropertySummary
AppIdThe unique application Id. This is used in various app paths.
RootAppDirThe root directory of the application. On Windows, this folder contains all
UpdateExePathThe path to the current Update.exe or similar on other operating systems.
AppContentDirThe directory in which versioned application files are stored.
CurrentlyInstalledVersionThe currently installed version of the application, or null if the app is not installed.
PackagesDirThe directory in which nupkg files are stored for this application.
IsPortableA flag indicating if this is a portable build, and that the settings should be self-contained in the package.
ProcessProvides an abstraction for dealing with the dotnet Process API. This is used to start processes and
ChannelThe release channel this package was built for.
AppUserModelIdThe Application User Model ID for this app, used for taskbar grouping and toast notifications on Windows.

AppId

public override string? AppId { get; }

The unique application Id. This is used in various app paths.

RootAppDir

public override string? RootAppDir { get; }

The root directory of the application. On Windows, this folder contains all the application files, but that may not be the case on other operating systems.

UpdateExePath

public override string? UpdateExePath { get; }

The path to the current Update.exe or similar on other operating systems.

AppContentDir

public override string? AppContentDir { get; }

The directory in which versioned application files are stored.

CurrentlyInstalledVersion

public override SemanticVersion? CurrentlyInstalledVersion { get; }

The currently installed version of the application, or null if the app is not installed.

PackagesDir

public override string? PackagesDir { get; }

The directory in which nupkg files are stored for this application.

IsPortable

public override bool IsPortable { get; }

A flag indicating if this is a portable build, and that the settings should be self-contained in the package. On Windows, this is true for portable builds, and false for non-portable builds which were installed by Setup.exe On OSX and Linux, this is always false, because settings and application files should be stored in the user's home directory.

Process

public override IProcessImpl Process { get; }

Provides an abstraction for dealing with the dotnet Process API. This is used to start processes and get information about the current process.

Channel

public override string? Channel { get; }

The release channel this package was built for.

AppUserModelId

public override string? AppUserModelId { get; }

The Application User Model ID for this app, used for taskbar grouping and toast notifications on Windows.


Generated from Velopack 1.1.1