Skip to content

WixOutput Class

Class that understands the standard file structure of the WiX toolset.

MethodDescription
Create()Creates a new file structure in memory.
Create(path)Creates a new file structure on disk.
Create(uri, stream)Creates a new file structure.
CreateDataStream()Creates a data stream in the wixout.
Dispose()Disposes of the internal state of the file structure.
Dispose(disposing)Disposes of the internsl state of the file structure.
ExtractEmbeddedFile(embeddedId, outputPath)Extracts an embedded file.
GetData()Gets the data of the file as a string.
GetDataStream()Gets a non-closing stream to the data of the file.
ImportDataStream(name, path)Imports a file from disk into the output.
Read(path)Loads a wixout from a path on disk.
Read(baseUri)Loads a wixout from a path on disk or embedded resource in assembly.
Read(assembly, resourceName)Loads a wixout from an assembly resource stream.
Read(uri, stream)Reads a file structure from an open stream.
Reopen(writable)Reopen the underlying archive for read-only or read-write access.
PropertyDescription
Uri
WixToolset.Data.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Creates a new file structure in memory.

public static WixOutput Create()

WixOutput Newly created WixOutput .

Creates a new file structure on disk.

public static WixOutput Create(
string path
)
ParameterTypeDescription
pathstringPath to write file structure to.

WixOutput Newly created WixOutput .

Creates a new file structure.

public static WixOutput Create(
System.Uri uri,
System.IO.Stream stream
)
ParameterTypeDescription
uriSystem.Uri
streamSystem.IO.StreamStream to write the file structure to.

WixOutput Newly created WixOutput .

Creates a data stream in the wixout.

public System.IO.Stream CreateDataStream()

System.IO.Stream Stream to the data of the file.

Disposes of the internal state of the file structure.

public void Dispose()

Disposes of the internsl state of the file structure.

protected void Dispose(
bool disposing
)
ParameterTypeDescription
disposingboolTrue if disposing.

ExtractEmbeddedFile(embeddedId, outputPath) Method

Section titled “ExtractEmbeddedFile(embeddedId, outputPath) Method”

Extracts an embedded file.

public void ExtractEmbeddedFile(
string embeddedId,
string outputPath
)
ParameterTypeDescription
embeddedIdstringId to the file to extract.
outputPathstringPath to write the extracted file to.

Gets the data of the file as a string.

public string GetData()

string String contents data of the file.

Gets a non-closing stream to the data of the file.

public System.IO.Stream GetDataStream()

System.IO.Stream Stream to the data of the file.

Imports a file from disk into the output.

public void ImportDataStream(
string name,
string path
)
ParameterTypeDescription
namestringName of the stream in the output.
pathstringPath to file on disk to include in the output.

Loads a wixout from a path on disk.

public static WixOutput Read(
string path
)
ParameterTypeDescription
pathstringPath to wixout file saved on disk.

WixOutput Loaded created WixOutput .

Loads a wixout from a path on disk or embedded resource in assembly.

public static WixOutput Read(
System.Uri baseUri
)
ParameterTypeDescription
baseUriSystem.UriUri with local path to wixout file saved on disk or embedded resource in assembly.

WixOutput Loaded created WixOutput .

Loads a wixout from an assembly resource stream.

public static WixOutput Read(
System.Reflection.Assembly assembly,
string resourceName
)
ParameterTypeDescription
assemblySystem.Reflection.Assembly
resourceNamestring

WixOutput Loaded created WixOutput .

Reads a file structure from an open stream.

public static WixOutput Read(
System.Uri uri,
System.IO.Stream stream
)
ParameterTypeDescription
uriSystem.Uri
streamSystem.IO.StreamStream to read from.

WixOutput Loaded created WixOutput .

Reopen the underlying archive for read-only or read-write access.

public void Reopen(
bool writable
)
ParameterTypeDescription
writableboolIndicates whether the output can be modified. Defaults to false.
public System.Uri Uri { get; set; }