| 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 | #include "precomp.h" |
| 4 | |
| 5 | EXTERN_C int WINAPI wWinMain( |
| 6 | __in HINSTANCE hInstance, |
| 7 | __in_opt HINSTANCE /* hPrevInstance */, |
| 8 | __in_z_opt LPWSTR /*lpCmdLine*/, |
| 9 | __in int /*nCmdShow*/ |
| 10 | ) |
| 11 | { |
| 12 | HRESULT hr = S_OK; |
| 13 | IBootstrapperApplication* pApplication = NULL; |
| 14 | |
| 15 | hr = CreateWixPrerequisiteBootstrapperApplication(hInstance, &pApplication); |
| 16 | ExitOnFailure(hr, "Failed to create WiX prerequisite bootstrapper application."); |
| 17 | |
| 18 | hr = BootstrapperApplicationRun(pApplication); |
| 19 | ExitOnFailure(hr, "Failed to run WiX prerequisite bootstrapper application."); |
| 20 | |
| 21 | LExit: |
| 22 | ReleaseObject(pApplication); |
| 23 | |
| 24 | return 0; |
| 25 | } |