C# Class ZeroInstall.Publish.WinForms.InstallerCapture

Holds state shared between Wizard pages when capturing an installer.
Inheritance: IDisposable
Show file Open project: 0install/0install-win

Public Methods

Method Description
Download ( [ url, [ handler ) : void

Downloads the installer from the web to a temporary file.

Use either this or SetLocal.

ExtractInstallerAsArchive ( [ feedBuilder, [ handler ) : void

Tries extracting the installer as an Archive.

RunInstaller ( [ handler ) : void

Runs the installer and waits for it to exit.

SetLocal ( [ url, [ path ) : void

Sets the installer source to a pre-existing local file.

Use either this or Download.

Private Methods

Method Description
Dispose ( ) : void

Method Details

Download() public method

Downloads the installer from the web to a temporary file.
Use either this or SetLocal.
A file could not be downloaded from the internet. A downloaded file could not be written to the disk. An operation failed due to insufficient rights.
public Download ( [ url, [ handler ) : void
url [ The URL of the file to download.
handler [ A callback object used when the the user is to be informed about progress.
return void

ExtractInstallerAsArchive() public method

Tries extracting the installer as an Archive.
The user canceled the task. The installer could not be extracted as an archive. Read or write access to a temporary file is not permitted.
public ExtractInstallerAsArchive ( [ feedBuilder, [ handler ) : void
feedBuilder [ All collected data is stored into this builder.
handler [ A callback object used when the the user is to be informed about progress.
return void

RunInstaller() public method

Runs the installer and waits for it to exit.
The user canceled the task. There is a problem access a temporary file. Read or write access to a temporary file is not permitted.
public RunInstaller ( [ handler ) : void
handler [ A callback object used when the the user is to be informed about progress.
return void

SetLocal() public method

Sets the installer source to a pre-existing local file.
Use either this or Download.
public SetLocal ( [ url, [ path ) : void
url [ The URL the file was originally downloaded from.
path [ The local path of the file.
return void