Class ProgramUtils
- Namespace
- ZeroInstall.Bootstrap
- Assembly
- ZeroInstall.Bootstrap.dll
Provides utility methods for application entry points.
public static class ProgramUtils
- Inheritance
-
objectProgramUtils
Methods
GetStartInfo(params string[])
Creates a ProcessStartInfo for launching another instance of the current executable.
public static ProcessStartInfo GetStartInfo(params string[] args)
Parameters
argsstring[]The command-line arguments to pass to the executable.
Returns
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
argsstring[]The command-line arguments to handle.
handlerIBootstrapHandlerA 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.