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