updating: split installer-related and github-related APIs, fix compilation error with latest VS

This commit is contained in:
yuyoyuppe
2020-11-20 11:34:34 +03:00
committed by Andrey Nekrasov
parent 0626519b4d
commit 9c5f142786
14 changed files with 247 additions and 193 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include <string>
#include <optional>
#include <future>
#include "notifications.h"
#include "../VersionHelper.h"
namespace updating
{
std::wstring get_msi_package_path();
bool uninstall_msi_version(const std::wstring& package_path, const notifications::strings&);
bool offer_msi_uninstallation(const notifications::strings&);
std::optional<std::wstring> get_msi_package_installed_path();
std::optional<VersionHelper> get_installed_powertoys_version();
std::future<bool> uninstall_previous_msix_version_async();
}