MSIX: implement initial msix installer

This commit is contained in:
yuyoyuppe
2019-12-18 13:19:15 +03:00
committed by yuyoyuppe
parent b58d4e306a
commit 860087d291
12 changed files with 105 additions and 0 deletions

11
src/common/winstore.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include "pch.h"
#include "winstore.h"
#include <appmodel.h>
bool running_as_packaged()
{
UINT32 length = 0;
const auto rc = GetPackageFamilyName(GetCurrentProcess(), &length, nullptr);
return rc != APPMODEL_ERROR_NO_PACKAGE;
}