aboutsummaryrefslogtreecommitdiff
path: root/src/balutil/inc
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-05-15 17:18:36 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-05-16 21:47:46 +1000
commit9010bd828e70e91523ed74733cc371eec09f58bb (patch)
tree9d40b796b6b29474122bcf0fb99bc717f83e7cf1 /src/balutil/inc
parent780cd25e41f2d2982807a0a2a24a734684d27fe6 (diff)
downloadwix-9010bd828e70e91523ed74733cc371eec09f58bb.tar.gz
wix-9010bd828e70e91523ed74733cc371eec09f58bb.tar.bz2
wix-9010bd828e70e91523ed74733cc371eec09f58bb.zip
WIXFEAT:6164 Update BAL_INFO_PACKAGE with bal specific data.
Diffstat (limited to 'src/balutil/inc')
-rw-r--r--src/balutil/inc/balinfo.h9
-rw-r--r--src/balutil/inc/balutil.h3
2 files changed, 10 insertions, 2 deletions
diff --git a/src/balutil/inc/balinfo.h b/src/balutil/inc/balinfo.h
index be4b75d0..0d838ae3 100644
--- a/src/balutil/inc/balinfo.h
+++ b/src/balutil/inc/balinfo.h
@@ -34,12 +34,16 @@ typedef struct _BAL_INFO_PACKAGE
34 BAL_INFO_PACKAGE_TYPE type; 34 BAL_INFO_PACKAGE_TYPE type;
35 BOOL fPermanent; 35 BOOL fPermanent;
36 BOOL fVital; 36 BOOL fVital;
37 BOOL fDisplayInternalUI; 37 LPWSTR sczDisplayInternalUICondition;
38 LPWSTR sczProductCode; 38 LPWSTR sczProductCode;
39 LPWSTR sczUpgradeCode; 39 LPWSTR sczUpgradeCode;
40 LPWSTR sczVersion; 40 LPWSTR sczVersion;
41 LPWSTR sczInstallCondition; 41 LPWSTR sczInstallCondition;
42 BAL_INFO_CACHE_TYPE cacheType; 42 BAL_INFO_CACHE_TYPE cacheType;
43 BOOL fPrereqPackage;
44 LPWSTR sczPrereqLicenseFile;
45 LPWSTR sczPrereqLicenseUrl;
46 LPVOID pvCustomData;
43} BAL_INFO_PACKAGE; 47} BAL_INFO_PACKAGE;
44 48
45 49
@@ -78,7 +82,8 @@ DAPI_(HRESULT) BalInfoAddRelatedBundleAsPackage(
78 __in BAL_INFO_PACKAGES* pPackages, 82 __in BAL_INFO_PACKAGES* pPackages,
79 __in LPCWSTR wzId, 83 __in LPCWSTR wzId,
80 __in BOOTSTRAPPER_RELATION_TYPE relationType, 84 __in BOOTSTRAPPER_RELATION_TYPE relationType,
81 __in BOOL fPerMachine 85 __in BOOL fPerMachine,
86 __out_opt BAL_INFO_PACKAGE** ppPackage
82 ); 87 );
83 88
84 89
diff --git a/src/balutil/inc/balutil.h b/src/balutil/inc/balutil.h
index b2d50752..bbfb16a2 100644
--- a/src/balutil/inc/balutil.h
+++ b/src/balutil/inc/balutil.h
@@ -11,7 +11,10 @@ extern "C" {
11 11
12#define BalExitOnFailure(x, f, ...) if (FAILED(x)) { BalLogError(x, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } 12#define BalExitOnFailure(x, f, ...) if (FAILED(x)) { BalLogError(x, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; }
13#define BalExitOnRootFailure(x, f, ...) if (FAILED(x)) { BalLogError(x, f, __VA_ARGS__); Dutil_RootFailure(__FILE__, __LINE__, x); ExitTrace(x, f, __VA_ARGS__); goto LExit; } 13#define BalExitOnRootFailure(x, f, ...) if (FAILED(x)) { BalLogError(x, f, __VA_ARGS__); Dutil_RootFailure(__FILE__, __LINE__, x); ExitTrace(x, f, __VA_ARGS__); goto LExit; }
14#define BalExitOnLastError(x, f, ...) { x = ::GetLastError(); x = HRESULT_FROM_WIN32(x); if (FAILED(x)) { BalLogError(x, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } }
15#define BalExitOnNull(p, x, e, f, ...) if (NULL == p) { x = e; BalLogError(x, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; }
14#define BalExitOnNullWithLastError(p, x, f, ...) if (NULL == p) { DWORD Dutil_er = ::GetLastError(); x = HRESULT_FROM_WIN32(Dutil_er); if (!FAILED(x)) { x = E_FAIL; } BalLogError(x, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } 16#define BalExitOnNullWithLastError(p, x, f, ...) if (NULL == p) { DWORD Dutil_er = ::GetLastError(); x = HRESULT_FROM_WIN32(Dutil_er); if (!FAILED(x)) { x = E_FAIL; } BalLogError(x, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; }
17#define BalExitWithLastError(x, f, ...) { DWORD Dutil_er = ::GetLastError(); x = HRESULT_FROM_WIN32(Dutil_er); if (!FAILED(x)) { x = E_FAIL; } BalLogError(x, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; }
15 18
16#ifndef FACILITY_WIX 19#ifndef FACILITY_WIX
17#define FACILITY_WIX 500 20#define FACILITY_WIX 500