Table of Contents

Class IntegrationCommand

Namespace
ZeroInstall.Commands.Desktop
Assembly
0install.dll

Common base class for commands that manage ZeroInstall.DesktopIntegration.

public abstract class IntegrationCommand : CliCommand
Inheritance
IntegrationCommand
Derived
Inherited Members

Constructors

IntegrationCommand(ICommandHandler)

Creates a new command.

protected IntegrationCommand(ICommandHandler handler)

Parameters

handler ICommandHandler

A callback object used when the user needs to be asked questions or informed about download and IO tasks.

Fields

NoDownload

Do not download the application itself yet.

protected bool NoDownload

Field Value

bool

Methods

CheckInstallBase()

Checks the current InstallBase to determine whether it is suitable for operations that persist it.

protected void CheckInstallBase()

Remarks

This should be called before performing any operations that persist InstallBase somewhere, e.g. in generated shortcuts or stubs. It is not required for operations that only remove things from the system.

Exceptions

UnsuitableInstallBaseException

The current Zero Install instance is installed in a location unsuitable for the desired operation.

ExistingDesktopIntegration(bool)

Indicates whether any desktop integration for apps has been performed yet.

public static bool ExistingDesktopIntegration(bool machineWide = false)

Parameters

machineWide bool

Returns

bool

GetAppEntry(IIntegrationManager, ref FeedUri)

Finds an existing AppEntry or creates a new one for a specific interface URI.

protected virtual AppEntry GetAppEntry(IIntegrationManager integrationManager, ref FeedUri interfaceUri)

Parameters

integrationManager IIntegrationManager

Manages desktop integration operations.

interfaceUri FeedUri

The interface URI to create an AppEntry for. Will be updated if ReplacedBy is set and accepted by the user.

Returns

AppEntry

Parse(IReadOnlyList<string>)

Parses command-line arguments and stores the result in the command.

public override void Parse(IReadOnlyList<string> args)

Parameters

args IReadOnlyList<string>

The command-line arguments to be parsed.

Exceptions

OperationCanceledException

The user asked to see help information, version information, etc..

OptionException

args contains unknown options.

IOException

An IO operation failed.

UnauthorizedAccessException

More privileges are required.

UriFormatException

The URI or local path specified is invalid.