December 2012
Intermediate to advanced
488 pages
10h 23m
English
One reason for authoring a new user interface is to collect user information that the standard Burn UI doesn't enable us to. For example, suppose we wanted to collect a username? This is actually quite easy. We will use the StringVariables property on the Engine class. This property is a collection of key-value pairs and can be used to set a Burn variable.
We could start off by adding a new method to our BootstrapperApplicationModel class called SetBurnVariable. The following is the code:
public void SetBurnVariable(string variableName, string value)
{
this.BootstrapperApplication.Engine
.StringVariables[variableName] = value;
}This method will now accept the name of the variable that we want to set and the value ...
Read now
Unlock full access