aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Bal/wixiuiba/wixiuiba.cpp
blob: 92261e9b69903e8a9fe59f6e9576d6c8fd58ebc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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.

#include "precomp.h"


// function definitions

EXTERN_C int WINAPI wWinMain(
    __in HINSTANCE hInstance,
    __in_opt HINSTANCE /* hPrevInstance */,
    __in_z_opt LPWSTR /*lpCmdLine*/,
    __in int /*nCmdShow*/
    )
{
    HRESULT hr = S_OK;
    IBootstrapperApplication* pApplication = NULL;

    hr = CreateWixInternalUIBootstrapperApplication(hInstance, &pApplication);
    ExitOnFailure(hr, "Failed to create WiX internal UI bootstrapper application.");

    hr = BootstrapperApplicationRun(pApplication);
    ExitOnFailure(hr, "Failed to run WiX internal UI bootstrapper application.");

LExit:
    ReleaseObject(pApplication);

    return 0;
}