C# Class ZeroInstall.DesktopIntegration.Windows.StubBuilder

Utility class for building stub EXEs that execute "0install" commands. Provides persistent local paths.
ファイルを表示 Open project: 0install/0install-win Class Usage Examples

Public Methods

Method Description
GetRunStub ( FeedTarget target, [ command, [ handler, bool machineWide = false ) : string

Builds a stub EXE in a well-known location. Future calls with the same arguments will return the same EXE.

Private Methods

Method Description
BuildRunStub ( FeedTarget target, [ path, [ handler, bool needsTerminal, [ command = null ) : void

Builds a stub EXE that executes the "0install run" command.

CreateOrUpdateRunStub ( FeedTarget target, [ path, [ command, bool needsTerminal, [ handler ) : void

Creates a new or updates an existing stub EXE that executes the "0install run" command.

EscapeForCode ( string value ) : string

Escapes a string so that is safe for substitution inside C# code

GetRunStubCode ( FeedTarget target, bool needsTerminal, [ command = null ) : string

Generates the C# to be compiled for the stub EXE.

Method Details

GetRunStub() public static method

Builds a stub EXE in a well-known location. Future calls with the same arguments will return the same EXE.
The user canceled the task. There was a compilation error while generating the stub EXE. A problem occurs while writing to the filesystem. A problem occured while downloading additional data (such as icons). Write access to the filesystem is not permitted.
public static GetRunStub ( FeedTarget target, [ command, [ handler, bool machineWide = false ) : string
target ZeroInstall.Store.FeedTarget The application to be launched via the stub.
command [ The command argument to be passed to the the "0install run" command; can be null.
handler [ A callback object used when the the user is to be informed about the progress of long-running operations such as downloads.
machineWide bool Store the stub in a machine-wide directory instead of just for the current user.
return string