Path: blob/main/Tools/msi/bundle/bootstrap/pythonba.cpp
12 views
//-------------------------------------------------------------------------------------------------1// <copyright file="wixstdba.cpp" company="Outercurve Foundation">2// Copyright (c) 2004, Outercurve Foundation.3// This software is released under Microsoft Reciprocal License (MS-RL).4// The license and further copyright text can be found in the file5// LICENSE.TXT at the root directory of the distribution.6// </copyright>7//8// <summary>9// Setup chainer/bootstrapper standard UI for WiX toolset.10// </summary>11//-------------------------------------------------------------------------------------------------1213#include "pch.h"1415static HINSTANCE vhInstance = NULL;1617extern "C" BOOL WINAPI DllMain(18IN HINSTANCE hInstance,19IN DWORD dwReason,20IN LPVOID /* pvReserved */21)22{23switch(dwReason)24{25case DLL_PROCESS_ATTACH:26::DisableThreadLibraryCalls(hInstance);27vhInstance = hInstance;28break;2930case DLL_PROCESS_DETACH:31vhInstance = NULL;32break;33}3435return TRUE;36}373839extern "C" HRESULT WINAPI BootstrapperApplicationCreate(40__in IBootstrapperEngine* pEngine,41__in const BOOTSTRAPPER_COMMAND* pCommand,42__out IBootstrapperApplication** ppApplication43)44{45HRESULT hr = S_OK;4647BalInitialize(pEngine);4849hr = CreateBootstrapperApplication(vhInstance, FALSE, S_OK, pEngine, pCommand, ppApplication);50BalExitOnFailure(hr, "Failed to create bootstrapper application interface.");5152LExit:53return hr;54}555657extern "C" void WINAPI BootstrapperApplicationDestroy()58{59BalUninitialize();60}616263extern "C" HRESULT WINAPI MbaPrereqBootstrapperApplicationCreate(64__in HRESULT hrHostInitialization,65__in IBootstrapperEngine* pEngine,66__in const BOOTSTRAPPER_COMMAND* pCommand,67__out IBootstrapperApplication** ppApplication68)69{70return E_NOTIMPL;71}727374extern "C" void WINAPI MbaPrereqBootstrapperApplicationDestroy()75{ }767778