Public Attributes | List of all members
Wix::Extensions::SystemTools::TemplateFile Class Reference

Public Attributes

string Id
 
string Source
 
string Target
 
YesNoType ExecuteOnInstall
 
YesNoType ExecuteOnUnInstall
 
YesNoType ExecuteOnReInstall
 

Detailed Description

May be nested under Component. Implements formatting of a template file.

The extension allows processing of template files in-place or into a new file. To evaluate a property called PROPERTYNAME in a template file, write [PROPERTYNAME]. Non-declared properties are not evaluated. Declared properties with empty values are evaluated to their empty value.

An optional condition that combines with options may be specified as a Condition node under TemplateFile.

Example:
<SystemTools:TemplateFile Id="File_template_process_component" Source="[#File_template]" Target="[INSTALLLOCATION]File.txt" ExecuteOnInstall="yes">
<SystemTools:TemplateFileProperty Id="INSTALLLOCATION_property" Name="INSTALLLOCATION" Value="[INSTALLLOCATION]" />
<SystemTools:TemplateFileProperty Id="TEST_property" Name="TEST" Value="test" />
<SystemTools:TemplateFileProperty Id="FILENAME_property" Name="Filename" Value="File.txt" />
</SystemTools:TemplateFile>

In addition to properties specified by TemplateFileProperty, built-in properties are available. Those are not all MSI properties, only those that were declared at build time. If the property has changed during installation, its old value is provided by default: overwrite the property value with the current one by explicitly declaring TemplateFileProperty with a value.

<SystemTools:TemplateFileProperty Id="PROPERTY1" Name="PROPERTY1" Value="[PROPERTY1]" />

Member Data Documentation

YesNoType Wix::Extensions::SystemTools::TemplateFile::ExecuteOnInstall

Process the template file at install time.

YesNoType Wix::Extensions::SystemTools::TemplateFile::ExecuteOnReInstall

Process the template file at reinstall time.

YesNoType Wix::Extensions::SystemTools::TemplateFile::ExecuteOnUnInstall

Process the template file at uninstall time.

string Wix::Extensions::SystemTools::TemplateFile::Id

Identifier for the template file (primary key).

string Wix::Extensions::SystemTools::TemplateFile::Source

Name of the template file to be processed.

string Wix::Extensions::SystemTools::TemplateFile::Target

Target file to be written. When omitted, the source file is processed in-place and overwritten.


The documentation for this class was generated from the following file:


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com