diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-03-04 17:55:17 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-03-05 16:22:04 -0600 |
commit | e027c6c571a4bc8c818244e2b0c5015eb4ef3110 (patch) | |
tree | 8149aa491766bfe8a883f921831a52133abceea5 /src/ext/Bal | |
parent | baf09c19c5a0f0d3f9533f9084f094066c1be7d9 (diff) | |
download | wix-e027c6c571a4bc8c818244e2b0c5015eb4ef3110.tar.gz wix-e027c6c571a4bc8c818244e2b0c5015eb4ef3110.tar.bz2 wix-e027c6c571a4bc8c818244e2b0c5015eb4ef3110.zip |
Change ARP property Installed to 0 when registrationType is InProgress.
Being registered in ARP and "installed" were always separate concepts, and some things like fEligibleForCleanup were looking at the wrong thing. This also allows the BA to tell the difference.
Diffstat (limited to 'src/ext/Bal')
-rw-r--r-- | src/ext/Bal/Samples/bafunctions/WixSampleBAFunctions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext/Bal/Samples/bafunctions/WixSampleBAFunctions.cpp b/src/ext/Bal/Samples/bafunctions/WixSampleBAFunctions.cpp index 870b219b..5383efbf 100644 --- a/src/ext/Bal/Samples/bafunctions/WixSampleBAFunctions.cpp +++ b/src/ext/Bal/Samples/bafunctions/WixSampleBAFunctions.cpp | |||
@@ -9,14 +9,14 @@ class CWixSampleBAFunctions : public CBalBaseBAFunctions | |||
9 | public: // IBootstrapperApplication | 9 | public: // IBootstrapperApplication |
10 | virtual STDMETHODIMP OnDetectBegin( | 10 | virtual STDMETHODIMP OnDetectBegin( |
11 | __in BOOL fCached, | 11 | __in BOOL fCached, |
12 | __in BOOL fInstalled, | 12 | __in BOOTSTRAPPER_REGISTRATION_TYPE registrationType, |
13 | __in DWORD cPackages, | 13 | __in DWORD cPackages, |
14 | __inout BOOL* pfCancel | 14 | __inout BOOL* pfCancel |
15 | ) | 15 | ) |
16 | { | 16 | { |
17 | HRESULT hr = S_OK; | 17 | HRESULT hr = S_OK; |
18 | 18 | ||
19 | BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "Running detect begin BA function. fCached=%d, fInstalled=%d, cPackages=%u, fCancel=%d", fCached, fInstalled, cPackages, *pfCancel); | 19 | BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "Running detect begin BA function. fCached=%d, registrationType=%d, cPackages=%u, fCancel=%d", fCached, registrationType, cPackages, *pfCancel); |
20 | 20 | ||
21 | //------------------------------------------------------------------------------------------------- | 21 | //------------------------------------------------------------------------------------------------- |
22 | // YOUR CODE GOES HERE | 22 | // YOUR CODE GOES HERE |