Public Attributes | |
string | Id |
string | Source |
string | Target |
YesNoType | ExecuteOnInstall |
YesNoType | ExecuteOnUnInstall |
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.
<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]" />
Process the template file at install time.
Process the template file at uninstall time.
Identifier for the template file (primary key).
Name of the template file to be processed.
Target file to be written. When omitted, the source file is processed in-place and overwritten.
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |