Table of Contents

Class ProgramUtils

Namespace
ZeroInstall.Bootstrap
Assembly
ZeroInstall.Bootstrap.dll

Provides utility methods for application entry points.

public static class ProgramUtils
Inheritance
object
ProgramUtils

Methods

GetStartInfo(params string[])

Creates a ProcessStartInfo for launching another instance of the current executable.

public static ProcessStartInfo GetStartInfo(params string[] args)

Parameters

args string[]

The command-line arguments to pass to the executable.

Returns

ProcessStartInfo

Init()

Common initialization code to be called by every Bootstrap executable right after startup.

public static void Init()

Run(string[], IBootstrapHandler)

Executes the bootstrap process controlled by command-line arguments.

public static ExitCode Run(string[] args, IBootstrapHandler handler)

Parameters

args string[]

The command-line arguments to handle.

handler IBootstrapHandler

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

Returns

ExitCode

The exit status code to end the process with.