Struct tugger_wix::WiXBundleInstallerBuilder
source · pub struct WiXBundleInstallerBuilder<'a> { /* private fields */ }
Expand description
Entity used to build a WiX bundle installer.
Bundle installers have multiple components in them.
Implementations§
source§impl<'a> WiXBundleInstallerBuilder<'a>
impl<'a> WiXBundleInstallerBuilder<'a>
pub fn new(name: String, version: String, manufacturer: String) -> Self
sourcepub fn add_condition(&mut self, message: &str, condition: &str)
pub fn add_condition(&mut self, message: &str, condition: &str)
Define a <bal:Condition>
that must be satisfied to run this installer.
message
is the message that will be displayed if the condition is not met.
condition
is the condition expression. e.g. VersionNT = v8.0
.
pub fn add_vc_redistributable<P: AsRef<Path>>(
&mut self,
platform: VcRedistributablePlatform,
download_path: P
) -> Result<()>
sourcepub fn chain(&mut self, item: ChainElement<'a>)
pub fn chain(&mut self, item: ChainElement<'a>)
Add an installable item to the <Chain>
.
sourcepub fn add_to_installer_builder(
&self,
builder: &mut WiXInstallerBuilder
) -> Result<()>
pub fn add_to_installer_builder(
&self,
builder: &mut WiXInstallerBuilder
) -> Result<()>
Add this instance to a WiXInstallerBuilder
.
Requisite files will be downloaded and this instance will be converted to a wxs file and registered with the builder.
pub fn to_installer_builder<P: AsRef<Path>>(
&self,
id_prefix: &str,
arch: &str,
build_path: P
) -> Result<WiXInstallerBuilder>
pub fn default_exe_filename(&self) -> String
Trait Implementations§
source§impl<'a> Clone for WiXBundleInstallerBuilder<'a>
impl<'a> Clone for WiXBundleInstallerBuilder<'a>
source§fn clone(&self) -> WiXBundleInstallerBuilder<'a>
fn clone(&self) -> WiXBundleInstallerBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Default for WiXBundleInstallerBuilder<'a>
impl<'a> Default for WiXBundleInstallerBuilder<'a>
source§fn default() -> WiXBundleInstallerBuilder<'a>
fn default() -> WiXBundleInstallerBuilder<'a>
Returns the “default value” for a type. Read more