Struct tugger_wix::WiXSimpleMsiBuilder [−][src]
pub struct WiXSimpleMsiBuilder { /* fields omitted */ }
Expand description
Entity used to emit a simple .wxs
for building an msi installer.
Instances are constructed with mandatory fields, such as the product name, version, and author.
Various optional fields can be provided and will be used in the installer if provided.
The MSI installer will materialize registered files in the
Program Files
directory on the target machine.
Implementations
Add files to install to Program Files
via a FileManifest
.
All files in the provided manifest will be materialized in Program Files
by the built installer.
pub fn add_visual_cpp_redistributable(
&mut self,
redist_version: &str,
platform: VcRedistributablePlatform
) -> Result<()>
pub fn add_visual_cpp_redistributable(
&mut self,
redist_version: &str,
platform: VcRedistributablePlatform
) -> Result<()>
Attempt to add the Visual C++ Redistributable DLLs to the program files manifest.
This will use vswhere.exe
to attempt to locate a Visual Studio installation
and will attempt to find the Visual C++ Redistributable DLLs (vcruntimeXXX.dll
) in
that install. Discovered DLLs are materialized in the root directory of the
program files manifest.
The latest installed version is always used.
As this requires vswhere.exe
and a Visual Studio installation, this function
will always error outside of Windows.
Set the <Product UpgradeCode
attribute value.
If not called, a deterministic value will be derived from the product name.
Set the <Package Keywords
attribute value.
Set the <Package Description
attribute value.
Set the path to the file containing the license for this application.
Set the path to the file containing the icon for this installer.
Set the path to an rtf file containing the end user license agreement.
Set the path to a bmp file containing a banner to use for install.
The dimensions of the banner should be 493 x 58.
Set the path to a bmp file containing an image for the install dialog.
The dimensions of the image should be 493 x 312.
Register signtool signing settings to be used to automatically sign binaries.
This will automatically sign all installed binaries as well as the generated installer.
Add this instance to a WiXInstallerBuilder
.
Obtain the default filename to use for the generated MSI.
pub fn to_installer_builder<P: AsRef<Path>>(
&self,
arch: &str,
build_path: P
) -> Result<WiXInstallerBuilder>
pub fn to_installer_builder<P: AsRef<Path>>(
&self,
arch: &str,
build_path: P
) -> Result<WiXInstallerBuilder>
Convert to a WiXInstallerBuilder
.
This will construct a new WiXInstallerBuilder
suitable for building
this msi installer.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for WiXSimpleMsiBuilder
impl Send for WiXSimpleMsiBuilder
impl Sync for WiXSimpleMsiBuilder
impl Unpin for WiXSimpleMsiBuilder
impl UnwindSafe for WiXSimpleMsiBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self