36 строки
972 B
C++
36 строки
972 B
C++
#include <windows.h>
|
|
|
|
#include <shlobj_core.h>
|
|
#include <CommCtrl.h>
|
|
|
|
#include "FilePaths.hpp"
|
|
#include "InstallComplete.hpp"
|
|
#include "GeneralUtil.hpp"
|
|
#include <TraceLoggingProvider.h>
|
|
#include "MsixTraceLoggingProvider.hpp"
|
|
|
|
using namespace MsixCoreLib;
|
|
|
|
const PCWSTR InstallComplete::HandlerName = L"InstallComplete";
|
|
|
|
HRESULT InstallComplete::ExecuteForAddRequest()
|
|
{
|
|
auto msixResponse = m_msixRequest->GetMsixResponse();
|
|
if (msixResponse != nullptr && !msixResponse->GetIsInstallCancelled())
|
|
{
|
|
msixResponse->Update(InstallationStep::InstallationStepCompleted, 100);
|
|
}
|
|
return S_OK;
|
|
}
|
|
|
|
HRESULT InstallComplete::CreateHandler(MsixRequest * msixRequest, IPackageHandler ** instance)
|
|
{
|
|
std::unique_ptr<InstallComplete> localInstance(new InstallComplete(msixRequest));
|
|
if (localInstance == nullptr)
|
|
{
|
|
return E_OUTOFMEMORY;
|
|
}
|
|
*instance = localInstance.release();
|
|
|
|
return S_OK;
|
|
} |