Function tugger_wix::write_file_manifest_to_wix[][src]

pub fn write_file_manifest_to_wix<W: Write, P: AsRef<Path>>(
    writer: &mut EventWriter<W>,
    manifest: &FileManifest,
    install_prefix: P,
    root_directory_id: &str,
    id_prefix: &str
) -> Result<()>

Convert a FileManifest to WiX XML defining those files.

The generated XML contains <Fragment> and <DirectoryRef> for every file in the install manifest.

install_prefix is a directory where the files in manifest are installed.

root_directory_id defines the <DirectoryRef Id="..." value for the root directory. Typically this ID is referenced in an outer wxs file to materialize all files defined by this manifest/wxs file. A common value is INSTALLDIR or APPLICATIONFOLDER.

directory_id_prefix defines a string prefix for <DirectoryRef Id="..." values. The IDs will have the form <directory_id_prefix>.<relative_directory>, with some normalization (e.g. / is normalized to . and - to _).

component_id_prefix defines a string prefix for <Component Id="..." values.