Extending the BootstrapperApplication class
The first class we'll add to our project will provide the bridge between our code and the Burn engine. Add a new C# class file and name it CustomBootstrapperApplication
. It should extend the BootstrapperApplication
class from the Microsoft.Tools.WindowsInstallerXml.Bootstrapper
namespace. Add the following code:
using CustomBA.Models; using CustomBA.ViewModels; using CustomBA.Views; using Microsoft.Tools.WindowsInstallerXml.Bootstrapper; using System; using System.Windows.Threading; namespace CustomBA { public class CustomBootstrapperApplication : BootstrapperApplication { public static Dispatcher Dispatcher { get; set; } protected override void Run() { Dispatcher = Dispatcher.CurrentDispatcher; var model = new BootstrapperApplicationModel(this); var viewModel = new InstallViewModel(model); var view = new InstallView(viewModel); model.SetWindowHandle...