main
cs 29 lines 919 Bytes
Raw
1 // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3 namespace Example.FullFramework2MBA
4 {
5 using WixToolset.BootstrapperApplicationApi;
6
7 public class FullFramework2BA : BootstrapperApplication
8 {
9 protected override void Run()
10 {
11 this.engine.Quit(42);
12 }
13
14 protected override void OnStartup(StartupEventArgs args)
15 {
16 base.OnStartup(args);
17
18 this.engine.Log(LogLevel.Standard, nameof(FullFramework2BA));
19 }
20
21 protected override void OnShutdown(ShutdownEventArgs args)
22 {
23 base.OnShutdown(args);
24
25 var message = "Shutdown," + args.Action.ToString() + "," + args.HResult.ToString();
26 this.engine.Log(LogLevel.Standard, message);
27 }
28 }
29 }