Struct tugger_wix::WiXInstallerBuilder[][src]

pub struct WiXInstallerBuilder { /* fields omitted */ }

Entity used to build installers using the WiX Toolkit.

Implementations

impl WiXInstallerBuilder[src]

pub fn new<P: AsRef<Path>>(
    id_prefix: String,
    target_triple: String,
    build_path: P
) -> Self
[src]

Create a new instance.

pub fn variables(&self) -> Iter<'_, String, Option<String>>[src]

Obtain variables that will be used for light invocations.

pub fn set_variable<S: ToString>(&mut self, key: S, value: Option<S>)[src]

Set a WiX variable with an optional value.

These are passed to light.exe.

pub fn build_path(&self) -> &Path[src]

pub fn wxs_files(&self) -> &BTreeMap<PathBuf, WxsBuilder>[src]

pub fn add_wxs(&mut self, wxs: WxsBuilder)[src]

Add a wxs file to build.

pub fn add_extra_build_file<P: AsRef<Path>>(
    &mut self,
    path: P,
    content: impl Into<FileEntry>
) -> Result<()>
[src]

Add an extra file to the build environment.

These files will be materialized next to .wxs files.

pub fn add_extra_build_files(&mut self, manifest: &FileManifest) -> Result<()>[src]

Add additional files to be materialized in the build environment.

Files are specified via a FileManifest and will be materialized next to .wxs files.

pub fn install_files(&self) -> &FileManifest[src]

pub fn install_files_mut(&mut self) -> &mut FileManifest[src]

pub fn auto_sign_signtool(&mut self, settings: SigntoolSign)[src]

Register signtool signing settings to be used to automatically sign binaries.

This will automatically sign all installed binaries as well as the generated installer.

pub fn add_files_manifest_wxs(&mut self, root_directory_id: &str) -> Result<()>[src]

Generate a wxs file containing fragments for all files registered for install.

pub fn build<P: AsRef<Path>>(
    &self,
    logger: &Logger,
    output_path: P
) -> Result<()>
[src]

Produce an installer using the configuration in this builder.

The output could be an MSI, exe, or other file formats depending on what the wxs files define.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,