msi: detect and set previous installation path via a custom action (#2108)

This commit is contained in:
Andrey Nekrasov
2020-04-21 20:52:28 +03:00
committed by GitHub
parent 0354026292
commit b5dfe6320d
5 changed files with 106 additions and 20 deletions

View File

@@ -1,13 +1,23 @@
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
#include <strsafe.h>
#include <msiquery.h>
#include <Msi.h>
// WiX Header Files:
#include <wcautil.h>
#define SECURITY_WIN32
#include <Security.h>
#include <Lmcons.h>
// TODO: reference additional headers your program requires here
#include <comdef.h>
#include <taskschd.h>
#include <iostream>
#include <strutil.h>
#include <string>
#include <optional>
#include <pathcch.h>