December 2012
Intermediate to advanced
488 pages
10h 23m
English
To accept command-line arguments passed to your UI, use the Command.GetCommandLineArgs method, accessible via the BootstrapperApplication class. For example, we could add a method to our model class called GetCommandLine, like so:
public string[] GetCommandLine()
{
return this.BootstrapperApplication.Command
.GetCommandLineArgs();
}Internally, this method will call the
GetCommandLineArgs method, which returns an array of strings. Each index in the array will contain one of the arguments passed to the bootstrapper. If the user were then to pass an argument called "foo" to our executable, such as:
MyBootstrapper.exe /foo
Then /foo would be stored in the string array. Note, however, that the Burn engine intercepts ...
Read now
Unlock full access