Function tugger_wix::write_file_manifest_to_wix
source · 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<()>
Expand description
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
.
id_prefix
defines a string prefix for identifiers (Id
attributes), notably
in Directory
and Component
XML elements.