aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Bal/wixprqba/wixprqba.cpp
blob: c6e5dfefb4339386a7f4984a8a719ca68d86d533 (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
// 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"

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 = CreateWixPrerequisiteBootstrapperApplication(hInstance, &pApplication);
    ExitOnFailure(hr, "Failed to create WiX prerequisite bootstrapper application.");

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

LExit:
    ReleaseObject(pApplication);

    return 0;
}