| 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.FullFramework4MBA |
| 4 | { |
| 5 | using WixToolset.BootstrapperApplicationApi; |
| 6 | |
| 7 | public class FullFramework4BA : BootstrapperApplication |
| 8 | { |
| 9 | protected override void Run() |
| 10 | { |
| 11 | this.engine.Quit(0); |
| 12 | } |
| 13 | |
| 14 | protected override void OnStartup(StartupEventArgs args) |
| 15 | { |
| 16 | base.OnStartup(args); |
| 17 | |
| 18 | this.engine.Log(LogLevel.Standard, nameof(FullFramework4BA)); |
| 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 | } |